Re: Why save text item delimiters? Philosophical question....
Re: Why save text item delimiters? Philosophical question....
- Subject: Re: Why save text item delimiters? Philosophical question....
- From: John W Baxter <email@hidden>
- Date: Mon, 16 Jun 2003 22:37:12 -0700
- Envelope-to: email@hidden
At 8:38 +0100 6/16/2003, John Delacour wrote:
>
If, as David asks, you never use text item delimiters without setting
>
the value first (and he might, and should, have added
>
_IMMEDIATELY_before_using_them_), then it makes no difference.
>
>
>
set my text item delimiters to ""
>
doThis()
>
text items of "two words" is words of "two words"
>
on doThis()
>
set my text item delimiters to space
>
end doThis
>
--> true
>
>
doThis()
>
set my text item delimiters to "" -- and then immeditately...
>
text items of "two words" is words of "two words"
>
on doThis()
>
set my text item delimiters to space
>
end doThis
>
--> false
But do we all remember that
{"a", "B", "c"} as string
is a use of the text item delimiters.
Try
set text item delimiters to {"Ken Griffey, Jr"}
{"a", "B", "c"} as string
(Yes...the set immediately before using folks will *eventually* remember. ;-))
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
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.