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

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

  • Prev by Date: Re: What happened to delimiters?
  • Next by Date: Disabling Music Store from iTunes
  • Previous by thread: Re: What happened to delimiters?
  • Next by thread: Re: What happened to delimiters?
  • Index(es):
    • Date
    • Thread