Re: parsing string in apple script
Re: parsing string in apple script
- Subject: Re: parsing string in apple script
- From: Emmanuel <email@hidden>
- Date: Wed, 18 Jun 2003 19:47:59 +0200
At 8:49 AM -0700 18/06/03, Michelle Steiner wrote:
>
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.
In case it helps:
set {x,y,z,t} to d
Emmanuel
_______________________________________________
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.