Skip navigation

Version Comparison: Execute an AppleScript via Calendar

Comparing: Revision 5 » Revision 6


 
 
Color Key: Addition Deletion Change
Revision 5   By Pondini at 1 year, 8 months ago Revision 6   By Pondini at 1 year, 8 months ago

For some reason, Apple removed the ability to execute an Applesscript via an alert in Calendar on Mountain Lion.

 

But there's another way to do it, using Apple's Automator app.

 

(This was developed by user LinuxGeek3447 and is posted here with permission.) 

 

I use an AppleScript to provide an alarm clock function. Here's how I used Automator to allow execution of the script:

 

In Automator, create a Calendar Alarm:

 

Screen Shot 2012-07-31 at 12.19.00 PM.png

 

Select Utilities from the library pane, then select & drag Run AppleScript into the workflow area.

 

Copy/paste the desired AppleScript into the Run AppleScript box:

 

Screen Shot 2012-07-31 at 12.26.55 PM.png

 

Save the newly created Calendar Alarm.  You'll be prompted for a name.

 

When you do that, OSX will create an Automator calendar automatically (if you don't already have one), and place an Event in it for the current date, with the name you used, etc.  Double-click it to edit, then change/add the time, repeat instructions, etc., as necessary:

 

Screen Shot 2012-07-31 at 12.39.06 PM.png

 

If it doesn't, select Open FIle for the Alert,  click the second line under it and select Other to get a prompt to locate the Automator alarm you created above.

 

Again, credit to user LinuxGeek3447for figuring this out.


 


For some reason, Apple removed the ability to execute an Applesscript AppleScript via an alert in Calendar on Mountain Lion.

 

But there's another way to do it, using :

 

Screen Shot 2012-08-11 at 6.11.58 PM.png

 

 

There are two ways to do it on Mountain Lion:

 

 

 

1.  Save the AppleScript as an application:

 

Hold the Alt/Option key while selecting File in the AppleScript menubar.  Select Save As.  On that prompt, select Application for File Format:

 

Screen Shot 2012-08-11 at 6.20.25 PM.png

 

Then on the Calendar window, select the Open File option as in the sample above, then click the default of iCal below it to get a prompt where you can select the Application you saved above.

 

 

 

 

 

2.  Use Apple's Automator app.:

 

(This was developed by user LinuxGeek3447 and is posted here with permission.) 

 

I use an AppleScript to provide an alarm clock function. Here's how I used Automator to allow execution of the script:

 

In Automator, create a Calendar Alarm:

 

Screen Shot 2012-07-31 at 12.19.00 PM.png

 

Select Utilities from the library pane, then select & drag Run AppleScript into the workflow area.

 

Copy/paste the desired AppleScript into the Run AppleScript box:

 

Screen Shot 2012-07-31 at 12.26.55 PM.png

 

Save the newly created Calendar Alarm.  You'll be prompted for a name.

 

When you do that, OSX will create an Automator calendar automatically (if you don't already have one), and place an Event in it for the current date, with the name you used, etc.  Double-click it to edit, then change/add the time, repeat instructions, etc., as necessary:

 

Screen Shot 2012-07-31 at 12.39.06 PM.png

 

If it doesn't, select Open FIle for the Alert,  click the second line under it and select Other to get a prompt to locate the Automator alarm you created above.

 

Again, credit to user LinuxGeek3447for figuring this out.


 


This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.