Re: Lists to XML ?
Re: Lists to XML ?
- Subject: Re: Lists to XML ?
- From: Jean-Christophe Helary <email@hidden>
- Date: Sun, 26 Mar 2017 09:38:26 +0900
>> I had no idea that new() was what I was missing.
>
> It's just a shorter way of writing alloc()'s init().
When I think that the whole thing was 2 loops with basically what amounts to a few text transformations, it's quite amazing that it took so much time to get everything working.
When I started this, I first thought of working with checks on the data (to convert everything that's illegal in XML) and then adding strings to produce the XML tags, but I figured that would not be very challenging... But I would consider twice going the NSXML route for trivial pieces of XML that I need to output on a daily basis (although, I guess that once the code is in the script it wouldn't make much difference). Also, I guess, going NSXML allows the script to be much faster than with normal AS string processing. I'd need to test the thing on a huge TM set to see if the current script is as efficient as normal TMX conversion tools (one good use for the EU TMs I guess...)
Now, as I wrote earlier, I'm going to go through the whole script again to check everything that looks unfamiliar and make sure I understand everything. I'll probably have questions :)
Hava all a nice day !
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