Select iCal calendar with applescript

Discussion in 'Mac Programming' started by KPForMacRum, Jan 4, 2009.

  1. KPForMacRum macrumors newbie

    Joined:
    Sep 30, 2008
    #1
    I have three calendars in iCal (Home, Work, and Games). I want to know how can I activate iCal and select "Games" automatically via applescript. I know the following script activates iCal, but how can I select "Games" calendar automatically? I do NOT want any intervening GUI.

    tell application "iCal"
    activate
    end tell

    Any help will be greatly appreciated. By the way, I tried to record the script to do this in AppleScript Studio, but it will not record anything!

    Thank you,
    Chris
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    It doesn't look like there is an AppleScript command to do that.
     
  3. KPForMacRum thread starter macrumors newbie

    Joined:
    Sep 30, 2008
    #3
    Select iCal calendar with applescript

    Thank you Kainjow.
     

Share This Page