10.4: Automate 'out of office' reply toggle
Nov 10, '06 07:30:04AM
Contributed by: filipp
If there's one thing that computers are better at than humans, it's remembering things. Take for example the typical "Out Of Office" email reply -- you go on vacation and set a rule in Mail.app to automatically respond of your absence to any email with a certain criteria. Then you come back and a day or two later and have to remember to turn the notification back off again.
Well if You use iCal, your Mac most likely already knows when you're leaving and coming back, so let's simply tie that information with Mail.app. Here's how:
- Open Automator and from the Automator library add a Run AppleScript action.
- Replace the code with the following, putting in the name of your Out of Office rule:
set myRule to "Name of my Out of Office rule"
tell application "Mail"
set enabled of rule myRule to not enabled of rule myRule
end tell
- Choose File -> Save As Plug-In, give it a name (like "Toggle Out-Of-Office"), and set the Plug-in for pop-up to iCal Alarm. Save.
iCal will open with a new event which you can simply delete. Then just create events on the start and end dates of your vacation (if you haven't already) and set your newly-created script as the alarm (which you'll find in the alarm "Open file" dropdown menu).
The reply will now activate when you leave, and deactivate when you return. Just make sure your rule is Inactive before you go!
[robg adds: If you'd rather not leave your machine on the whole time you're gone, just use the Energy Saver System Preferences panel to set a sleep and wake time each day. Leave Mail running, and it will check your mail when the machine awakes. Energy Saver will then put the machine back to sleep again later -- just leave enough time for Mail to finish downloading.]
Comments (4)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20061104064220492