Tutorial: Automator Basics

Macapper TutorialIn case you haven’t heard, Automator rules. Automator is the often under-appreciated and underestimated automation tool, provided by Apple in Mac OS X 10.4 Tiger, to bring the power of automation to users with no need for programming. In this simple tutorial I’ll show you the basics of Automator and walk you through a simple Backup application example. This should give you the solid foundation to start making useful actions for yourself.

The Basics of Automator

Automator LogoFirst, load the Automator editor application located in the Applications folder. On the upper-left hand side of the Automator window you will notice the Library pane which lists the applications on your system that are supported by Automator. If you don’t see your favorite App in this window write the author of the software, only they can add Automator support. Just to the left of the library pane is the Actions pane which lists the available actions for a selected application. These two windows act as your toolbox while making an Automator action. Naturally there is also a search field to quickly find an action without needing to select a specific target application. Below these two panes is the Action Description pane. Here you can find important information about different actions like what sort of “Input” it expects, what “Result” it returns and any other requirements.

This concept may be familiar if you have any experience with the programming concept of “protocol”, if you you are unfamiliar don’t fret! It’s not that hard, I promise. Every Automator action expects a certain “type” of input. For example the iTunes action “Add Songs to Playlist” expects “Songs” as the input, naturally if you sent this action a text file, an email address and a sandwich it would be unable to add them to a playlist. In return for you giving an action what it expects it “promises” to consistently return a certain type of response or “Result”. These Results can often be passed into other actions making a sequence of events that does something useful for you.

To the right side of the Automator window is the Workflow pane. Here you place Actions which will occur one by one from top to bottom. Actions can be placed into the Workflow by either dragging an action to the Workflow pane or by double-clicking on an action.

The toolbar also contains two buttons you’ll be using a lot, the Run (Command R) and Stop (Command .).

Instant Backup Automator Action

This is a handy little Automator action I use all the time on projects or assignments where I’m experimenting with a file (usually code) enough that “Undo” won’t suffice and setting up a version control system feels over-kill. This action when placed in the dock will make a copy of whatever file or folder you have selected in the Finder and conveniently append a date-stamp onto the name of the copy. Please keep in mind that the following example is definitely not the only way and likely not the best way of backing up your files, so while you’re working through the tutorial think of how you would do it better and go ahead and give it a try.

The first step of this workflow involves letting Automator know which file(s) you wish to deal with. For this example we’ll simply tell Automator to make a back up of the file (or folder) that is currently selected in the Finder. To do this you will want to find the “Get Selected Finder Items” action by selecting Finder in the library pane and dragging “Get Selected Finder Items” to the work flow window.

Automator Image 1

Next we will want to copy the file to your backup destination. I’ve created a “Backup” folder in my home directory (the directory named with your user name) in which to place the backed up files. The Action that will do this for us is called “Copy Finder Items”, lets try using the search to find it this time. Drag the action to the workflow pane and take a look at the action “bubble” you’ve created. You will notice that unlike the “Get Selected Items” action this one contains some further controls. In the “To:” drop-down menu I will select my Backup folder. If you choose to place your files elsewhere please change the “To:” destination directory accordingly. There is another option here to replace existing files in the destination directory if they have the same name. I would not recommend you check this box, it will erase similarly named files without asking. If you leave the replace check box unchecked when there is another file sharing the same name the Finder will rename the new file to prevent a collision.

Automator Image 2

Rename your Backup

Although this action is pretty good already, when I’m making many revisions and changes to a file I like to keep track in the file name that it is a backup and the time and date the backup was created. We can do this very simply with Automator.

Automator Backup Image

First I’d like to append onto the file name the suffix “_Backup” to remind me I’m looking at a backed up file. The action we will use to add this suffix, date and time is the “Rename Finder Items” action. As we will use this same action three times in a row go ahead and add three of them to the work flow.

To append the text suffix focus on the first of the three “Rename Finder Items” actions. From the action’s drop-down menu select “Add Text”. In the “Add:” text field type “_Backup”. I preceded the word “Backup” with an underscore, “_”, so the title is easier to read. Set the next drop-down menu to “after name”, this will make the text act as a suffix to the prior name rather than a prefix. Mac OS X recognizes when there is a file extension visible at the end of the file name (.mov, .pdf, etc.) and will append your text between the file name and the file extension.

Automator Image 3

