Re: Absolutely perplexed!!
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