Skip to Content

Free TUAW iPhone app -- try it now!
AOL Tech

automation posts

Filed under: Software, Cool tools, Odds and ends, Freeware, Internet Tools, Developer, AppleScript

TweetMyMac: Remote control of your Mac via Twitter

Important safety tip: Please read the instructions for TweetMyMac carefully, especially the part about creating a separate Twitter account for your Mac -- do not use your regular Twitter account, or anyone you follow will be able to control your machine.

We have previously covered some of the ways in which it is possible to remotely control a Mac at home or in the office. Most of our suggestions have required the use of Mail in order to process some rule and kick off a script or Automator action.

Alex P over at TheMacBox aims to change all of that. Enter TweetMyMac, the little program that lets you get screenshots, iSight snapshots, or launch a program through the use of Twitter. While the list of commands available is not currently as comprehensive as what your imagination can create with a little AppleScript or Automator whizzbangery, it is a good list and growing as well.

An obvious benefit of this approach is the ease of getting everything set up. In the past it took an AppleScript to call another Automator action or some other kludgey-at-best method to get things working. With TweetMyMac there is very little effort required for setup.

Another neat feature is that TweetMyMac will run a shell command. With a little scripting you can create your own custom commands. And using the previously-covered technique of sending tweets via the command line you can have your custom commands send information back to you as well.

Continue readingTweetMyMac: Remote control of your Mac via Twitter

Filed under: Software, Features, How-tos, Tips and tricks, Internet Tools, AppleScript

Use iCal to tweet automatically

Recently, the question came up of how to automatically "tweet" a birthday message to a friend or loved one on their special day. After thinking on this question for some time I finally came to a solution. As it turns out, intrepid TUAW blogger Dave Caolo wrote a Mac 101 article all about attaching AppleScripts to iCal events. Additionally, Brad Linder over at Download Squad put together a nice little tutorial for posting to Twitter via the command line.

It wasn't obvious at first, but these two articles together formed a dynamic duo of birthday tweeting proportions. If, dear reader, you are interested in setting up a system for sending out some birthday tweets then follow along as we travel the mysterious world of iCal events and command line tweeting. Read on for a somewhat technical tutorial on how to set up some pre-scheduled tweeting goodness. (If you're looking for a service to take care of all this for you, here you go.)

Continue readingUse iCal to tweet automatically

Filed under: Software, Cool tools, Mac mini

Mac mini and Dropbox: Getting it done

Yesterday I wrote about my love of the Mac mini. So dependable and unobtrusive, it's the Honda Civic of computers. In the post, I briefly described how we use Dropbox to send routinely-updated Keynote files to the mini. A few of you wrote to ask for details, so I decided to share that information here on the blog. We use two pieces of software: Dropbox and iCal.

Dropbox


Here's the setup. First, the Mac mini is connected to the projector in the Projection Room above the theater via DVI. Every day, it runs a slideshow before the orientation film. That slideshow contains sponsorship information, museum news, etc.

It's updated once a week or so by someone in the art department (we'll call her "Janie"). Janie's desk is a couple hundred yards and two buildings away from the Projection Room. The Keynote file lives in a Dropbox folder that both Janie's PC and the mini can access. Of course, we don't want Janie editing the slideshow while it's running before a room full of guests. That's where iCal comes in.

iCal


We stop showing the film at 4:00 PM and Janie arrives for the day at 9:00 AM, so we set up two repeating iCal events.

The first event launches the slideshow in the morning. Every weekday at 8:45 AM (doors open at 9:00), there's a repeating iCal event with an alarm set to open the slideshow where it lives in Dropbox. Note that the show has been set to run at launch and loop indefinitely in Keynote.

What about updating? Easy. We stop running the slideshow at 4:00 PM and Janie leaves for the day at 5:00 PM. A second repeating iCal event has an alarm that runs the following super-simple Applescript:
Tell application "Keynote"
quit
End tell
The script does just what you expect -- it kills Keynote. This runs at 4:05 PM each weekday, and frees Janie to spend 10 or 15 minutes updating the file from her PC just before she goes home. The next morning, the first iCal event re-launches the slideshow and the cycle repeats.

