Mac Automation: Get to-dos sent to your mobile from iCal upon request
Say you're out and about and realize that your iPhone doesn't display iCal to-dos. What do you do? You've got two options: (1) Panic, (2) Use this Automator workflow. With this workflow, you will have access to all of your to-dos, even if you are not at your computer -- you just need access to your main email account. When you send an email to your email account, this script will run, sending you back your ToDo list from iCal.
Creating the Automator Workflow
To create the Automator workflow, you need to find the following Automator actions and drag them into the workflow area of Automator (in the same order):
- Find iCal Items
- New Mail Message
- Send Outgoing Messages
In the "Find iCal Items" action, select "To Dos" from the "Find" drop-down menu. In the "Whose" section, select "Due Date" from the "From" box and "Today" from the second box. You can deviate from the instructions on this step and use the settings that allow you get the most use out of this workflow (for instance, you can select any interval of time you want, etc.).
In the "New Mail Message" action, enter your email address in the "To" field -- this is the address that your ToDo list will be sent to. Fill in a descriptive subject line like "My ToDo Items for Today" or something similar. Be sure to select an email account that your remote Mac can utilize.
Continue reading to learn how to complete this workflow and create the Mail rules.

To make this work properly, we need to save this Automator workflow as an application. Click File > Save As. From the "Format" drop-down menu, select "Application." Save this workflow in your /Applications directory. Remember the name that you chose, as you'll need this for the next step.
Creating the AppleScript launcher
To use Mail rules, you need to have an AppleScript launcher. This launcher is a very simple AppleScript that will launch the Automator action and allow it to run. Open Script Editor (/Applications/AppleScript) and type the following command:
tell application "AppHere" to runSubstitute "AppHere" with the name that you chose for your workflow. Save this Script by clicking File > Save. You'll need to remember the application's name and location when creating the Mail rules.
Setting the Mail rules
This part is fairly simple and settings may vary by user preference. Open Mail.app and navigate your way to Preferences > Rules and click "Add Rule," then follow these instructions for each command you want to use:
- Add a description (this is for your information)
- Select "All" from the "if" drop-down box
- Under "If all of the following conditions are met:", add these things: (you will need to click the "+" to add the second item)
- "Subject" ... "Contains" ... "iCal"
- "Message Content" ... "Contains" ... "ToDos"
- Under the "Perform following actions:", add these things: (you will need to click the "+" to add the second item)
- "Set Color" ... "of text" ... "Red"
- "Run AppleScript" ...
- Beside the "Run AppleScript" action, you will see a choose box, click it and navigate to where your saved script is located. Click on the script and then on "Choose File"
Running the script remotely
To run the script, all you have to do is send an e-mail to your account with the subject and message contents as you specified when creating the rules. For the rule that I created, I would send a message with "iCal" as the subject and "ToDos" as the contents of the message.
After you send the message, you will receive a list of the day's to-dos.
Additional Notes
- You can include unusual characters for message content conditions (i.e. #, @, or ^) in order to avoid accidentally running a script that you didn't want (for example use: #iCal# instead of just iCal)
- It is also a good idea to have Mail.app check for new messages often for this to work well
- Your Mac will need to remain turned on and have Mail.app opened for this to work properly.
Want more Automator how-tos like this? Visit TUAW's Mac Automation section.
Share
Say you're out and about and realize that your iPhone doesn't display iCal to-dos. What do you do? You've got two options: (1) Panic, (2)...
Add a Comment
Good idea, but it's shame that it requires your Mac to be switched on all the time.
October 01 2008 at 12:40 PM Report abuse Permalink rate up rate down ReplyWhile I'm sure we all appreciate the tip, it's about time this functionality is built into the iPhone already. I keep hearing how that CUT & PASTE is the most requested feature still missing but in my mind, we need comprehensive iCal and Todo syncing
October 01 2008 at 1:03 AM Report abuse Permalink rate up rate down ReplyThis is a joke, right? A decent exercise in learning Automator, but ToDos need more flexibility than just seeing them in an email.
Things or OmniFocus are two great (albeit, non-free) alternatives. Lots of productivity/todo apps on the AppStore too...
I too tried it and I get an email that is blank. I like the idea but what's up?
September 30 2008 at 8:47 PM Report abuse Permalink rate up rate down ReplyThis is extremely useful, though I am unable to get it to actually send the contents of my to do list.
If I send myself the email, the rule kicks in, opening the Apple script and the subsequent Automater workflow.
I then see the email being generated with my chosen subject, and it is properly sent to a Yahoo push email account I specifically created for this purpose.
The problem, however, is that the iCal to do contents are not present in the email I receive.
I verified this wasn't a matter of the due date not being "today," as specified. I also created several test to do's with a whole range of dates to see if any kicked in.
What could I be doing wrong?
I finally got it to work, but I can only do so by having it send the entire list via the "Calendar" is "..." setting. I'd really like to get it to isolate those items due only the current day. Nevertheless, this is a useful bit of trickery.
Here's a better idea though: how's about Apple natively support to do's in the iPhone! YAY!
Never mind the above success. It only worked once and now it won't work again...
Hot Apps on TUAW
Deals of the Day
more deals- Verizon Leather Sleeve for Tablets for $4 + free shipping
- Wicked Jaw Breaker Noise-Isolating In-Ear Headphones for $6 + free shipping
- Refurb Apple MacBook Air Laptops: 12" 64GB SSD for $699 + free shipping
- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



12 Comments