Double-quotes and Bar-quotes
Double-quotes and Bar-quotes
- Subject: Double-quotes and Bar-quotes
- From: Luther Fuller <email@hidden>
- Date: Fri, 18 Sep 2009 09:33:26 -0500
My script creates a preference plist file with these defaults ...
property defaultPrefsRecord : {|RegistrationKey|:"0", |version|:4000000, |ArchiveLastKnownLocation|:"", |MailSafePrefs|:{15, true}}
I have been chasing down an error for over two hours. I finally found that the fix is to read the prefs file using double-quotes. As in ...
tell application "System Events" set defaultLocation to (value of property list item "ArchiveLastKnownLocation" of property list file (prefsFile as text))
But, I can still use ...
tell application "System Events" to set value of property list item |ArchiveLastKnownLocation| of property list file (prefsFile as text) to the result
without error. Also, the use of |MailSafePrefs| is required. Originally, I used MailSafePrefs and while testing found that the prefs file contained the key mailsafeprefs which I could not read.
I remember we discussed the use of bar-quotes long ago, but I have forgotten the details. Does anyone know the cause of my problem with bar-quotes?
|
_______________________________________________
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