• 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: Absolutely perplexed!!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Absolutely perplexed!!


  • Subject: Re: Absolutely perplexed!!
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 11 Aug 2017 21:28:26 +1000

The most likely reason for failure is that you're passing something that can't
be saved as a property list. You should use the method that returns an error,
so you can find out why:

set {theData, theError} to current application's NSPropertyListSerialization's
dataWithPropertyList:theDictionary |format|:(current application's
NSPropertyListXMLFormat_v1_0) options:0 |error|:(reference)
if theData = missing value then error theError's localizedDescription() as text
set {theResult, theError} to theData's writeToFile:thePath options:(current
application's NSDataWritingAtomic) |error|:(reference)
if not theResult as boolean then error theError's localizedDescription() as text


--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>


 _______________________________________________
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: Absolutely perplexed!!
      • From: Brian Christmas <email@hidden>
References: 
 >Fwd: Absolutely perplexed!! (From: Brian Christmas <email@hidden>)

  • Prev by Date: Fwd: Absolutely perplexed!!
  • Next by Date: Re: Absolutely perplexed!!
  • Previous by thread: Fwd: Absolutely perplexed!!
  • Next by thread: Re: Absolutely perplexed!!
  • Index(es):
    • Date
    • Thread