• 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: Kai <email@hidden>
  • Date: Fri, 13 Jun 2003 05:21:10 +0100

on Wed, 11 Jun 2003 20:23:24 -0400, Deivy Petrescu wrote:

> It used to be possible, and according to the dictionary still is, to
> set 2 delimiters when reading a file.
> However when I put the following in my script:
>
> set l to read file f using delimiters {return, dd} as string to 1096
>
> it compiles to :
>
> set l to read file f using delimiter {return, dd} as string to 1096
>
> No "s" at the end of delimiters.
>
> Did I miss a discussion where something was posted on the topic? I
> certainly do not remember.

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
_______________________________________________
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: What happened to delimiters?
      • From: Deivy Petrescu <email@hidden>
  • Prev by Date: Re: applescript-users digest, Vol 3 #1747 - 17 msgs
  • Next by Date: Re: Resurgence in AppleScript interest
  • Previous by thread: What happened to delimiters?
  • Next by thread: Re: What happened to delimiters?
  • Index(es):
    • Date
    • Thread