To add the time of day you created the backup you will edit the second “Rename Finder Items” action that you added. This time you will set the first drop-down menu to “Add Date or Time”. Because I want to see when I made this backup rather than when it was last modified I select “Current” from the “Date/Time:” drop down menu. The “Format:” drop-down menu will be the only difference between adding the time and the date, here we will choose “Hour Minute”. Again the we will want to add the text after the name by selecting “After name”. You can choose whichever “Separator:” drop-down selections you find easiest to read for the next two options, I’ve chosen “Dash” and “Underscore”. You can also enable the use of leading zeroes with the final check box. For example, with leading zeros, eight o’clock and one minute in the morning will read 08-01 rather than 8-1, it’s a matter of personal preference.

Automator Image 4

Finally to add the date to the third “Rename Finder Items” action, do the same as you did for time in the second “Rename Finder Items” action but select the “Format:” drop-down menu option “Day Month Year” instead of “Hour Minute”.

Automator Image 5

Finishing Up

Now would be a great time to save your work, this can be done by pressing Command-S or by selecting Save from the File Menu. In the save window you will notice a “File Format:” drop-down, this gives you the choice of saving as a Workflow or an Application. For our example we’ll choose to save an Application. As an Application your Automator action can be double clicked in the Finder and be activated. I would recommend you save your new Automator action “application” to your Applications folder for easy access. A cool little feature of these Automator action applications is that unlike a complied Application built in Xcode you can just drop your creation or one you downloaded that you want to learn from onto Automator to examine and edit its workflow.

Automator Save Box

We’re on the home stretch now, you’ve got a working Automator action but… what to do with it? If you double click on it now you will likely just end up with a backup of your Automator action application in your backup destination (remember it’s setup to backup Finder’s current selection). I think an excellent solution would be to drag your Automator Application to the dock so you can access it anytime from the Finder. Now select the file you wish to backup, click on the your application in the dock and like magic you’ve got a dated backup!

The Future of Automator

Rest assured, your new little robot friend, Automator, will not be disappearing with the release of Mac OS X 10.5 Leopard. In fact Apple is adding many very helpful enhancements to Automator in Leopard that will make the automation process even easier. According to the public WWDC course page, actions will no longer be just scriptable but also recordable in Leopard, that’s really exciting. I can assure you there are other neat things in the works and can’t wait until we can all get our hands on the Leopard version of Automator. Until then, happy Automating!


