How-to: One-click audio news, synced with your iPod in Tiger
This how-to uses the new Automator feature in Mac OS X 10.4 Tiger to set up a Workflow that can load up your iPod with audio content generated from one or several web sites of your choice by running one simple application. This is ideal for converting a selection of morning news and blogs into an audio file you can take with you to listen in the car. Plus, it's pretty simple and quick to set up, and serves as a basic introduction to working with Automator, as well.
Background
Automator is one of the most useful of the new features in Tiger. It allows you to build up complex actions you find yourself repeating manually, and execute them in one double-click, or even from a contextual menu. Even consolidating a four-step process into one step can be a valuable time-saver when you usually repeat those actions several times per day. Plus, you don't have to know other programming or scripting languages to get good use out of Automator (though if you do, you're going to feel right at home).
We've been hankering after a solution to get a quick dump of our RSS feeds into an audio file to sync with an iPod and listen to in the car. The text-to-speech functionality has been integrated into OS X since the beginning, but thus far it hasn't been terribly practical to go through all the steps to first convert the text to audio, then go into the Finder to import the file into iTunes for syncing. Automator can roll all of that into one step, making it a task that finally reaches a balance of effort output to result.
What you'll need
- Macintosh running OS X 10.4 Tiger
- iPod
See? We told you it was simple. Let's get rolling right away.
Create an Automator Workflow
First, launch Automator. A new workflow will be started automagically, or start a new workflow (File > New or apple-n) if Automator is already open.
Click on the Safari entry under the Applications folder. The available actions in the Actions pane will change to reflect the options available for Safari. Click and drag the "Get Specified URLs" action into the workflow pane:
Within the action window there is a pane where we can input all of the URLs we want to fetch. We tried this at first using the URL of an RSS feed, but we ended up getting an audio file on the plain XML file unrendered instead of the RSS feed as rendered by Safari, which is what we would want in a perfect world — which is confusing. We're not sure why it would work that way. But anywho, it turns out that just putting in the URL of a blog or news site more often than not gets us the result we want: the textual content of that page converted to an audio file. There are limitations to this, and you'll have to figure out which of your favorite blogs and news sites work well, and which don't. Sites that display their main content in the leftmost pane seem to work best (like Engadget, and the rest of the Weblogs, Inc. network — shameless plug!). Anyway, this isn't meant to be the be-all end-all system — this is quick and dirty at its best. Let's move on.
Type or cut and paste in the URLs of your favorite blogs and news sites. As mentioned above, some trial and error is probably going to be required here.
Next, pull in the "Get Text from Webpage" Action from the Safari Actions pane. You'll see the "flow triangle" on the right leading from step 1 to step 2 in the workflow pane:
Next, click the System icon in the far left pane in the Automator, to display the Actions associated with the System. One such Action is "Text to Audio File," which is the next Action we want to pull in to our workflow:
You can set some parameters in the "Text to Audio File" pane, such as which system voice will read the text (we're big on Victoria — YMMV. Some of them are really no good for anything other than a good laugh.), where the resulting file will be saved, and what it will be named. If you don't choose a name, it will be named by default, imaginatively, "audio text," "audio text 1," and so on, incrementing each time you run the workflow script.
Next, click on iTunes in the far left pane where the applications are listed. Again, the Actions pane will change to reflect the available Actions associated with iTunes. The next Action we want is named "Add Files to Playlist:"
You can choose to create a new playlist for the Audiofeeds to go, or add them to an existing playlist that you already sync with your iPod. We've created a playlist just for these "Audiofeeds":
So we just select the "Add files to playlist" and drag it into the right Automator pane, and this completes our Automator workflow:
Now, we've got a couple of different ways we can save this workflow as an application or script. We can save it as a double-clickable application to be launched from the Finder. Or, we can save it as a "Plug-in," which will let us stick a command conveniently in the Script menu. It's up to you — we're using the latter method, which we'll walk you through. In Automator, go to the File menu and choose "Save as Plug-in...":
In the "Plug-in for:" drop-down menu, choose "Script Menu." Give this script some sort of descriptive name. We're calling ours "Morning audio feed." Your script is now saved, and you can access it both within automator inside the "My Workflows" folder at the leftmost pane, as well as from anywhere right from the Scripts menu. If you're not familiar with using the scripts menu, it lives at the upper right in the menu bar and contains lots of handy little widgets that help you automate and simplify processes. Our new application now lives at the bottom (you can also organize your Automator scripts into folders in the Script menu):
When you want to trigger the workflow we've made, just select it from the script menu. You'll see some status messages flashing on the right in the menu bar as each action gets executed:
When complete, iTunes will be foregrounded and you can see the resulting audio in the playlist you selected. A separate file will be created for each of the URLs you specified in the "Get Specified URLs" pane, in the order you specified, instead of making one massive file. Now, next time you sync your iPod you'll get the latest posts (assuming you set up iTunes to sync the playlist you chose) in audio format, as read in the ever-engaging style of the operating system voices, ready to take with you on the go.

Limitations and going further
This is just the beginnings of a system, and also a basic introduction to using Automator in Tiger. It would work far better if "Get Text from Webpage" could just pull content from a parsed RSS feed. Surely someone will either create such an action for Safari or for one of the third-party RSS readers, which will kick the ass of this interim system. Even better — if the iSpeakIt application had associated Automator actions, it would be very easy to convert this into a one-click full RSS to audio solution (if you can live with a couple of extra steps, you might want to give iSpeakIt a try, anyway). And admittedly, sometimes the system voices are worth more as a laughter aid than an informative one, as well. But hey — who's gonna turn down some extra laughs on the way to work?
Update
: Peter Cooper suggests using RSSDigest to generate an Automator-readable URL that will fetch just the feed content. Sweet! Steve offers some variations on the above method. Thanks!!


















Reader Comments (Page 1 of 1)
mick @ Dec 19th 2005 1:20AM
possible on windows?
Mark @ Dec 19th 2005 1:20AM
Could you guys just like upload the workflow for Engadget's feed? :) I know you can do it somehow, the guy at the Apple Store was telling me during an Automator demo.
gorkon @ Dec 19th 2005 1:20AM
I have found issues with using Automator to add MP3's to my shuffle. I may have to try this to confirm it.
ig88 @ Dec 19th 2005 1:20AM
every time i add the iTunes command, automater hangs.
tb @ Dec 19th 2005 1:20AM
whats a good text to speech converters for windows?
rhys @ Dec 19th 2005 1:20AM
I don't have Tiger, and I don't have NewsNetWire, but your pals at TUAW mentioned that it had Automator Functionality. Can someone try this out using NNW to get RSS feeds?
Kyle @ Dec 19th 2005 1:20AM
SO AWESOME! I'll be trying this as soon as I get home! I can convert all my MMORPG forum ramblings about cloaks, cloak colours, cloak materials, and cloak weaving techniques!
"Is this possible on Windows?" I use both and I find myself asking this very same question all the time. If my Mac had all my PC's games (and game speed) I'd never even concider using a PC.
mveloso @ Dec 19th 2005 1:20AM
Hey guys,
if you want to hilite something in a graphic, the easiest way to do it is to select the "elliptical marquee" selection tool, make a nice selection, then select->modify->border->4 pixels is usually enough.
Then choose a fill color and fill the little outline.
It looks much nicer than using the pencil tool.
Craig Campbell @ Dec 19th 2005 1:20AM
If you would like high quality audio, Cepstral offers 18 voices that are 100% compatible with Tiger and the Apple Speech Manager. The new David or Diane voices will make listening _much_ easier on the ears! (www.cepstral.com)
Mike @ Dec 19th 2005 1:20AM
ig88-
I'm having the same issue. Adding the iTunes command hangs Automator. Wierd, I've tried it in another workflow, same result.
Adam @ Dec 19th 2005 1:20AM
"This how-to uses the new Automator feature in Mac OS X 10.4 Tiger to set up a Workflow that can load up your iPod with audio content generated from one or several web sites of your choice by running one simple application. This is ideal for converting a selection of morning news and blogs into an audio file you can take with you to listen in the car"
In response to the above. I've never heard a dumber thing. Why would someone go through all this hassle to have news on their ipod??? & then to listen to it in the car??? Are people really that lazy to turn the radio on in the car? Radio gives you fresh news right there on the spot, sports, business, weather and all. You have all the changes right there while listening to it as opposed to something that is downloaded and may be reffered to as old news. Besides if the ego centered geniuses at apple whould have built the fm tuner into the ipod like so many other much smaller mp3 players already have maybe you wouldn't have to go through all the hassle listed above & even if it did have it I still wouldn't listen to it in the car. Thats what you car stereo is for!!! this is a portable device remember???
jaykk @ Dec 19th 2005 1:20AM
Try hitting Shift+ESC if iTunes actions hangs. ( It keeps searching for iTunes playlists each time i switch to Automator, so pressing Shift+Esc comes out of this loop.) hope this helps.
Matt LeBeau @ Dec 19th 2005 1:20AM
Same issue with iTunes command hanging Automator here.
I have a large-ish iTunes library (over 70GB), so perhaps that has something to do with it?
To the others that are having this problem, do you also have large iTunes libs?
jaykk @ Dec 19th 2005 1:20AM
Comment # 1, Correction : Try Option+Esc instead
mike @ Dec 19th 2005 1:20AM
I have a large-ish iTunes library (over 70GB)
--
I have a small-ish library of 8GB...
I think the people at Napster wanna talk you into subscription service.. oh wait.. you steal music? Nevermind..
otakucode @ Dec 19th 2005 1:20AM
Features like Automator truly make me whimper with lust after a Mac. I desire one like the desert craves the rain. Unfortunately my bank account does not cooperate.
Michael @ Dec 19th 2005 1:20AM
AUTOMATIC EXECUTION OF THIS WORKFLOW--
I don't have Tiger [yet! should arrive tomorrow] so I can't speak directly to Automator topics.
However, if Automator workflows can be saved as applications in the same way that AppleScripts can be saved as applications then one should be able to go into iCal and set an alarm to launch this Automator workflow/application on just about any schedule one would like.
Simply schedule this to happen every morning [or whenever you prefer] and choose the alarm "Open File".
Mark @ Dec 19th 2005 1:20AM
For Those of you who are getting hangs in iTunes when doing this.
Do not use the 'Add to play list" use the 'import Audio file' action instead. And Create a Smart Playlist with the Song name contains = you "workflow "name.
As to the workflow being Posted you can do this by opening the .wflow file in a text editor an d pasting the contents. ( very long )
then all some one has to do is copy into a plain text document and save as a .wflow file. then double click it.
Lectrick @ Dec 19th 2005 1:20AM
To the person beeotching about using the FM radio in the car: Two things are clear.
1) You don't have a Mac and are whining
2) Obviously, custom blog content is easily replaced by FM radio broadcasts. Idiot
Kurisu @ Dec 19th 2005 1:20AM
Same issue with iTunes command hanging Automator here.
I have a large-ish iTunes library (over 70GB), so perhaps that has something to do with it?
To the others that are having this problem, do you also have large iTunes libs?
----
Ditto. I have that same issue. I send a bug request to Apple. And no, I don't steal music. All my own. :D D:
Peter Cooper @ Dec 19th 2005 1:20AM
Just use RSS Digest. Put the feed URL in, and create a text digest of an RSS feed. You can specify how many of the items you want, and change the format so it's totally plain text. Then put that URL into this system..
Steve @ Dec 19th 2005 1:20AM
This is a great use of Automator. I have a few variations of this here:
http://www.automatorworld.com/category/workflows-actions/ipod/
barb dybwad @ Dec 19th 2005 1:20AM
@Adam: I have an iPod so precisely I don't have to listen to any of the crap that's on FM radio! Blech!
@Peter: great idea. Thanks for the suggestion!
@Steve: sweet, thanks for these tips, too.