Re: text item delimiters
Re: text item delimiters
- Subject: Re: text item delimiters
- From: "Adam K. Wuellner" <email@hidden>
- Date: Thu, 28 Oct 2004 15:54:02 -0500
On Oct 28, 2004, at 1:33 PM, Skinner Paul wrote:
script alpha
set my text item delimiters to {","}
end script
AppleScript's text item delimiters
-->{""}
Being a little more explicit:
set AppleScript's text item delimiters to {""}
script alpha
set my text item delimiters to {","}
end script
-- now check the two TIDs:
log AppleScript's text item delimiters
log alpha's text item delimiters
My log shows:
(**)
(**)
Changing alpha thusly:
[...]
script alpha
property text item delimiters : {","}
end script
[...]
...the log now shows:
(**)
(*,*)
But, I can't figure out a way to _employ_ alpha's TIDs in any coercion
of a list to a string:
[...]
set testText to "a,b,c"
log text items of testText
tell alpha to log text items of testText
tell alpha to log its text items of testText
log AppleScript's text item delimiters
log alpha's text item delimiters
gives this log:
(*a, ,, b, ,, c*)
(*a, ,, b, ,, c*)
(*a, ,, b, ,, c*)
(**)
(*,*)
So, is it even possible to use a some TIDs other than AppleScript's
when getting text items?
- Adam
_______________________________________________
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