56 Responses to “Tutorial: Automator Basics”

  1. David Mendez on May 28th, 2007 11:23 pm

    Very nice tutorial! I have never really gotten into Automator, not sure why exactly, but this is a great walkthrough and certainly makes it more appealing to try out for all sorts of things

  2. Mason on May 29th, 2007 12:00 pm

    Does the backup workflow you provided make updated (meaning it only adds modified files after the first backup) backups?

  3. 42daze » Blog Archive » How do you use Automator? on May 29th, 2007 2:24 pm

    [...] Automator Basics [...]

  4. Uri on May 29th, 2007 6:09 pm

    Keep posting more workflows; Automator rocks!!

  5. Simple version control for the Mac « CogiDDo ergo sum on May 31st, 2007 10:28 pm

    [...] — cogiddo @ 10:29 pm Using the Automator. Thanks to Lifehacker, for bringing me this link. I will study it tomorrow, as I can really use a simple version control system and don’t feel [...]

  6. Dawud on June 1st, 2007 6:02 am

    I’ve found it to be most useful when saved as a Finder plugin. This way I can just right-click on a folder or file, select Automater->BackUp my data is archived. Thanks for the great tutorial.

  7. Il Liceo » Blog Archive » Backup: Set up simple file versioning with Automator on June 1st, 2007 7:07 am

    [...] The backup methods used are very similar to my simple version control system for Windows, but this Mac solution takes advantage of the much-maligned/beloved Automator. Not only is this a useful versioning method, but the post also serves as a nice introduction to Automator. MacApper [...]

  8. Michael on June 1st, 2007 8:02 am


    No, this action will make a copy of any files you select, even if they have not changed since your last ‘backup’.

    Maybe with Leopard, we can make use of Time Machine as ‘subversion for the rest of us’ (and maybe some of the new features in Automator 10.5 will help this process)

  9. Anne on June 1st, 2007 9:16 am

    One suggestion I have would be to make the versioned file name in the order:


    (this is based on the standard ISO 8601)
    The ‘T’ is based on the standard but it’s not crucial, just make sure you use leading zeros on all numbers and use the 24-hr clock.

    This way, all your like-named files will be chronological when sorted alphabetically
    Other File_backup_2007-05-30T0743
    Other File_backup_2007-05-31T0918

    If you would rather have all files chronological regardless of content, the YYYY-MM-DDTHHMM can go at the start, I use a combination of both systems for different purposes – Date/Time at the start for time specific files (business expense receipts etc.) and Date/Time at the end for content specific files and versioning (this keeps like-named files together)

    This dating system works without the dashes but they make the filenames easier to read (and to make Smart Folders with – Name contains “2007-06″ for a Smart Folder with all June 2007 files)

  10. Backup: Set up simple file versioning with Automator at SoftSaurus on June 5th, 2007 12:54 pm

    [...] The backup methods used are very similar to my simple version control system for Windows, but this Mac solution takes advantage of the much-maligned/beloved Automator. Not only is this a useful versioning method, but the post also serves as a nice introduction to Automator. MacApper [...]

  11. Diigo daily 06/15/2007 « fuzzybrain|daisychain|blogdrain on June 15th, 2007 1:29 pm

    [...] Tutorial: Automator Basics | MacApper [...]

  12. pristina.org | everything design » links for 2007-06-16 on June 15th, 2007 10:21 pm

    [...] Tutorial: Automator Basics | MacApper aprenda a usar o Automator (tags: automator osx mac tutorial howto Apple backup) [...]

  13. links for 2007-06-16 | blog.ftofani.com on June 16th, 2007 4:17 pm

    [...] Tutorial: Automator Basics | MacApper aprenda a usar o Automator (tags: automator osx mac tutorial howto Apple backup) [...]

  14. pinotbob on July 11th, 2007 7:11 pm

    I can’t get this to work! “Data Conversion failed” is in the log. Any ideas?

  15. Tutorial: How To Make a Flickr Uploader: Part 1 | MacApper on July 28th, 2007 6:01 am

    [...] It’s good to note that Apple’s Automator Actions download page has a wide selection of useful Automator Actions to add to Automator this way. If you feel like what you’re seeing here is a bit over your head please go and check out the Automator Basics Tutorial. [...]

  16. Jack DeLong on November 25th, 2007 9:37 pm

    Thanks for posting this, it was a big help!

  17. Loweded Wookie on November 26th, 2007 1:54 am

    I discovered Automator when trying to find a free way to turn iTunes into an alarm clock and from that day on I’ve used it a lot.

    The recording feature in Leopard is cool but not as cool as I would have liked it to be. It’s the equivalent to ScriptIT on Windows but I was hoping more for something like ZenWorks on Novell which is so much better.

    That being said though it means anything can be scripted including closing down applications. The trade off is that it isn’t pretty as it picks up movement so your cursor will go all over the place which looks untidy, but then ScriptIT on Windows is similar.

  18. tl on March 16th, 2008 11:58 pm

    How does one set up to trigger a workflow with a keyboard shortcut? thanks. nice tutorial

  19. Jose Jacob on October 13th, 2008 11:32 am

    how do we know that an application supports automator?

  20. Programming on October 30th, 2008 1:03 am

    [...] hat ein Tutorial zu QuartzComposer veröffentlicht. Teil 2 folgt. Auch die Automator-Tutorials sind zu [...]

  21. vicki Woodyard on January 14th, 2009 12:56 pm

    Automator somehow got turned on and I don’t want it. It happened like this. I clicked on Fetch and Automator opened. I closed Automator and it still opened when I clicked on Fetch. Now I don’t know how to get to Fetch to upload something to my website. Darned automator. Tell me how I can close it so that Fetch opens like it is supposed to. I need help with this today.

  22. Giuseppe on February 17th, 2009 9:49 am

    I watched a tutorial on Youtube yesterday and found out how to rename a large number of photos quickly. So that was great. The pictures were all renamed but I noticed that that the date when they were made was not in order like in the original ones from the camera.
    Has anyone had the same problem?

  23. David Luskin on July 4th, 2009 6:36 pm

    Hi, How do I make a workflow on automator that opens up a web page, then refreshes the webpage every 2 minutes. It then tells me if anything changes on that webpage.



  24. CerealKiller on December 5th, 2009 12:37 pm

    Well I have found Automator both awesome and very limited.
    I am trying to copy / replace icons that live in the core folder …… well so far I haven’t found a way to do this. I know there is a way as I can make a installer package and it will install a whole theme …. I want to be able to make a drag and drop icon changer ….

    my problem is linking one action to a shell script ….
    I need to be able to use the CP action in the shell script but I can’t seem to figure out how to tell the script to use the input item as the source for the script.

    Automator is cool ….. but dont give it too much credit yet….. you guys are just playing with the user friendly functions….. when it comes to business …. it lacks alot of functions.

    How had would it have been for apple to include “with adminitrative rights”
    to the copy replace action ?

    if any one knows the answer to my week old headache please email me .


  25. Mathew Anderson on February 13th, 2010 8:41 am

    I am fairly new to automator, is it possible to scrape web sites etc and automate tasks like in iMacros ?
    Btw, what are the best tutorials for automator ?

  26. Chris ROB on February 20th, 2010 2:56 am


    HI, I am also very new in the world of Mac and very excited about Automator potential.
    I would really like to implement the following : synchronize the data stored on various HD. Indeed, I have McBook + a desktop PC + a Time Capsule and my purpose is tthe following : whatever is the computer I work from to modify or create a file (ex : desktop PC), I want this modification to be reported accordingly onto the Time Capsule HD… and then, via an smart synchro, be reported onto the other computer HD (onto my MacBook in the current example).
    Nota : In parallel to that, I use Time Machine to make sure I have a back-up containing the ‘historical” versions. So my question on Automator is really relatd to synchronizing the content of data stored on various HD.
    Thanks in advance for your help, guys ;-) Chris

  27. Peter Sundstrom on September 11th, 2010 6:50 am

    I really wish Windows had a tool like Automator.

    Perhaps it’s time I really bit the bullet and got a Mac :-)

  28. Vanessa Lee on November 2nd, 2010 10:04 am

    I will give this a try! Thank’s for this info!

  29. Janice on November 13th, 2010 2:57 am

    Mac have a lot of great application, I’ll try having one..

  30. links for 2010-12-27 on December 27th, 2010 8:20 pm

    [...] Tutorial: Automator Basics | MacApper [...]

  31. mikray on February 10th, 2011 6:51 pm

    Hi Guys, I just found a pretty nice site for a free iphone unlock / jailbreak/ iphone 3g 3gs and iphone4 jailbreak.


  32. computer services miami on June 6th, 2011 4:19 pm

    You definitely know how to bring an issue to light and make it important. I cant believe youre not more popular because you definitely have the gift.

  33. fdaffg on July 5th, 2011 11:23 pm

    <a href="http://www.hatsnewera.com" title="Wholesale Hats New era">Wholesale Hats New era</a>
    <a href="http://www.hatsnewera.com" title="Cheap New Era Hats">Wholesale Hats New era</a>
    <a href="http://www.hatsnewera.com" title="New Era 59fifty Hats">Wholesale Hats New era</a>

  34. aaronandy on September 9th, 2011 5:25 am

    thanks for your sharing ,i like it,it’s so intersting

  35. Ugg bailey button triplet bomber on September 16th, 2011 10:23 pm

    Like the Bailey Button, the Ugg bailey button boot met logo chestnut is a tall boot made from genuine twin-face sheepskin. We’ve updated this traditional style with three wooden UGG® logo buttons and elastic band closure. The Ugg bailey button fancy boot can either be worn up or cuffed down adding a little variety depending on your style.

  36. New Era Snapback on October 28th, 2011 1:14 pm

    10. 4Make4 the most of Social Media – Begin networking first on Linkedin, Fb, Myspace, or any web 2.zero destination that connects you to individuals with comparable interests. Start building up your contacts/associates listing, and construct up your relationship with these people. As soon as you’re feeling comfy, invite them to hitch a networking event with you. This may increasingly help the lessen any intimidation you may feel of going it alone.

  37. Support on August 27th, 2012 11:12 am

    I love looking through a post that can make men and women think.
    Also, thank you for permitting me to comment!

  38. Crédito Pessoal on October 3rd, 2012 11:22 am

    article interessant your products for apple in explication good

  39. Mac Automation Tutorials | iEnticement on February 18th, 2013 4:49 am

    [...] Tutorial: Automator Basics [...]

  40. http://www.community.estyletime.com on February 20th, 2013 8:43 am

    I believe everything typed made a bunch of sense. However, think on this,
    what if you wrote a catchier post title? I mean, I don’t want to tell you how to run your website, but suppose you added something that makes people desire more? I mean Tutorial: Automator Basics | MacApper is kinda vanilla. You might look at Yahoo’s home page
    and watch how they create article headlines to grab people to click.
    You might try adding a video or a picture or two to get readers interested about everything’ve got to say. Just my opinion, it would make your blog a little bit more interesting.

  41. Marco on April 9th, 2013 2:08 pm

    Hi there! I know this is kinda off topic but I was wondering which blog platform are you using for this site?

    I’m getting fed up of WordPress because I’ve had issues with hackers and
    I’m looking at options for another platform. I would be fantastic if you could point me in the direction of a good platform.

  42. chemise dolce gabbana pas cher on April 11th, 2013 7:43 pm

    Good day! Do you know if they make any plugins to help with Search Engine Optimization?
    I’m trying to get my blog to rank for some targeted keywords but I’m not
    seeing very good results. If you know of any please share.

    Also visit my web-site: chemise dolce gabbana pas cher

  43. chemise homme dior on April 13th, 2013 12:03 am

    Article writing is also a excitement, if you be acquainted with after that you can write if not it is complex to write.

    Visit my web blog :: chemise homme dior

  44. chemise burberry outlet on April 13th, 2013 1:34 am

    Admiring the commitment you put into your site and detailed
    information you provide. It’s awesome to come across a blog every once in a while that isn’t the same outdated rehashed material.
    Excellent read! I’ve bookmarked your site and I’m including your
    RSS feeds to my Google account.

    Also visit my homepage – chemise burberry outlet

  45. chemise burberry pas cher on April 15th, 2013 10:34 am

    Hey There. I discovered your blog using msn.
    That is a really neatly written article. I’ll make sure to bookmark it and return to read extra of your helpful info. Thanks for the post. I’ll definitely

    Feel free to surf to my page :: chemise burberry pas cher

  46. chemise lacoste homme on April 24th, 2013 3:00 am

    Hi there, I found your blog by means of Google while searching for a similar subject,
    your web site got here up, it looks good. I have bookmarked it in my
    google bookmarks.
    Hi there, simply was aware of your blog thru Google, and found that it’s truly informative. I am going to be careful for brussels. I will be grateful in the event you continue this in future. Many other folks might be benefited out of your writing. Cheers!

    my web page – chemise lacoste homme

  47. ???? ?? ?? on May 7th, 2013 10:47 am

    There is a lot surprise this specific simply just released sorts are listed below: uggs estimates boots and shoes mayfair boot styles girls java
    Highkoo Microsof corporation 5450 fight-style exceptional.
    These forms of Ugg Boots Clearance could be found in 2 colors from the store at fine sand at the same time as saying.
    Regardless products your first choice is, UGG Classic Short you
    will get in the UGG boot.

  48. chaussures hogan on June 1st, 2013 5:49 am

    I am actually pleased to glance at this webpage posts which includes tons of valuable data, thanks for providing these kinds of statistics.

    Here is my page chaussures hogan

  49. Christian Louboutin outlet on March 14th, 2014 3:41 am

    You have made some really good points there. I checked on the
    net for more info about the issue and found most
    people will go along with your views on this web site.

  50. ?????????????? on May 6th, 2014 1:04 pm

    I am actually grateful to the holder of this site who has shared this
    fantastic piece of writing at at this place.

  51. Does Get The Girl Code Work on May 13th, 2014 1:10 pm

    Your content article suggests that you are quite savvy and able
    to write pleasing material. Might you write for other people?
    I’m able to hire you for your work (per hour, per blog, .etc).

  52. Jequiti on May 15th, 2014 1:51 pm

    Very good article

  53. site de rencontre on June 7th, 2014 8:40 am

    Very good info. Lucky me I recently found your site by accident (stumbleupon).
    I have saved as a favorite for later!

  54. medileen on June 9th, 2014 3:26 pm

    Hey would you mind letting me know which webhost you’re working
    with? I’ve loaded your blog in 3 different internet browsers and I must say this blog loads a lot faster then most.
    Can you recommend a good hosting provider at a fair price?
    Thank you, I appreciate it!

  55. Google on June 28th, 2014 2:03 pm

    Observers maintain the item displays a new coherent approach,
    one thing thus low in your culture, that it’s not necessarily realised by simply all.
    * Let you know there are things you can do to improve y0ur ranking.
    Any time you create new content or share new links on your website or blog, be sure
    to do so by diversifying all of the link and anchor text you implement, regardless of the market you represent or
    the industry you are working in.

    Look into my web site :: Google

  56. Mona on December 12th, 2014 8:49 am

    My partner and I stumbled over here from a different web page and thought I might check
    things out. I like what I see so now i am following you.
    Look forward to finding out about your web page for a second time.

Feel free to leave a comment...
and oh, if you want a pic to show with your comment, go get a gravatar!