Ihnatko's Tiger Report: Automator
by - April 29th, 2005
I have to admit that I was a little bit wary when Automator was first announced. On my bandolier of Geek Scout merit badges, no patch receives higher prominence than AppleScript. I don't just write little scripts to automatically copy files to my iPod. I write full-blown applications with it. My weblog is updated and managed 100% by AppleScript, without any help from LiveJournal, MovableType, et al.
So I was worried that Automator might step on AppleScript's turf. Actually, if I'm going to be completely honest, I was worried that I've spent the past eight or nine years learning Esperanto. Or pursuing a Master's degree in fine arts. You know...something where you don't realize that you've been wasting your time until it's far, far too late.
But that's dumb. Automator is a fantastic boon to Mac users. Not just the geeks: it's a gift to ordinary users. Whenever I give a class on AppleScript, the simplicity of the language is my leadoff selling point. "Let's say you want to create a script that works on...well, let's say every item on the Desktop whose kind is 'Picture'," I begin. "What do you suppose the AppleScript code for that would be?" And then I tell them that the phrase I just used is indeed a working piece of AppleScript, and we're off and running.
Still, it's important to remember that just because I think it's cool, there's no reason to believe that it'll appeal to folks for whom a computer is just part of their workday, not part of their lifestyle.
Automator isn't the first "drag these graphical doo-dads around to create software" system. But it's the first that actually works as advertised. It's the first that isn't a colossal pain in the butt, the first that isn't way more complicated than just sitting down and learning how to use a "real" development system (like, hey...realBASIC).
You have a task that you wish to automate. You mentally break it down into steps. Then you rummage through a big bucket of Legos and look for bricks that resemble the steps that you have in mind. If you need help, just click on the Spotlight search field and type "resize an image" and presto...the list of bricks is narrowed to just the ones that resize images.
Snap 'em together in a stack. And gorblimey: it works. It just plain works. The mechanism is just so subtly-designed. Each one of these "bricks" is like a meat grinder. You toss stuff in the top of it, the crank is turned, and different stuff comes out through the bottom. So how do you cook a hot-dog, made from scratch?
Well, you start with a weiner-making machine. Drag that in there. What does the machine need? It says so right at the top of the box: it needs ground meat. Is there a meat-grinder in Automator's bag of tricks? Cool, there it is: drag it in above the weiner-maker. Oh, the grinder needs meat. Of course. OK, drag in an Action that locates a pork source on the hard drive. Put it at the top of the list.
Now all you need to do is drag a George Foreman Grill into the very bottom of the stack, and presto: an Automator action that spits out cooked weenies.
Like Spotlight, Automator will just get better and better as more and more publishers make their apps Automator-able. If you hit Apple's Downloads page, you'll find that Bare Bones Software has already released a fully Automator-studly edition of their text editor. Which means that anything that BBEdit can do, an Automator workflow can do. Given that BBEdit is a magic wand for text, this gives Automator a huge bump in features. With a well-tuned GREP search-and-replace, Automator can easily grab the text off of a webpage and isolate just that one bit of data that should be fed to the next step in the workflow.
I've been using Automator for a few months now, and while it's a blow to my ego that thanks to Automator, newbie Mac users can accomplish in minutes what took me months to learn with AppleScript, I can't possibly be sorry that it exists. I'm just reaping way, way too many rewards from it myself. Five minutes after I first launched Automator, I had a functional workflow that sets my Desktop wallpaper to the latest Astronomy Picture of the Day.
And that's not the half of it. Half the ginchiness of Automator is how well-integrated it is into the rest of the OS. Gosh, it'd be cool if that workflow could be run automatically every morning, so my Desktop is always current. No problem: I can just Export it to a recurring iCal appointment that happens at 6 AM every day. When I finish a column, lots of things have to happen before it goes into print and causes a tasty check to arrive on my doorstep. I've Automated the steps necessary to file my story with the correct editor, add the manuscript to The Ihnatko Archives, and invoice the publication's Accounting department for the job. Naturally. But I can also export it as a print option. Essentially, my "File Story" workflow is every bit a part of the Mac's standard printing interface as collating or multiple copies.
And as the Member Of The Extended Family Who Knows Computers And Stuff And Has To Keep Explaining How Things Work -- yes, dear reader, you're not the only one -- I'm going to make a lot of hay from Automator's ability to save workflows as standalone apps. I can't tell you how many times I've climbed into my car at some ungodly hour like 10 AM, so I could go to a cousin's house and "figure out why Safari's so frickin' slow." If he or she is using Tiger, I can just write a Workflow that does all of the mojo that I would otherwise have to do in person. My beloved cousin gets an app in the mail along with the terse instruction to try and double-click it without setting anything on fire. He gets his Mac fixed, I get to sleep until noon...everyone's a winner.
Finally, it's not like Automator is trying to replace anything. There are plenty of things that Automator can't do. It's more obedient than intelligent, and when you need your workflow to make an actual decision about something, you can have it hand things off to an AppleScript handler temporarily. You can use AppleScript to create brand-new Actions, too, and integrate Automator into your scripts.
And if I want to exploit Automator to make me look like King Geek of the Universe, well, here's a secret: there are plenty of Tiger features that can only be accessed through Automator. Tiger's new Core Image and Core Video routines. If you want to do some tricky 3-D transforms on your photos, you can either spend $500 on Photoshop...or you can drag three Actions together in Automator. Your choice.
Ihnatko's Tiger Report
digs the Mac, and has been writing about the Mac for longer than most of us could tell the difference between a bite of Apple Sauce from a byte of Apple code. You can read his monthly column at Macworld magazine, and his blog at the Colossal Waste of Bandwidth.
Andy's latest book is The Mac OS X Tiger Book (US$16.49 - Amazon).
You can send your comments directly to Andy, or you can also post your comments below.
Most Recent Columns From Andy Ihnatko
- You Can't Spell 'Speculate' without 'Peas' - February 22nd
- So: It's A Video iPod. Sweet! - October 13th
- How to Stuff a Wild iPod - October 13th
Andy Ihnatko's Archives
Observer Comments
I finally figured it out. The reason Spotlight is getting such press is that it's made for tech writers. Regular users don't want or need this silliness. My tech writer neighbor was practically kvelling over it, "wow, I can find that one little snippet of text I wrote two years ago!" Just like Ihnatko here. But when was the last time you (average computer user guy/gal) actually lost a file? I'm fairly organized and I can find anything I want on my computer in five seconds. And I guarantee I can find a picture faster than Spotlight ever would ('cause I label the folders properly).
I love Apple, don't get me wrong. But hyping an incremental upgrade to the OS based on desktop search, well, let's just way perhaps Apple's squeezed about all it can from this fruit. Panther is the best OS I've ever used, I'm sure Tiger is even better, but $130 and a day to get all your stuff working? Too expensive, not enough bang for the buck. I'll wait till the next one...
QuoteGuest wrote:
But when was the last time you (average computer user guy/gal) actually lost a file? I'm fairly organized and I can find anything I want on my computer in five seconds. And I guarantee I can find a picture faster than Spotlight ever would ('cause I label the folders properly).
I'm a 20-year veteran of Macs and computers and I do lose files, if I forget what I named them. Some users of Spotlight are saying it brings up files they forgot they had.
The real clue you don't understand Spotlight is that you assume a file system is the best way to organize a drive. You are wrong. It is increasingly recognized that a file system has serious flaws as a structure for file retrieval. For example, let's say you want to store a photo of your mother standing in a garden in New York in the spring of 1997. Does that go into the bus folder or the New York folder? Or the spring folder? Or the 1997 folder? Do you name the file "1997momgardenNYspring.jpg" so you can find it by the filename? No. These approaches rely on the file system and they breaks down rapidly in professional settings. The right way is to use metadata. With metadata, it does not matter what you name the file or where it's stored. The photo would contain metadata like EXIF data (date shot, time shot, lens, ISO etc) and keywords (mom, New York, garden, spring), and Spotlight will find all that.
By separating the information from the file system, you gain incredible amounts of flexibility in organization and speed in finding because you overcome the severe limitations of organizing a multi-subject item in a hierarchy.
The only reason you are satisfied with your system is because you have trained yourself to live within its limitations. I encourage you to read up on and understand the principles of metadata.
As for the value of Tiger, you might want to read this 21-page review. It shows me that there is indeed $129 of value in Tiger, but not in flashy splashy shiny things.
http://arstechnica.com/reviews/os/macosx-10.4.ars/21
while you are correct in the assertion that features that appeal to tech writers are just going to get more ink, you're missing the parts related to the Big Competitve Picture, since a huge issue resulting from info overload is the ability to find things.. for vast #s of people computer-using is greatly enhanced with spotlight's ability to quickly zero in on something-it's finder on steroids. Also, it's something Longhorners have been making huge hay from talking about how they're gonna' deliver... and Mac has it *today*, not next christmas... and it works, not an empty promise for years, but a reality. And spotlight's one of over 200 new features in this OS, which taken alone may not appeal to people as worth $130-and-transition-time (which should *not* take a day, btw), but taken together is easily cheap-at-twice-the-price. There are those who argue that Automator-alone would be worth the price. Having said that, you hang onto Panther and wait, its you're prerogative and a perfectly fine choice, even if it is a derivative decision from that subset of features that appeal to tech writers.
[quote="Anonymous"]
I'm a 20-year veteran Mac fanatic and I do lose files, if I forget what I named them. Some users of Spotlight are saying it brings up files they forgot they had. Spotlight searches for files you don't want, like "Hey, that picture I took of me in the shower, I thought I deleted that!"
The real clue I don't understand Spotlight is that I assume Spotlight will help me find files. I am wrong.
For example, let's say I want to store a photo of my mother seriously lost in New York in the spring of 1997. Does that go into the "Mom, you're dumb" folder or the "Mom, you're an idiot" folder? Or the 1997 "Mom's Moments" folder? The right way is to use Betazoids. With Betazoids, they can sense the emotions of files and thus find the files.
The only reason you are satisfied with your system is because you won't be a Macbot and plunk down $129 for every Mac OS. I encourage you to read up on and understand the works of Asimov.
I'm still going to pay $129 for Tiger instead of helping people.
QuoteAnonymous wrote:
I'm a 20-year veteran Mac fanatic and I do lose files, if I forget what I named them. Some users of Spotlight are saying it brings up files they forgot they had. Spotlight searches for files you don't want, like "Hey, that picture I took of me in the shower, I thought I deleted that!"
The real clue I don't understand Spotlight is that I assume Spotlight will help me find files. I am wrong.
For example, let's say I want to store a photo of my mother seriously lost in New York in the spring of 1997. Does that go into the "Mom, you're dumb" folder or the "Mom, you're an idiot" folder? Or the 1997 "Mom's Moments" folder? The right way is to use Betazoids. With Betazoids, they can sense the emotions of files and thus find the files.
The only reason you are satisfied with your system is because you won't be a Macbot and plunk down $129 for every Mac OS. I encourage you to read up on and understand the works of Asimov.
I'm still going to pay $129 for Tiger instead of helping people.
You said;
"And I guarantee I can find a picture faster than Spotlight ever would ('cause I label the folders properly). "
Obviously you have not used Tiger. And I can tell you right now, there is no way you can find that photo faster than Spotlight. I have thousands of photos in my Mac or it's external firewire drives. And it finds them instantaneously. You take five seconds? Heck, Spotlight will not only find the photos in less time, it'll pull up the word documents and pdf files, email and whatever else you have that's related.
Oh wait, you just want to find photos. Then I submit you simply don't understand what Spotlight is about.
actually, I h ave used Tiger. And it didn't find my photos (well, depending on how you searched). I've shot over 50k pictures with my 1Ds, so I have five sets of identically named files. So even if I searched on those filenames, Spotlight wouldn't really help me. I'd still need to go to the folder name and date to know which one was the right one.
And "grandma in the snow" only works if you've obssessively entered metadata on every picture you take. I actually do know people who do this, so it's not impossible, but I'm sure not going to waste my life tagging 50 or 60 thousand photos.
>submit y ou don't understand what Spotlight is about.
Well, I think I do, I just don't think it's as universally useful as many in the tech press are making out.In terms of my workflow, it's not something I want or need. (and now reading about the damage Tiger's doing to RAW files on Macintouch, I'm happier than ever to be sitting out this "upgrade")
Comments are currently closed. Please email the author instead.
Recent Headlines - Updated March 21st
- Sun, 5:53 PM
- Apple Context Machine Podcast - ACM 165: Jerome York, the iPad and Media, iCon, & Bryan on the Road
- Fri, 5:55 PM
- Games - Namco Releases Match-Three Game Tinseltown Dreams to the App Store
- 5:16 PM
- News - iPad Launch Day Deadline for Developers: March 27
- 5:11 PM
- News - Steve Jobs Helps Promote Organ Donor Legislation
- 4:06 PM
- iPad - VIVmag Shows Off Interactive iPad Version in the Works
- 3:07 PM
- App Store - Microsoft Yanks Bing App From Foreign App Stores
- 2:05 PM
- iObserver - Analysts Downgrade Troubled Palm Amid Severe Revenue Drop
- 1:35 PM
- In-Depth Review - PhoneSuite MiLi Packs a Powerful Punch
- 1:11 PM
- News - YouTube to Viacom: Sue Yourself
- 11:34 AM
- Product News - PocketMac for BlackBerry 5 Improves Snow Leopard Support
- 10:59 AM
- News - Apple iGroups Patent Hints at Social Networking Plans
- 10:20 AM
- Hot Forum Topic - Reader Discussion: Who Will Buy Palm?
The Mac Observer Reader Specials
- TypeStyler For Mac OS X is Now Shipping! Download The Free Fully Functional 60 Day Tryout at www.typestyler.com
Mac Memory and Hard Drives: MacBook Pro Memory 8GB kits $349.99! iMac Memory 4GB DDR Kits for $109.99! Mac Pro Memory 4GB Kits for $135.99! Mac Hard Drives 1.5TB Seagate SATA II for $147.99! Click Here!
- CarMD Handheld Device & Mac/PC Software System saves you time and money on car maintenance and repair. Buy at www.CarMD.com! Save $10 with code TMO2.
If you're using a Mac, then you've gotta check out Full Tilt Poker for Mac. This Full Tilt Poker bonus code does the unthinkable, it actually rewards!For the latest Apple products use Ciao, a price comparison website, to find laptops like MacBook Air. Then find the best prices on MP3 players and use our comparison tool to evaluate mobile phones like the Apple iPhone.

