Re: text item delimiters question
Re: text item delimiters question
- Subject: Re: text item delimiters question
- From: Paul Skinner <email@hidden>
- Date: Wed, 5 Mar 2003 07:49:38 -0500
On Wednesday, March 5, 2003, at 07:18 AM, Jacco Rens wrote:
Hi all,
I got an question regarding the use of text item delimiters,
i want to get the first part of the following data:
"GEIND*E10,71/KOSTEN*E0,08"
So that i get "GEIND*E10,71" in my var.
this doesn't work :(
// part of script
set geind to item 11 of theLine as text // "GEIND*E10,71/KOSTEN*E0,08"
set text item delimiters to "/"
set x to item 1 of geind
// end part of script
Best,
Jacco Rens
Netherlands
http://www.jaccorens.com/
You asked for item 1 not text item 1.
text 1 thru 12 of "GEIND*E10,71/KOSTEN*E0,08"
-->GEIND*E10,71
set applescript's text item delimiters to "/"
text item 1 of "GEIND*E10,71/KOSTEN*E0,08"
-->GEIND*E10,71
Paul Skinner
_______________________________________________
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.