That's how two free pieces of software (iCal and Dropbox) combine with an inexpensive, consumer level one to create a simple and effective solution to a problem. Best of all, it doesn't require a computer science degree or even a week with a giant manual. The iCal events and script are invisible to Janie. All she knows is, "I open the folder on my PC, change the slideshow, hit Save and I'm done." Sure, we could have dumped it on a central server, set up some sort of FTP voodoo that would have given Janie a headache, etc. But why? If the simple solution works, use it.

If you try something similar, let me know how it goes. Thanks to everyone who asked about this.

Filed under: Software, Cool tools

WWDC Demo: QuicKeys 4


WWDC isn't all about iPhone apps. Long before the iPhone was a twinkle in Steve's eye, WWDC was all about developing for the Macintosh. I had a chance to sit down with the guys behind QuicKeys, a venerable Mac app that will save you a lot of time on repetitive typing tasks. I got a look at the beta, but the full version is now available for $59.95 ($29.95 if you are upgrading from version 3).

For example, if you are constantly typing your email signature, QuicKeys can auto-complete the typing when you type "szm" or any other character combo you like (in a similar fashion to TextExpander). QuicKeys can also create keyboard shortcuts for darn near anything, and record actions for later use. That's really just the tip of the iceberg. QuicKeys has MIDI triggers, a powerful search tool, web actions, an online repository for shortcuts and tutorials, and the company is set to release a QuicKeys remote app for the iPhone/iPod touch (so yeah, you just can't escape that little platform).

Luckily, you can try QuicKeys yourself and get a feel for how powerful it truly is. There's a 30-day trial mode, but Startly (makers of QuicKeys) has a generous "unlimited" trial period, which extends the trial app indefinitely. I know I've often downloaded an app, installed it, then come back close to 30 days later to realize I can't dig into it within the timeout period. Give it a try and I think you'll be pleasantly surprised. If you are a power user, this thing is a lifesaver. If you're a casual user, there's still benefit to typing less throughout the day.

Filed under: AppleScript, Snow Leopard

Snow Leopard offers more Automator "purrfection"



If you know me, then you know that I love Automator and scripting things on the Mac. I believe that Automator should be something that everyone can take advantage of, not just the select few that already know how to use it well. That's why I've been working on the TUAW Mac Automation and AppleScript series for over a year now (we're going to have more coming soon, so stay tuned).

I was watching the WWDC '09 keynote, desperately waiting to see if anything new was announced for Mac OS X 10.6 Snow Leopard in regards to automation, and specifically Automator.app. Nothing was said at the keynote, but when I looked on the newly updated Snow Leopard page on Apple's site, I was ecstatic. One of the refinements listed was that Mac OS X Services would now be a feature of Automator. Services let you use features of one application while you are inside of another. In the Automator instance, you would be able to use workflows while you are inside of any Mac OS X application that supports the use of Services.

In addition to updating Automator for Services, Apple has also added more starting points for workflows. You can now choose between a standard workflow, application, service, folder action, print plugin, iCal alarm, or an image capture plugin. We will have more information about Automator and Services in Snow Leopard when it launches in September.

Filed under: Software, Security

Meerkat 1.2, 100% more AppleScript support

If you work from non-secure networks (coffeehouses, airports, hotels, etc.), or if you've ever wanted to bypass a firewall (YouTube or TUAW blocked at work?) you may be familiar with SSH tunneling. It's come up more than once here on TUAW. It allows you to conduct your Internet business through a secure proxy and makes the process transparent (once you set it up, you don't have to think about it). It's typically handled via a shell command, but some GUI-based programs can make life a lot easier -- both for the less technically-inclined, and for those who want to handle multiple tunnels and automation.

Enter Meerkat, the SSH tunnel tool with the friendly face. I mentioned Meerkat about a year ago, and apparently things have been busy at the Code Sorcery Workshop since that release. The latest version of Meerkat -- version 1.2 -- sports an array of new features, from AppleScript support to a command line utility, as well as improvements to existing features like Bonjour sharing and the tunnel editing interface. I've been using the previous version for quite some time now, and I can say that this version adds some great features to an already great application.

AppleScript support means automation, and Meerkat plays well with location managers like NetworkLocation (a plugin is available on the Meerkat page), or any location manager which can run AppleScripts or shell commands. With such a setup, you can have your system automatically detect a change in networks and set up specific tunnels depending on your location. I won't go into the details of location managers right now, but it's something to look into for laptop owners on-the-move.

Additional features, including Application Triggers, Bonjour support and automatic reconnect for dropped tunnels all make Meerkat a valuable tool. At a current price of $19.95US, Meerkat provides features for a spectrum of users, from the Tunnel Setup Assistant for newbies, to advanced automation possibilities for veteran SSH'ers. I'd be negligent if I didn't mention at least one similar app in the freeware realm: SSHTunnel is a nice, easy-to-use GUI for setting up and managing tunnels. It lacks some of the automation and integration capabilities, but is a definite must-see if you're not ready to fork out for something more full-featured.

A trial of Meerkat is available for download, and a license can be purchased for $19.95US.

Filed under: Features, How-tos

Mac Automation: Make your text speak its mind


Have you ever wanted to type something into your Mac and have it record what you typed audibly using any one of the Mac OS X voices? It's easily done with a few Automator actions, and in this Mac Automation post, I'll show you how.

Open Automator and find the following actions, then drag them to the workflow area (in the same order):
  • Get Specified Text
  • Text to Audio File

Running the workflow
With these two actions in place, you can enter text into the Get Specified Text action, and a file name in the Text to Audio File action, and run it with great results. The text that you enter will be magically encoded into audio using the specified voice in the audio file action.

Read on to learn more about saving the workflow, and adding additional options.

Continue readingMac Automation: Make your text speak its mind

Filed under: Hardware, Peripherals, Hacks, Odds and ends, Internet, iPhone, iPod touch

Woof! An iPhone-controlled dog treat dispenser

While you're geeking out with your techie friends building battle bots or pumpkin cannons, why not give your dog a little love at the same time?

TUAW reader Stephen Myers sent us a link about a fun little project he worked on. He wants to be able to check on his dog's well-being and reward the dog with treats from anywhere he can use his iPhone. Stephen found out about ioBridge, a company that develops electronic monitoring and control modules that connect to any Ethernet network and can be controlled via an encrypted web front end.

Myers used an I/O module and servo smart board from ioBridge, a servo, an old CD spindle case, some cardboard and wood scraps, a large syringe plunger, and a webcam to build his device, and then used the ioBridge web interface to create a widget that controlled the device. No programming was required. The system generated javascript that was then embedded into a web page optimized for the iPhone screen, and now Myers can check up on Cooper, his dog, and give Cooper some treats.

Myers has many more details about the system in his blog entry, and he will be writing future posts about how he's using ioBridge and X10 controllers to turn lights on and off in his home -- from his iPhone.

Be sure to check out the YouTube video below!

Filed under: Features, How-tos, AppleScript

AppleScript: Integrating shell scripts


We've talked about AppleScript how-tos before. AppleScript is fun and all, but what if you already know how to write shell scripts? Well, did you know that by integrating shells scripts into AppleScript, you can create simple applications that do useful things? It's true, and I am going to show you how.

Continue reading to learn how to integrate shell scripts into AppleScripts.

Continue readingAppleScript: Integrating shell scripts

Filed under: Software, Productivity

Keyboard Maestro 3 adds macro recording and remote access

The well-known macro application Keyboard Maestro has been updated to version 3 and adds some interesting new features. In addition to a revamped interface, the new release allows you to record macros (series of key presses, mouse clicks, etc.) and play them back via various triggers. There are also new ways to trigger the macros; besides the normal hotkeys, macros can also be triggered with AppleScripts and even remotely with Keyboard Maestro's built-in web server. If you've ever wanted to automate your Mac, it's definitely worth a look.

Keyboard Maestro 3.0 is $36 with upgrade pricing from $18 - $26 for previous users; a demo is available.

[via MacNN]

Filed under: Features, How-tos

Mac Automation: automating Microsoft Excel 2008

This is the second part of Mac Automation: automating Microsoft Office 2008. In this how-to, I will show you how to create an importer for Microsoft Excel 2008. This importer will allow you to type text in TextEdit.app (or other text editor) and import it into an Excel file.

For this automation, you will need the following Automator actions (in the same order):
  • Create New Excel Workbook
  • Set Excel Workbook Properties
  • Get Specified Finder Items
  • Import Text Files to Excel Workbook
  • Save Excel Workbooks
Continue reading to learn how to automate this process.

Continue readingMac Automation: automating Microsoft Excel 2008

Filed under: Odds and ends, Apple, Developer

AppleScript language guide updated, finally!

Many people have criticized Apple for not updating their AppleScript language documentation regularly (myself included). Scoff no more, because Apple updated their documentation yesterday. The last update to the AppleScript language documentation was on May 5, 1999 -- almost 9 years ago.

For anyone who thought that Apple was abandoning AppleScript for other ways of automation (such as Automator), fear not. This shows that Apple is still committed to bringing custom automation/scripting to Mac OS X and the 21st Century.

Filed under: Features, How-tos

Mac Automation: automating Microsoft Word 2008

When Microsoft released Office 2008 for Mac, they did something that I must applaud -- they joined the ranks of Mac developers creating Automator-able applications. When you do a search in Automator for "Microsoft," it will reveal all of the Automator actions that ship with Microsoft Office 2008. There is lots of great stuff included, so we'll be covering some of it in this four part Mac Automation series. I will take you through how to automate each of the Microsoft Office applications: Word, Excel, PowerPoint, and Entourage.

First off, let's take a look at what you can automate in Word 2008. Doing a search for "Word" in Automator will display the available actions for Microsoft Word. As you can see, there are plenty of actions that you can automate. For this how-to, we'll focus on a workflow that does the following:
  • Creates a new document
  • Sets document properties
  • Gathers text from the clipboard
  • Places a watermark in the document
  • Saves the document
  • Prints the document
Continue reading to learn how to create this workflow.

Continue readingMac Automation: automating Microsoft Word 2008

Filed under: Features, How-tos

Mac Automation: listen to a text document

Don't have time to read that Word, Pages, or TextEdit document at your desk? Why not listen to it on your iPod instead? In this Automator how-to, I am going to show you how to create an audio file using text that you have in an open document, then sync that using iTunes to your iPod or iPhone.

Creating the workflow
For this workflow, you need the following Automator actions (placed in the same order):
  • Get Contents of TextEdit Document
  • Text to Audio File
  • Import Files into iTunes

Continue reading to learn how to build this workflow.

Continue readingMac Automation: listen to a text document

Filed under: Features, How-tos

Mac Automation: saving Automator workflows

Now that you've been introduced to Automator, let's let's get into the "nitty-gritty." In the previous Automator post, we learned how to make a workflow that would take photos from your camera, import them into iPhoto, then allow you to e-mail them. Let's look at the three ways in which you can save this workflow for later reference.


Workflow File
You can save the workflow as an actual Automator workflow file by clicking File > Save; choose "workflow" from the format drop-down menu. By saving as an Automator workflow all of your actions are preserved, and when you re-open the file, you will be presented with your workflow just as you left it. This is a great way to save your workflow for editing later on.


Continue readingMac Automation: saving Automator workflows

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