stackoverflow.com
24 Nov '12, 10pm
Writing a ruby script that parses xml to distribute to non-coders: I am creating an open source workflow that wi...
I am creating an open source workflow that will tie an OS X application Devonthink to Zotero in the following manner: An AppleScript called inside the OS X app devonthink will run a Ruby script via the shell This Ruby script (which I find much faster, better for these sorts of things than old applescript) will make an API call and download response data in Atom format Example Data The ruby script will then parse the Atom file and extract a subset of this data and output it The Applescript will capture the output of the Ruby script and interact with devonthink in various ways, synching data. What I would like to get help for here is the parse the Atom file portion of this workflow. I know there are some great libraries out there for parsing Atom in Ruby, such as Feedzirra etc. but they require the installation of a Gem. I will be distributing the applescript+ruby combo to u...
Full article:
http://stackoverflow.com/questions/13546425/writing-a-rub...