Re: XML script library?
Re: XML script library?
- Subject: Re: XML script library?
- From: Shane Stanley <email@hidden>
- Date: Wed, 04 Mar 2015 09:18:51 +1100
On 4 Mar 2015, at 1:35 am, Jörgen Stahle <email@hidden> wrote:
It would be useful to have the option to save the xml directly to file, instead of returning it.
Assuming you pass in a POSIX path for the file, change the last line of first handler to:
-- get as data set theNSData to theXMLDocument's XMLDataWithOptions:(current application's NSXMLNodePrettyPrint) -- or whatever options you want -- write data to file atomically set theResult to theNSData's writeToFile:posixPath atomically:true return theResult -- true or false
|
_______________________________________________
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