Re: parsing string in apple script
Re: parsing string in apple script
- Subject: Re: parsing string in apple script
- From: Michelle Steiner <email@hidden>
- Date: Wed, 18 Jun 2003 08:49:18 -0700
On Wednesday, June 18, 2003, at 07:22 AM, Bhanja, Sanjeeb wrote:
Please help in parsing the following
string before parsing : " 12,34,56,78,"
After parsing : x = 12 , y = 34 , z = 56 ....
please send me some code
set b to " 12,34,56,78,"
set text item delimiters to ","
set d to {}
set c to text items of b
repeat with a in c
copy a as number to end of d
end repeat
--reset text item delimiters if you wish
d
Then all you have to do is extract each of the items of d to the
variables.
--Michelle
--
"There's some good in the world, Mr. Frodo, and it's worth fighting
for."
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.