Skip to content

Instantly share code, notes, and snippets.

View tgirardi's full-sized avatar

Tomás Girardi tgirardi

  • Turbomarket S.A.
  • Viña del Mar, Chile
View GitHub Profile
@benwaldie
benwaldie / 2013-03-17-TUAW_Waldie.applescript
Created March 18, 2013 01:34
TUAW > Triggering AppleScripts from Calendar Alerts in Mountain Lion
-- 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