This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- This property controls the calendar on which the event is added | |
set theCalendarName to "AppleScripts" | |
-- Prompt the user to select a script to attach to an event. This should be an application. | |
set theScriptToTrigger to choose file with prompt "Please select a saved AppleScript application to attach to an event:" of type "app" | |
-- Get the script's name | |
set theScriptToTriggerName to displayed name of (info for theScriptToTrigger) | |
-- Check for the existence of the target calendar, creating it if it doesn't already exist |