• 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: Hex String Handlers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hex String Handlers


  • Subject: Re: Hex String Handlers
  • From: "Arthur J. Knapp" <email@hidden>
  • Date: Thu, 02 Jan 2003 10:00:38 -0500

> Date: Wed, 01 Jan 2003 15:16:26 +0100
> From: Axel Luttgens <email@hidden>
> Subject: Re: Hex String Handlers

> Arthur J. Knapp wrote:
>> It has recently been brought to my attention that some versions
>> of AppleScript are not going to behave as I would expect them to
>> in the above. It is safer to explictly coerce the "c" from the
>> "c in s" statment to a string before assigning it to the text
>> item delimiters:

>> repeat with c in s
>> set AppleScript's text item delimiters to (c as string)

> Right: without the coercion, the TIDs are set to a reference.

> would have done it in the more "academic" way:

> set AppleScript's text item delimiters to contents of c

> possibly avoiding an unneeded coercion. So, just by curiosity, is there
> a precise reason I would be missing to use "c as string" instead?

No particular reason. :)


> Now, I nevertheless tried your original script -that is, without the
> coercion- here (OS 10.2.3, AS 1.9.1).
> It works.
> Do you have more info about the versions of AppleScript that could be
> affected? And about the contexts (just the TIDs, or more general)?

My "source" mentioned version 1.3.7, which I believe was under
Mac OS 8.6.


{ Arthur Knapp, of <http://www.STELLARViSIONs.com>
a r t h u r @ s t e l l a r v i s i o n s . c o m

"Safe the Nature" - political graffiti in Prague
}
_______________________________________________
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: Hex String Handlers
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: How to get network location information under OS X?
  • Next by Date: Re: make folder (using label index) with OSX
  • Previous by thread: Re: Hex String Handlers
  • Next by thread: Re: Hex String Handlers
  • Index(es):
    • Date
    • Thread