This post originated from an RSS feed registered with Ruby Buzz
by James Britt.
Original Post: Outlook Appointments with Ruby
Feed Title: James Britt: Ruby Development
Feed URL: http://feeds.feedburner.com/JamesBritt-Home
Feed Description: James Britt: Playing with better toys
By the standards of some 1337ists, I am a child of a lesser god: I confess to using Windows. If you share this disdain, then avert your eyes.
However, if you use Outlook, and care to see how to use Ruby to add appointments to the Outlook calender, then read on.
I've gradually been migrating off of Microsoft products, but as a calender app Outlook 2000 serves me better than the alternatives I've examined. (I expect that in some possible future I may move to Sunbird, but it isn't quite there yet for me.)
I mostly use Outlook to remind me to do basic stuff, such as move the trash bin to the curb for pick-up, or set the VCR to tape House. (Analog rules!) Adding items can be tedious, though, what with assorted selecting and clicking and saving. What I really wanted was a way to add stuff from the command line (which I hear is how most Mac users do things, actually).
After a bit of poking around I found assorted example of scripting Outlook via the COM interface. I swiped some moves and came up with this class: