• 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: "a reference to"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "a reference to"


  • Subject: Re: "a reference to"
  • From: has <email@hidden>
  • Date: Thu, 24 Jan 2008 19:24:50 +0000

On 24 Jan 2008, at 18:34, Scott Babcock wrote:

Yes, recordRef is bound to the {foo:"foo"} record, but it's not an AppleScript 'reference' object.

Didn't say it was.

Only a 'reference' can be coerced to 'reference', and an error is thrown if you try this on recordRef.

Yep.


Even so, the 'contents of' operator de-references recordRef into a local copy:

You can't deference something that isn't a reference. 'contents of' (which is a property reference, not an operator) makes a shallow copy of the object bound to recordRef. Given that the ASLG doesn't list a 'contents' property for either list or record types I'm inclined to think it's an undocumented behaviour, although you'd need to check the rest of the ASLG to be sure. As with other avoidable AppleScript quirks, the best advice is "don't do that".


has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >RE: "a reference to" (From: Scott Babcock <email@hidden>)

  • Prev by Date: Re: Mail.app Attachments Filter
  • Next by Date: Re: GUIscritpting, Pages and PDF
  • Previous by thread: RE: "a reference to"
  • Next by thread: RE: "a reference to"
  • Index(es):
    • Date
    • Thread