Re: text item delimiters question
Re: text item delimiters question
- Subject: Re: text item delimiters question
- From: Bill Briggs <email@hidden>
- Date: Wed, 5 Mar 2003 08:38:10 -0400
set sampleText to "GEIND*E10,71/KOSTEN*E0,08"
set tid to AppleScript's text item delimiters
set AppleScript's text item delimiters to {"/"}
set partsList to text items of sampleText
set AppleScript's text item delimiters to tid
set x to item 1 of partsList
- web
At 1:18 PM +0100 05/03/03, 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/
_______________________________________________
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.
_______________________________________________
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.