Re: [appscript] looking for feedback
Re: [appscript] looking for feedback
- Subject: Re: [appscript] looking for feedback
- From: has <email@hidden>
- Date: Tue, 25 Oct 2005 19:02:46 +0100
Mark J. Reed wrote:
><http://freespace.virgin.net/hamish.sanderson/Documentation/02_aboutapplicationscripting.html>http://freespace.virgin.net/hamish.sanderson/Documentation/02_aboutapplicationscripting.html
>
>One thing leapt out at me, but it's not a problem with your doc - it's a limitation of my knowledge of AS It says that the keys of a record are four-letter codes. How does AS construct those on the fly from the arbitrary key names we're allowed to use in record literals in AS code?
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]}
HTH
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
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