Previous 1 2 3 Next 37 Replies Latest reply: Apr 16, 2013 11:44 PM by kelhak1
smkd Level 1 Level 1

Hi there fellow early adopters of ML (i'm talking to those who wait the final release and never installed ML DP).

 

I were using tons of AppleScript with Calendar ability to run script. Is there any way to recover this ability in Mountain Lion ?

 

Thanks,


MacBook Pro, OS X Mountain Lion
Solved by LinuxGeek3447 on Jul 26, 2012 7:03 PM Solved

I got the answer, and it was simpler than I thought. Here's a solution that works for me:

 

In Automator, create a Calendar Alarm

 

          Select Utilities from the library pane

 

          Select & drag Run AppleScript into the workflow area

 

          Copy/paste the AppleScript into the Run AppleScript box

 

          Save the newly created Calendar Alarm

 

Open Calendar.app, create a new event

 

          Select the Automator calendar as your reference calendar

 

          Select Open File for the alert, and select the file you created in Automator. By default, iCal is           the file that comes up when you select Open File. Change that to the name of the Automator           app you created. Select Other if the file name isn't shown.

 

I've attached screen shots, just in case the instructions are a bit vague. Let me know if this works for you.

 

1.png3 .png2.png

Reply by Pondini on Jul 26, 2012 4:21 PM Helpful

No.

 

Apple's only explanation during beta testing was that it had to do with security and the "sandboxing" of applications (to prevent malware, etc).

 

Feel free to post objections here:  http://www.apple.com/feedback/macosx.html

All replies

  • LinuxGeek3447 Level 1 Level 1

    I ran into the same problem with an AppleScript I set up for use as an alarm clock. The script editor opens, and the script never executes. I ran a Google search, and it seems that a lot of other people are reporting the same issue....but nobody has posted a solution yet (at least I haven't found any solutions posted). I hope the folks in Cupertino are looking into this, but I don't expect it to be high on their priority list. It appears that some folks are having even worse issues with the upgrade to ML.

  • Pondini Level 8 Level 8

    No.

     

    Apple's only explanation during beta testing was that it had to do with security and the "sandboxing" of applications (to prevent malware, etc).

     

    Feel free to post objections here:  http://www.apple.com/feedback/macosx.html

  • smkd Level 1 Level 1

    I'll never understand how it become possible to plan to remove a feature...

     

    We should be able to bypass this security measure if we want. For more security, they could just let us add "exception rule" to our beloved script.

  • Pondini Level 8 Level 8

    Yeah, I agree. I haven't gotten around to finding an alternative yet, just set up a message reminding me to run it manually.

     

    And, it's always possible they'll put it back if they can figure out how to make it reasonably secure.

  • LinuxGeek3447 Level 1 Level 1

    I'm working on an Automator that will execute the script. Actually, I'm setting up two automators. The first one allows you to input your reminder, with the option to execute an automator. The second automator looks for entries on the Automator calendar, then executes the script. My script displays a pop-up message that must be acknowledged to shut off the alarm, which consists of a system sound played 3 times, and a voice message.

     

    Once I have the bugs worked out, I will put more info up.

  • Pondini Level 8 Level 8

     

     

    Keep us posted.

  • LinuxGeek3447 Level 1 Level 1

    I got the answer, and it was simpler than I thought. Here's a solution that works for me:

     

    In Automator, create a Calendar Alarm

     

              Select Utilities from the library pane

     

              Select & drag Run AppleScript into the workflow area

     

              Copy/paste the AppleScript into the Run AppleScript box

     

              Save the newly created Calendar Alarm

     

    Open Calendar.app, create a new event

     

              Select the Automator calendar as your reference calendar

     

              Select Open File for the alert, and select the file you created in Automator. By default, iCal is           the file that comes up when you select Open File. Change that to the name of the Automator           app you created. Select Other if the file name isn't shown.

     

    I've attached screen shots, just in case the instructions are a bit vague. Let me know if this works for you.

     

    1.png3 .png2.png

  • Pondini Level 8 Level 8

    Looks good.

     

    But I'm a bit burned out, so won't mess with this until tomorrow.

     

    Thanks!

  • RobertJ Level 4 Level 4

    Having to "acknowledge" is a non starter. I have eight scripts that run at various times including 5:00 AM. I can't acknowledge any of them. I just want them to run.

     

    Looking for some other solution not involving Calendar.

  • RobertJ Level 4 Level 4

    I just tested LinuxGeek3447's solution and it seems to work with no need to "ackknowledge". Will need a bit more testing but this could save me a world of work.

  • RobertJ Level 4 Level 4

    After further testing this is a WINNER

     

    Thank you LinuxGeek3447

  • RobertJ Level 4 Level 4

    After converting all my scripts this is even easier than using scripts. Only change I made since mine are all repeating events is as shown in this screen shot

     

    Screen Shot 2012-07-27 at 10.35.16 AM.png

  • smkd Level 1 Level 1

    Awesome solution.

    You made my night LinuxGeek3447

     

    + Notification of the execution of the script is a killer use of notification center ;D.

  • andy510 Level 1 Level 1

    there is similar issue having setting a URL of a cgi to run the script in the server.  URL is no lger supported.  May be a similar solution is possible with automator.

Previous 1 2 3 Next