Skip to Content

Submit your nominations for the Luxist Awards' Best in Decor
AOL Tech

Filed under: Software, Features, Cool tools, Productivity, Internet Tools

TUAW Automator Action: Mail Man - attach to email and automatically send

A while ago I had to help the TV Squad crew cover an award ceremony by snapping screenshots with my Eye TV. I needed a way to fire these shots off to members of the team with the least amount of effort, so I put together a few Automator droplets that could take whatever files I drop on them, attach them to a Mail.app message and automatically send them to pre-determined recipients with no questions asked. At the time I didn't think too much of the actions, so they got busy with collecting dust on my backup hard drive, waiting for a time when they might be called back into action. Well, this similar hint at macosxhints.com was just that time, as it inspired me to bring these actions out of mothballs. That hint seems a little overly complex to me, what with the scripts and the editing and creating folders and attaching - oh my! I figured this Automator action might be a little easier to deal with, so here you go. I call it Mail Man, and we're hosting it on TUAW. Here's how it works.


First, in the zip file we're providing, there are two files: one is a .workflow file which is ripe for opening and editing in Automator, and the other is a .app saved from the workflow, which you can simply drag and drop onto Automator in the dock to open and edit as well (I just wanted to cover all the bases). No matter which file you open for editing, you'll see there are three actions that make Mail Man tick. The only one you need to really care about is the second action, 'New Mail Message,' and there are a couple of ways you can make it work, depending on how you roll.

First, if you twirl down the Options arrow, you'll see that 'Show Action When Run' is not checked; this means that if you fill in at least one recipient (as I have for demonstration purposes), Mail Man will simply open a new message, attach the files and send the message, with no further effort on your part. However, if you would like some on-the-fly control over who this message gets addressed to, or perhaps you would like to add a subject on a per-message basis, your second option here is to check that box. This will give you a dialog each time you run the action that looks remarkably similar to this:



This will let you make any changes to the message before the action completes its task. Once you click Continue, Mail Man will finish creating the Mail.app message, attach your files and send them into the wild binary yonder.

Now I typically use this action as a droplet on my desktop (or from the Dock), created by choosing File > Save As... in Automator, but it works just fine as a plug-in for the Finder and Folder Actions as well. Using it this way, you could right-click files and folders in the Finder and chose Automator > Mail Man (or whatever you chose to call it), or simply attach it as a Folder Action so you can automatically email anything you drag and drop onto a specific folder.

Either way, I hope you find Mail Man useful, as it's good for all sorts of handy email work like archiving stuff in Gmail and shooting files to coworkers. Feel free to ask question in the comments, and I'll try to help.

Reader Comments (Page 1 of 1)

Tip of the Day

F11 moves all your windows off the screen so you can quickly glance at your desktop. F10 shows you every open window in an application. F9 shows every open window for every application that isn't hidden or in the dock.


Follow us on Twitter!
 TUAW [Cafepress]

Featured Galleries

DNC Macs
Macworld 2008 Keynote
Macworld 2008 Build-up
Google Earth for iPhone
Podcaster
Storyist 2.0
AT&T Navigator Road Test
Bento for iPhone 1.0
Scrabble for iPhone
Tom Bihn Checkpoint Flyer Briefcase
Apple Vanity Plates
Apple booth Macworld 07
WorldVoice Radio
Quickoffice for iPhone 1.1.1
Daylite 3.9 Review
DiscPainter
Mariner Calc for iPhone
2009CupertinoBus
Crash Bandicoot Nitro Kart 3D
MLB.com At Bat 2009
Macworld Expo 2007 show floor

 

More Apple Analysis

AOL Radio TUAW on Stitcher