With the advent of Tiger(OS X), Apple included an application called Automator with the other software bundles. Though I have seen this before, its unmistakable robot with a ‘Bazooka’ icon, it was earlier today that I decided to play around with it.
Automator can be loosely called as a drag and drop programming language. With its well designed interface it makes it easy to automate certain regular tasks like checking Mail at every logon, open iTunes to listen to your favorite playlist, or open a set of webpages that you regularly browse and many more such tasks.
Our dear robot friend, with the ‘bazooka’ is nowadays being called “otto” and I will follow suit. I learnt today that it was not a bazooka, but a pipe, representing the power of the UNIX pipeline.
In Automator, a sequence of steps needed to complete a task is called a “workflow.” In other languages or programs, these workflows might be referred to as “macros” or “scripts.” Once you open Automator, by clicking on “otto”, you can see a set of applications that are “Automator-aware”(meaning, Automator works with them), and a set of Actions corresponding to each application. Workflows are created by adding actions of particular applications to the workflow area. A simple drag and drop will do. For example, to make a periodic backup of your gargantuan music folder or valuable photos folder, simply select Finder in the applications pane and choose the “Get specified Finder items” action. Here you can add a particular folder to perform an action on(Either your music or photos folder or some other one). Now drag and drop “Copy finder items” to the workflow area. Here you can choose to copy the selected folder to the desired location. Now save the project as a workflow, or as an application(If saved as an application, it can be assigned to run on startup/login).
Saving a workflow as a plug-in allows it to be used as part of a specific program. Saving the previous workflow as an iCal plug-in makes it available to, and behave like, part of iCal. You can save plug-ins as part of other programs as well.
Here I have made available a sample workflow that will create a backup of your iPhoto library on the desktop, iPhoto library backup.
This is just the tip of the iceberg as far as Automator and its scope is concerned. Lots of other articles have been published explaining Automators functionality and there are several sites to even download workflows from. I hope to write a workflow that will play songs from my iPod, update the latest created playlists from my iTunes library, and play them again, as i slip into a deep slumber. Will keep you posted.