Need AppleScript to export Numbers spreadsheet
I am working on a high score contest and I am keeping the leaderboard data in a Numbers spreadsheet. My current (manual) workflow is like this:
- Update spreadsheet (Type in new entries)
- Export to CSV (Click File -> Export -> CSV...)
- Run Perl script that generates leaderboard HTML file for site (Run from Terminal or TextMate)
- Run Automator workflow that syncs leaderboard on web site (Run from Finder)
As you can see, I've already tried automating parts of my workflow using Perl and Automator. I thought I could bring it all together, steps #2 through #4, using a master Automator workflow.
However, I am stuck at step #2: Export to CSV. I don't know how to automagically export to CSV from either a script, workflow, or shell action. I thought that if I could get a quick-and-dirty AppleScript that would export the spreadsheet, I can put everything together.
Can someone provide such an AppleScript? Or if someone has an easier way to automate my manual workflow, it would be even better!
Thanks,
dZ.
Mac Pro (Early 2009), Mac OS X (10.7.4), 2.26 GHz (Quad-Core) x2 - 6GB RAM