• 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: [appscript] looking for feedback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: records [was Re: [appscript] looking for feedback]
      • From: has <email@hidden>
References: 
 >Re: [appscript] looking for feedback (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: [appscript] looking for feedback
  • Next by Date: Re: Producing Unicode-only characters [was: Finding \t, \r, \n reliably]
  • Previous by thread: Re: [appscript] looking for feedback
  • Next by thread: Re: records [was Re: [appscript] looking for feedback]
  • Index(es):
    • Date
    • Thread