Re: interesting discovery (trying to get record labels as strings)
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.