I’m pretty new to applescript (more of actionscript guy myself), but I need to write one for a client of mine. Any advice on how to go about it would be great.
I’m creating a method for a stock photographer to spellcheck keywords and metadata embedded in images submitted by photographers. iView, a photo catalog software, can export all the info to an XML file.
I thought about just opening the XML file in Word and running a spell check, but the formatting doesn’t really allow for that. For example, keywords would be in trees, and Word and most programs see that whole thing as one word. I can’t seem to figure out a way to isolate the word between the tags.
Is there an easier way short of going through the entire document character by character looking for the then selecting the following characters until a ‘<’ is reached then spell checking?
I have extremely limited experience with XML parsing via AppleScript, and have struggled with the XML suite in System Events, but you might take a look at the link to another utility in this thread by Late Night Software.
Ok, I have downloaded and installed the XML extensions… but I still can’t figure out how to get it to read my file. It gives me an error on the first character. Any suggestions? As much of walkthrough as possible cause I just don’t get applescript very well.