Google has released a command line tool to access many of their services. This is obviously handy for batch processing with scripts. The tool is largely written in Python and is open source, so it's highly portable and runs on the Mac.
The following services are currently supported:
The easiest way to install these tools is using MacPorts. If you don't have MacPorts installed, the current version's installer is available on disk image from the link above. You will need to have the Apple Developer Tools installed to compile programs. [crarko adds: googlecl is also available from Fink, if you use that package manager instead.]
If you already have MacPorts, run the following commands in Terminal:
sudo port selfupdate sudo port install googleclThis will update MacPorts to the most recent release, and then fetch and build the GoogleCL utilities.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20100622050822706