RSS - Latest posts Display Meetings From Entourage Using GeekTool

Home » 2008 » 10 » Display Meetings From Entourage Using GeekTool

I’ve been a recent convert to GeekTool, a Mac application that can be used to display the output of shell commands directly on the desktop. After going through the usual cool little GeekTool ideas of displaying process lists, system uptime, and the currently playing song from iTunes etc. I decided to do something that was genuinely useful for my day-to-day use ;-)

At work we use MS Entourage for our email and calendaring. I thought it might be handy to be able to see at a glance what meetings I had scheduled without needing to switch away from my inbox. As a result I turned my hand to a little AppleScript to pull a list of forthcoming meetings from Entourage,

set currentDate to current date
if application "Microsoft Entourage" is running then
    tell application "Microsoft Entourage"
        set selectedEvents to every event where its start time is greater than currentDate
        set eventString to ""
        repeat with currentEvent in selectedEvents
            set eventTitle to subject of currentEvent
            set eventDate to start time of currentEvent
            set eventString to eventString & eventTitle & " - " & eventDate & "\n"
        end repeat
        if eventString is not equal to "" then
            set eventString to "Upcoming...\n" & eventString
        else
            set eventString to "Nothing upcoming...\n"
        end if
        eventString
    end tell
end if

Save this somewhere as meetings.scpt, then the GeekTool PrefPane add a new entry and in the command tab select the shell option and enter osascript path/to/meetings.scpt in the command field.

Done

 

You can leave a response, or trackback from your own site.

Add Comment

  1. David says:
    30th July 2009
    at 8:11 pm

    This is great, but I just get a dump of all of my calendar entries with no carriage returns.

  2. David says:
    30th July 2009
    at 8:15 pm

    Figured out that n should be \n. The other 2 questions:
    1. How to show non-private meetings?
    2. How to limit the list to 30 days out?

  3. Andrew says:
    30th July 2009
    at 9:45 pm

    Hi David,

    Ah. Sorry, I didn’t notice that the \’s had been swallowed up.

    I’ll see if I can code up a solution for your other 2 questions when I’m back on a machine with Entourage tomorrow.