Re: TreeView X and dnd Files
Re: TreeView X and dnd Files
- Subject: Re: TreeView X and dnd Files
- From: Steve Thompson <email@hidden>
- Date: Wed, 03 Nov 2010 09:45:26 +0000
On 3 Nov 2010, at 04:24, Bruce Robertson wrote:
> Finally, the issue: so far he has found no scriptable apps that deal with this format.
There are a couple of applications that deal with NEXUS files like MacClade and Clustal but unless he convinces the developers to add AppleScript support it looks like a pure AppleScript solution isn't going to happen.
The problem with NEXUS, DND and other file formats (as another unrelated example, GEDCOM) is that they are effectively just pages of text and you have to write an interpreter that will read them and display them properly. For a simple file in AppleScript, you'd read it in to a list. The next level would be a list of lists, then a list of lists of lists. And so on until either AppleScript or the developer have a breakdown :-)
My solution would be to convert the file outside of AppleScript to a format that AS can read and then work with it. The only way I can think of doing this (not my field either but did appear in my thesis) is to use
http://www.phylosoft.org/forester/applications/phyloxml_converter/
to create an XML file and then either use a page layout application that understands XML files to create a template or use http://www.latenightsw.com/freeware/XMLTools2/ to work with it in AppleScript.
Hope this helps!
Steve
_______________________________________________
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