Re: push/pop text item delimiters
Re: push/pop text item delimiters
- Subject: Re: push/pop text item delimiters
- From: Nigel Garvey <email@hidden>
- Date: Wed, 30 Jun 2004 01:36:20 +0100
Steven Majewski wrote on Tue, 29 Jun 2004 13:56:57 -0400:
>
set text item delimiters to {""}
>
>
display dialog {1, 2, 3} as text
>
>
set beginning of text item delimiters to tab -- push tab
>
display dialog {1, 2, 3} as text
>
>
set beginning of text item delimiters to "," -- push comma
>
display dialog {1, 2, 3} as text
>
>
-- 2 pops to get back to initial setting
>
set text item delimiters to rest of text item delimiters
>
set text item delimiters to rest of text item delimiters
>
display dialog {1, 2, 3} as text
I thought of this a few years ago, but was firmly sat upon when I
presented it here (or possibly on MACSCRPT). The thing is that the
AppleScript Language Guide states that multiple delimiters might be
implemented at some point in the future. That's why 'delimiters' is
plural and why the default setting's a list - for future expansion.
There's been no other sign that multiple delimiters ever will happen -
and it's not clear how they'd be interpreted if they were. But if they
ever should come into being, a script that uses the delimiter list as its
own stack will start producing some very creative results! :-)
NG
_______________________________________________
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.