• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: text item delimiter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >text item delimiter (From: "Ruby Madraswala" <email@hidden>)
 >Re: text item delimiter (From: Rob Stott <email@hidden>)

  • Prev by Date: Re: text item delimiter
  • Next by Date: Re: Exiting from an Applescript
  • Previous by thread: Re: text item delimiter
  • Next by thread: Re: text item delimiter
  • Index(es):
    • Date
    • Thread