smkd

Q: (re)Enable iCalendar ability to execute AppleScript

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

Posted on Jul 26, 2012 2:36 AM

Close

Q: (re)Enable iCalendar ability to execute AppleScript

  • All replies
  • Helpful answers

Page 1 of 3 last Next
  • by LinuxGeek3447,

    LinuxGeek3447 LinuxGeek3447 Jul 26, 2012 3:26 PM in response to smkd
    Level 1 (20 points)
    Jul 26, 2012 3:26 PM in response to smkd

    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.

  • by Pondini,Helpful

    Pondini Pondini Jul 26, 2012 4:21 PM in response to smkd
    Level 8 (38,747 points)
    Jul 26, 2012 4:21 PM in response to smkd

    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

  • by smkd,

    smkd smkd Jul 26, 2012 5:11 PM in response to Pondini
    Level 1 (0 points)
    Jul 26, 2012 5:11 PM in response to Pondini

    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.

  • by Pondini,

    Pondini Pondini Jul 26, 2012 5:22 PM in response to smkd
    Level 8 (38,747 points)
    Jul 26, 2012 5:22 PM in response to smkd

    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.

  • by LinuxGeek3447,

    LinuxGeek3447 LinuxGeek3447 Jul 26, 2012 5:33 PM in response to Pondini
    Level 1 (20 points)
    Jul 26, 2012 5:33 PM in response to Pondini

    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.

  • by Pondini,

    Pondini Pondini Jul 26, 2012 5:37 PM in response to LinuxGeek3447
    Level 8 (38,747 points)
    Jul 26, 2012 5:37 PM in response to LinuxGeek3447

     

     

    Keep us posted.

  • by LinuxGeek3447,Solvedanswer

    LinuxGeek3447 LinuxGeek3447 Jul 26, 2012 7:03 PM in response to Pondini
    Level 1 (20 points)
    Jul 26, 2012 7:03 PM in response to Pondini

    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

  • by Pondini,

    Pondini Pondini Jul 26, 2012 7:08 PM in response to LinuxGeek3447
    Level 8 (38,747 points)
    Jul 26, 2012 7:08 PM in response to LinuxGeek3447

    Looks good.

     

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

     

    Thanks!

  • by RobertJ,

    RobertJ RobertJ Jul 27, 2012 7:19 AM in response to Pondini
    Level 4 (1,203 points)
    Desktops
    Jul 27, 2012 7:19 AM in response to Pondini

    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.

  • by RobertJ,

    RobertJ RobertJ Jul 27, 2012 7:42 AM in response to RobertJ
    Level 4 (1,203 points)
    Desktops
    Jul 27, 2012 7:42 AM in response to RobertJ

    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.

  • by RobertJ,

    RobertJ RobertJ Jul 27, 2012 8:04 AM in response to RobertJ
    Level 4 (1,203 points)
    Desktops
    Jul 27, 2012 8:04 AM in response to RobertJ

    After further testing this is a WINNER

     

    Thank you LinuxGeek3447

  • by RobertJ,

    RobertJ RobertJ Jul 27, 2012 8:37 AM in response to RobertJ
    Level 4 (1,203 points)
    Desktops
    Jul 27, 2012 8:37 AM in response to RobertJ

    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

  • by smkd,

    smkd smkd Jul 27, 2012 5:32 PM in response to RobertJ
    Level 1 (0 points)
    Jul 27, 2012 5:32 PM in response to RobertJ

    Awesome solution.

    You made my night LinuxGeek3447

     

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

  • by andy510,

    andy510 andy510 Jul 28, 2012 10:02 AM in response to smkd
    Level 1 (0 points)
    Jul 28, 2012 10:02 AM in response to smkd

    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.

Page 1 of 3 last Next