Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Classic Macs and Mac OS > Extract with AS

Extract with AS
Thread Tools
Addicted to MacNN
Join Date: Sep 2000
Status: Offline
Reply With Quote
Aug 29, 2001, 10:31 AM
I have the following in a text file:

<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
{<font color = red>"http:<font color = brown>//website.com/"</font>, <font color = red>"Netscape: Site Title"</font>}</font>

When loaded into an Apple Script, does anyone know how to breakup the variables so that:

url = "http://website.com/"


title = "Site Title"

I can never remember how to breakup something like this.
I always use protection when fscking my Mac... Do you?
Forum Regular
Join Date: Feb 2001
Status: Offline
Reply With Quote
Aug 29, 2001, 02:08 PM
set mystring to read alias "Macintosh HD:Text File"--replace the path here with the path to the file.
set mystring to run script mystring
set myurl to item 1 of mystring--URL is reserved in AppleScript
set title to item 2 of mystring

Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Privacy Policy
All times are GMT -4. The time now is 06:49 AM.
All contents of these forums © 1995-2015 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2015, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2