• 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: What happened to delimiters?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What happened to delimiters?


  • Subject: Re: What happened to delimiters?
  • From: Deivy Petrescu <email@hidden>
  • Date: Fri, 13 Jun 2003 11:23:06 -0400

On Friday, Jun 13, 2003, at 00:21 US/Eastern, Kai wrote:
I don't recall such a discussion, Deivy (but then my memory's not what it
was). ;-)

In spite of the vanishing 's', it still seems to work here. In fact,
although the stated limit is 2 delimiters, I get these results:

---------------------------

read file f

--> "abcdefghijklmnopqrstuvwxyz"

---------------------------

read file f using delimiter {"e", "n", "w"}

--> {"abcd", "fghijklm", "opqrstuv", "xyz"}

---------------------------

read file f using delimiter {"a", "b", "c", [...etc...] "x", "y", "z"}

--> {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", ""}

---------------------------

--
Kai


Thanks Kai, your experience is definitely different than mine.
I tried using a negative number as a delimiter (dd is the text returned from a display dialog) and it does not work.
It takes the "-" to be the delimiter skipping the number altogether.
However, setting astid to a negative number works.

So if your file is
1 1 2 3 4 -200
3 3 5

using delimiter(s) {"-200" , return} yields:
{1 1 2 3 4, 200 , 3 3 5}

it does not change if you modify delimiter to {-200, return}

Thanks agai

Regards

Deivy Petrescu
http://www.dicas.com/
_______________________________________________
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.

References: 
 >Re: What happened to delimiters? (From: Kai <email@hidden>)

  • Prev by Date: Re: GUI Scripting / Keystroke
  • Next by Date: Re: Sending postscript file to printer
  • Previous by thread: Re: What happened to delimiters?
  • Next by thread: Re: What happened to delimiters?
  • Index(es):
    • Date
    • Thread