records and property records
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