• 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: Sat, 14 Jun 2003 14:04:57 +0100

on Fri, 13 Jun 2003 14:10:41 -0700, Christopher Nebel wrote:

> 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 ...

[snip]

>> 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.)

As you're no doubt aware, there are also references to the restriction in
the AppleScript Scripting Additions Guide (pages 50, 52 & 110).

> 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.

(I looked in quite a few places, but couldn't find any mention either.)

Many thanks for confirming those points, Chris.

--
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: Michelle Steiner <email@hidden>
  • Prev by Date: Re: FileMaker styled text
  • Next by Date: Perl syntax
  • Previous by thread: Re: What happened to delimiters?
  • Next by thread: Re: What happened to delimiters?
  • Index(es):
    • Date
    • Thread