Documentation Archive


Calendar Scripting Guide

About Calendar Scripting

In OS X, scripting allows you to automate complex, repetitive, and time-consuming tasks by writing scripts that control apps, processes, and the operating system.

image: ../Art/icon_calendar_app_2x.png

The OS X Calendar app has scripting support for interacting with and manipulating calendars and events using AppleScript or JavaScript. Through scripting, you can create calendars and events, subscribe to remote calendars, add attendees to events, set alarms, locate and display specific events, and more. These tasks can be performed on their own, or they can be combined with tasks in other apps to construct powerful workflows that save time and increase productivity.

Accessing Scripting Terminology for Calendar

An app’s scripting terminology is described in a scripting dictionary, which describes the commands, classes, and properties the app supports. Figure 1-1 shows terminology for the application class in the Calendar scripting dictionary.

Figure 1-1The Calendar scripting dictionary image: ../Art/calendar_scripting_dictionary_2x.png
To view the Calendar scripting dictionary
  1. Launch Script Editor, found in /Applications/Utilities/.

  2. Choose File > Open Dictionary.

  3. Select Calendar, and click Choose.

For detailed information about viewing and navigating the scripting terminology of apps, see Access Scripting Terminology in Mac Automation Scripting Guide.