Re: text item delimiter
Re: text item delimiter
- Subject: Re: text item delimiter
- From: Dave Balderstone <email@hidden>
- Date: Fri, 29 Apr 2005 09:09:14 -0600
On Apr 29, 2005, at 8:54 AM, Rob Stott wrote:
Here's how I'd do it ...
here's a slightly modified routine I use to expand abbreviations in our
classified ads when we move them to the web. In my live version,
ChangeList1 is built on the fly from a text file of the S&R pairs.
-----------------
-- uses Satimage OSAX
set theFile to "12345"
set ChangeList1 to {{"a", "1"}, {"b", "2"}, {"c", "3"}, {"d", "4"},
{"e", "5"}}
repeat with i from 1 to count of items in ChangeList1
set thebad to (text of item 2 of item i of ChangeList1)
set theGood to (text of item 1 of item i of ChangeList1)
set theFile to (change thebad into theGood in theFile)
end repeat
return theFile
-----------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden