[ update: Georg Klein's rolled my changes into Mail2iCal version 1.3, along with some extra stuff for parsing URLs and working out the attendee list. You can get it here. ]
I found Mail2iCal, which sounded like exactly what I need to send all those MS Outlook / Exchange meeting requests into iCal. Unfortunately it doesn't do much parsing of the message body, which tells you all the fun stuff like the start/end date, where it is, and what's going on. After 2 years of using OS X, I figured maybe now was the time to start learning AppleScript, and work out how make it do what I wanted.
Surprisingly(?), I worked it out. Assuming you've got an e-mail with a message body looking something like this:
When: Monday, 11 July 2005 12:00-12:30 (GMT+10:00) Canberra, Melbourne, Sydney. Where: One of the Meeting Rooms *~*~*~*~*~*~*~*~*~* We need to have a meeting about something or other.
it'll grab:
It'll also hack off "Updated: " from the e-mail Subject, which indicates that it's a change to an existing meeting request. Maybe it's worth searching for a calendar event with the same subject and prompting to remove it before adding the new, changed event details. I'll leave that for some other time (or some other person) to do, though.
I've mailed my changes to the original developer Georg Klein, but in the meantime you can get my modified script right here, called ExchangeMeetingRequestToIcal.scpt. My code changes are pretty ugly and I've only tested it on half a dozen messages, so be careful it doesn't suddenly reach out of the screen and strangle you. Or something.
You'll probably find it most useful to invoke via a keystroke or two, with Mail Act-On.
Have fun!
18:21 geek · comments (0)
Comments have been closed for this post. If you've got something to say, please contact me by other means. Thanks!
Archives
...the last 3 months :
Recent Posts
Posts Recently Commented Upon
Other Recent Listening
Hair
sorta dark red with one blond bit.Wasting Time On
Links
Help Save The World
I may not (so far) run the kind of blog that posts social conscience linkage - other friends seem to have it covered better than I could manage (yes, I'm aware that's no excuse), but this doesn't mean that I don't care about the State of ThingsTM.
i donate to :
but there's other things worth worrying about too, like :
Looking For Something ?
Feed ?
yes indeed - a merged feed of my flickr photos, del.icio.us tags and posts here:
Licensing
This weblog is licensed under a Creative Commons License.