Dec 02
Set iChat status based on iCal event alarms
Cats: News|
I wrote a small script that, using iCalBuddy, will set your iChat status based on the name of whichever iCal event calls the script as an alarm. Here's how it works.
First, save this as a script in AppleScript Editor. I have saved it as iCal Event to iChat:
Then, in iCal, and create a new event (Planning Meeting or whatever) on a calendar. Set the Alarm Type to run your new AppleScript (iCal...
First, save this as a script in AppleScript Editor. I have saved it as iCal Event to iChat:
set theEventName to (do shell script "/usr/local/bin/icalbuddy -ic \"Some\ Calendar\" -eep \"*\" -nc -b \"\" -n -li 1 eventsToday")
if (theEventName is not "") then
tell application "iChat"
set status to away
set status message to "I am attending " & theEventName & "."
end tell
end ifLeave a Reply
You must be logged in to post a comment.
Subscribe
