Re: what the heck - text manipulation script
Re: what the heck - text manipulation script
- Subject: Re: what the heck - text manipulation script
- From: "John C. Welch" <email@hidden>
- Date: Tue, 18 Jul 2006 11:29:59 -0500
- Thread-topic: what the heck - text manipulation script
Title: Re: what the heck - text manipulation script
On 7/18/06 10:56, "Natalie Lambert" <email@hidden> wrote:
>> Try using "text item" instead of "word"
> tried that - it works in 10.2.8 not in 10.4.4 - I need
> it to work in 10.4.4
>
> result = error
> "Can't get text item 2 of "OCT 05 @St. Louis".
>
> Furthermore, if you try to set as text item 1 you get
> "OCT 05 @St. Louis"
> Then if you try all the delimiting with spaces and
> tabs you never end up "@St." you get "St".
>
> So, I'm back to why can't I just get "@St."
This gives me “@St.” in 10.4.7:
set oldDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to " "
set x to "OCT 05 @St. Louis"
set v to the sixth text item of x
return v
set AppleScript's text item delimiters to oldDelims
I don’t have a 10.4.4 box to test on, only 10.4.7
--
"Any ship can be a minesweeper... once."
Anon.
_______________________________________________
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