• 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: interesting discovery (trying to get record labels as strings)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: interesting discovery (trying to get record labels as strings)


  • Subject: Re: interesting discovery (trying to get record labels as strings)
  • From: "Neal A. Crocker" <email@hidden>
  • Date: Tue, 4 Dec 2001 09:46:38 -0800

on 12/3/01 1:54 AM, Neal A. Crocker at email@hidden wrote:


you can shorten that to:

{{+class usrf;:{"hello", "goodbye"}}} as string as record
-- returns: {hello:"goodbye"}

Neal
_______________________________________________
applescript-users mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/applescript-users


Excuse me for jumping in here, I'm trying to follow this thread. And it's
been fine up to here. But just what is:

{{+class usrf;:{"hello", "goodbye"}}} as string as record

supposed to do? I get a compiler error: "Expected "," or "}" but found
identifier.

TIA Dave


Its supposed to procduce the output:
{hello:"goodbye"}

It uses a bug that occurs in some versions of Applescript. What version of AS and Mac OS are you using. It works for me on whatever the current version of AS is on Mac OS X 10.1.1. By the way, did you enter it as a script with the + replaced by a chevron (looks like <<, given by OPT-\) and the ; replaced by an opposing chevron (looks like >>, give by OPT-SHIFT-\)?

Neal.


  • Prev by Date: Re: Tell default browser to open a URL
  • Next by Date: Re: interesting discovery (trying to get record labels as strings)
  • Previous by thread: Re: interesting discovery (trying to get record labels as strings)
  • Next by thread: Path to app ...
  • Index(es):
    • Date
    • Thread