Re: Lists to XML ?
Re: Lists to XML ?
- Subject: Re: Lists to XML ?
- From: Jean-Christophe Helary <email@hidden>
- Date: Sat, 25 Mar 2017 08:20:49 +0900
On Mar 25, 2017, at 8:13, Jean-Christophe Helary < email@hidden> wrote:
On Mar 25, 2017, at 8:02, Shane Stanley < email@hidden> wrote:
On 25 Mar 2017, at 2:35 am, Jean-Christophe Helary < email@hidden> wrote:
Also, I can't find a way to create the <?xml...> and <!doctype ...> lines at the top of the document, which I guess is related to the previous point...
set theXMLDocument to current application's NSXMLDocument's alloc()'s initWithRootElement:rootElement theXMLDocument's setDocumentContentKind:(current application's NSXMLDocumentXMLKind) theXMLDocument's setStandalone:true theXMLDocument's setCharacterEncoding:"UTF-8"
Ok, I see, I was not seeing that alloc()'s thing and I was just trying set theXMLDocument to current application's NSXMLDocument's initWithRootElement:rootElement
which generated an error message.
And now I'm trying:
use AppleScript version "2.4" -- Yosemite (10.10) or later use framework "Foundation" use scripting additions
set rootElement to "tmx" set theXMLDocument to current application's NSXMLDocument's alloc()'s initWithRootElement:rootElement
and I'm still getting an error message in SD: Applescript Execution Error -[NSTaggedPointerString kind]: unrecognized selector sent to instance 0x786d7435
with "current application" in the "Application" box...
Jean-Christophe |
_______________________________________________
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