• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: push/pop text item delimiters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: push/pop text item delimiters
      • From: Walter Ian Kaye <email@hidden>
    • Re: push/pop text item delimiters
      • From: Bill Briggs <email@hidden>
  • Prev by Date: Re: Need a little help...
  • Next by Date: Re: push/pop text item delimiters
  • Previous by thread: push/pop text item delimiters
  • Next by thread: Re: push/pop text item delimiters
  • Index(es):
    • Date
    • Thread