• 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
records and property records
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

records and property records


  • Subject: records and property records
  • From: Luther Fuller <email@hidden>
  • Date: Thu, 08 Apr 2010 09:02:03 -0500

Yesterday, I was experimenting with writing records to property list files. I created two records and confirmed that both were indeed records ...

set propRec to (system info) -- from StandardAdditions
set testRec to {a:"B", c:"D"}
log (class of propRec)
log (class of testRec)

But there is a difference between these records.
I can write testRec to a property list file without any problems.

propRec , on the other hand, has a problem. It is a record and the StandardAdditions dictionary says it's a record and it behaves like a record, but when I try to write propRec to a property list file, it simply erases the value of the file. (The root dictionary is empty.)

There seems to be an important difference between 'records' (constructed in a script) and 'property records' (obtained from other sources, such as the Finder or StandardAdditions).

Does anyone know what this difference is? ... and why?

 _______________________________________________
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

  • Follow-Ups:
    • Re: records and property records
      • From: Axel Luttgens <email@hidden>
    • Re: records and property records
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: Index a given folder
  • Next by Date: Re: records and property records
  • Previous by thread: Re: pList read and write
  • Next by thread: Re: records and property records
  • Index(es):
    • Date
    • Thread