Re: What happened to delimiters?
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.