Re: What happened to delimiters?
Re: What happened to delimiters?
- Subject: Re: What happened to delimiters?
- From: Christopher Nebel <email@hidden>
- Date: Fri, 13 Jun 2003 14:10:41 -0700
On Friday, June 13, 2003, at 12:41 PM, Kai wrote:
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 ...
Thanks Kai, your experience is definitely different than mine. I
tried using a negative number as a delimiter ... and it does not
work. It takes the "-" to be the delimiter skipping the number
altogether. However, setting astid to a negative number works.
I must admit that, by trying to use more than 2 delimiters, I was
expecting to be hit by a -50 parameter error. (Are _you_ rewarded with
an error if you engage in this sort of irresponsible, anti-social
behaviour?)
As far as your own tests are concerned, I actually get similar
results... I'm tempted to assume that Read's delimiters are restricted
to single characters. For anything more ambitious, AppleScript's text
item delimiters would seem to be more appropriate.
In order:
1. The "s" has always disappeared, or at least has for a long time.
2. "read" used to be limited to two delimiters, but that restriction
was removed in AppleScript 1.6. The dictionary comment was never
updated to reflect this. (I could have sworn there was a bug on that,
but apparently not. There is now.)
3. Only the first character of any delimiter will be considered. This
is not documented anywhere that I can find, and is arguably a bug, but
it's possible that some scripts rely on it.
--Chris Nebel
Apple Development Tools
_______________________________________________
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.