• 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
Double-quotes and Bar-quotes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: selecting a message in Mail
  • Next by Date: Re: JustWonedering
  • Previous by thread: Re: selecting a message in Mail
  • Next by thread: Double-quotes and Bar-quotes
  • Index(es):
    • Date
    • Thread