Rép : what the heck - text manipulation script
Rép : what the heck - text manipulation script
- Subject: Rép : what the heck - text manipulation script
- From: Yvan KOENIG <email@hidden>
- Date: Tue, 18 Jul 2006 18:57:53 +0200
Le 18 juil. 2006 à 18:40, Natalie Lambert a écrit :
set AppleScript's text item delimiters to ""
set x to "OCT 05 @St. Louis" as text
set v to text item 2 of x
set y to word 4 of x
return {v, y}
Yes but
set x to "OCT 05 @St. Louis" as text
set AppleScript's text item delimiters to " " -- a space
set v to text item 2 of x
set y to text item 6 of x
set AppleScript's text item delimiters to "" -- empty string
return {v, y}
returns:
{"05", "@St."}
set x to "OCT 05 @St. Louis" as text
set AppleScript's text item delimiters to " " -- a space
set z to text items of x
set AppleScript's text item delimiters to "" -- empty string
return z
returns
{"OCT", "05", "", "", "", "@St.", "Louis"}
Yvan KOENIG
_______________________________________________
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