Re: [appscript] looking for feedback
Re: [appscript] looking for feedback
- Subject: Re: [appscript] looking for feedback
- From: "Mark J. Reed" <email@hidden>
- Date: Tue, 25 Oct 2005 14:41:43 -0400
On 10/25/05,
has <
email@hidden> wrote:
Note
that 'record' in that above document is used to refer to the Apple
Event Manager's AERecord type, not the AppleScript language's native
'record' type which is a separate entity with a different internal
structure. AppleScript automatically converts data from one format to
the other when packing and unpacking Apple events. When the AS record
is packed into an Apple event, any AS identifiers are stored as strings
along with their corresponding values in a key-value list, which in
turn is stored in the AERecord under the key 'usrf'. For example, the
AS record:
{name:"foo", size:22, someIdentifier:true, anotherIdentifier:false}
would pack as the following AERecord:
{pnam:"foo", ptsz:22, usrf:["someIdentifier", true, "anotherIdentifier", false]}
Ah. That makes a certain amount of sense. And the
intermingling of keys stored as codes vs strings stored in a list of
strings probably goes a long way toward explaining the lack of a "give
me the keys" operation on AS records.
--
Mark J. Reed <
email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden