

> This requires no additional installs and actually is simple AppleScript and can be built into TextWrangler. > I enclose a script that might you get you started with your problem. On Nov 23, 8:15 am, Thomas Fischer wrote: Write theText to fp as «class utf8» - starting at eof - if you want to append Set eof fp to 0 - delete any previous text Set fp to open for access fileRef with write permission my writeFile("/Users/Thomas/Desktop/Move XML data/New tracks.xml", newXML) or if you don't need the XML data, just

My writeFile("/Users/Thomas/Desktop/Move XML data/New tracks.xml", text of myTracks) Set AppleScript's text item delimiters to Set myList to the XML elements of XML element "xml" of mySource Set mySource to XML file "/Users/Thomas/Desktop/Move XML data/Album tracks.xml" If you are wondering why the creation of the XML fiel is somewhat strange you might want to take a look at the thread To get it started you should make sure that your starting XML file is valid (by e.g. If you want to, instead of reading and writing files you can start with the text of one open TextWrangler document and setting the text of a new TextWrangler document to the result of the process. This requires no additional installs and actually is simple AppleScript and can be built into TextWrangler. I enclose a script that might you get you started with your problem. > don't need or that is not formatted in the way that we require. > are laid out differently to ours and contain information which we > companies that contain information which needs to be copied into XML > to explain it a bit further, we receive and XML documents from certain as you can see, both are formatted in different ways. title and isrc are the most timeĬonsuming. Text wrangler to extract certain bits of information from one documentĪnd insert them in sequence into another.įor example, here is a piece of a document containing the informationĭo Nothing Until (A Quiet Sense Of Truth Is Established)Īnd I regularly have to extract the and The other companies XML documentsĪre laid out differently to ours and contain information which weĭon't need or that is not formatted in the way that we require.Ī straight copy and paste wont work, and the documents are extremelyĭifferent so they cannot be compared. To explain it a bit further, we receive and XML documents from certainĬompanies that contain information which needs to be copied into XMLĭocuments for use with out system.
