macOS Mojave, Automator “Not authorized to send Apple events to System Events.”












21















After I updated to Mojave, I can no longer use the automator service I've previously been using with the alert below.
enter image description here




  • In Security & Privacy, I already checked AppleScript Editor.


Do you see any problem with my code or is this the problem of the newest macOS?



Script



on run {input, parameters}
set pathList to {}
repeat with itemNum from 1 to count of input
tell application "System Events"
copy POSIX path of (container of (item itemNum of input)) to end of pathList
end tell
end repeat
return pathList
end run


enter image description here



enter image description here










share|improve this question





























    21















    After I updated to Mojave, I can no longer use the automator service I've previously been using with the alert below.
    enter image description here




    • In Security & Privacy, I already checked AppleScript Editor.


    Do you see any problem with my code or is this the problem of the newest macOS?



    Script



    on run {input, parameters}
    set pathList to {}
    repeat with itemNum from 1 to count of input
    tell application "System Events"
    copy POSIX path of (container of (item itemNum of input)) to end of pathList
    end tell
    end repeat
    return pathList
    end run


    enter image description here



    enter image description here










    share|improve this question



























      21












      21








      21


      4






      After I updated to Mojave, I can no longer use the automator service I've previously been using with the alert below.
      enter image description here




      • In Security & Privacy, I already checked AppleScript Editor.


      Do you see any problem with my code or is this the problem of the newest macOS?



      Script



      on run {input, parameters}
      set pathList to {}
      repeat with itemNum from 1 to count of input
      tell application "System Events"
      copy POSIX path of (container of (item itemNum of input)) to end of pathList
      end tell
      end repeat
      return pathList
      end run


      enter image description here



      enter image description here










      share|improve this question
















      After I updated to Mojave, I can no longer use the automator service I've previously been using with the alert below.
      enter image description here




      • In Security & Privacy, I already checked AppleScript Editor.


      Do you see any problem with my code or is this the problem of the newest macOS?



      Script



      on run {input, parameters}
      set pathList to {}
      repeat with itemNum from 1 to count of input
      tell application "System Events"
      copy POSIX path of (container of (item itemNum of input)) to end of pathList
      end tell
      end repeat
      return pathList
      end run


      enter image description here



      enter image description here







      automator macos-mojave






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 22 at 7:33







      Travelholics

















      asked Jul 12 '18 at 6:55









      TravelholicsTravelholics

      168118




      168118
























          7 Answers
          7






          active

          oldest

          votes


















          15














          This is definitely a part of Mojave's new security framework. In terminal try



          osascript -e 'tell application "Finder"' -e 'set _b to bounds of window of desktop' -e 'end tell'


          and you may receive:



          36:42: execution error: Not authorized to send Apple events to Finder. (-1743)


          What is supposed to happen on the first execution is the Finder opens a dialog box informing you that terminal is requesting permission to send events to the Finder. If you allow it, then terminal will get added to the Automation page in System Preferences > Security & Privacy > Automation:



          enter image description here



          There's two issues that I see at the moment:




          • the implementation of requesting permission for the scripting action appears to be bugged; I've run other scripts that request permission to send events to Safari and the Finder doesn't prompt for permission, it just returns an error.

          • streamlined automation requires some type of mechanism to have the permissions granted a priori; an example would be utilizing AppleScript with Ansible and being unable to preload grants


          Others have written up more extensive information about this:




          • https://www.felix-schwarz.org/blog/2018/06/apple-event-sandboxing-in-macos-mojave

          • https://forums.developer.apple.com/thread/106949


          Hopefully this gets worked out before Mojave ships as it seriously impacts automation capabilities on macOS.






          share|improve this answer
























          • Thanks, Joe. I can see the problem I have more clearly.

            – Travelholics
            Aug 16 '18 at 2:44











          • Basic testing leads me to believe that the expected functionality of being prompted for permission to allow AppleScript events is working in 10.14 Beta 8 (18A371a). That still doesn't answer the question as to whether or not AppleScript applications can be preauthorized for automation purposes.

            – Joe
            Aug 22 '18 at 19:28



















          7














          I had a similar error running AppleScript .app applications. I received the following error:



          Not authorized to send Apple events to Finder. (-1743)


          A workaround is to re-export the Application from the .scpt or .applescript source code. This generates a new .app application, which in my case ran successfully. The initial launch required approval (as well as some subsequent launches), and the application was added as an entry under Settings -> Security & Privacy -> Privacy -> Automation.






          share|improve this answer































            6














            Here is what I did that resolved the issue for me. I went to System Preferences > Security & Privacy > Accessibility (Options on left hand side) > (Enter system password) > Click Automator (or your app you want to enable) and TADA it works.






            share|improve this answer
























            • This works perfect to me.

              – neo
              Oct 8 '18 at 10:09













            • This works, but with a little difference: System Preferences > Security & Privacy> Automation > checkmark 'System Events' under the app you want to enable > Enter system password

              – Ali Nem
              Dec 10 '18 at 22:55





















            5














            UPDATE: Updating to the latest Public Beta (as of 4 August 2018) fixed the issue for me. Prior to this, the issue did persist in all public betas of Mojave.





            Original reply:



            Just wanted to let you know that both myself and another friend are experiencing this exact same problem, with different Automator workflows that use Applescript (different than yours). We have the problem occurring with both manual activation (Finder --> Services --> click item) and with keyboard shortcut activation.



            Even stranger, the workflow performs beautifully when testing inside Automator.



            I've filed a bug report through the Feedback Assistant, and suggest to anyone else who sees this that you do too! Squeaky wheel and all...



            Automator - Permissions error. "The action “Run AppleScript” encountered an error: “Not authorized to send Apple events to System Events.”"



            Automator workflow performing well inside Automator






            share|improve this answer


























            • Hmm... I understand that you might have had the same problem like mine because all of my services which made via automator don't work with the alert box. I guess I should wait and see..

              – Travelholics
              Jul 14 '18 at 4:28











            • +1 to this issue. I can run the script inside of the Script editor just fine, but as soon as I make it a quick action or an application and try to launch it fails.

              – Kush131
              Jul 24 '18 at 17:33






            • 2





              It seems it still doesn't have a luck on beta 5..

              – Travelholics
              Aug 2 '18 at 7:14






            • 1





              Beta 4 you could 'fix' by copy/pasting to a new script & re-saving. Beta 5 this no longer works & the error is back with a vengeance.

              – Tetsujin
              Aug 8 '18 at 8:13



















            1














            I faced same error opening gitk.




            Error in startup script: execution error: Not authorised to
            send Apple events to System Events. (-1743)






            SOLUTION



            Goto Settings -> Security & Privacy -> Privacy -> Automation -> Privacy tab and check the System Events checkbox.



            enter image description here






            share|improve this answer































              0














              I was trying to insert the current date into the Reminders app with a keystroke. Instead of using the recommended "Settings -> Security & Privacy -> Privacy -> Accessibility -> Automator", I had to add Reminders instead of Automator so that it would allow the keystroke command to be permitted. It is annoying that it only permits the action on the specific app but that seems to be the case.






              share|improve this answer































                0














                I was still having issues sending keystrokes a few months after Mojave was released. For me, weirdly the fix was to go System Preferences -> Security and Privacy -> Privacy Tab -> Unlock the Lock with your password -> Remove (with the minus button) Automator from the list of Apps in the Accessibility Row. Maybe there was something from running the betas that needed to get deleted before my scripts could send keystrokes again.



                Edit: After quitting System Preferences I was getting the alert error again. Re-adding Automator.app to the Accessibility row seems to have fixed this for now.






                share|improve this answer























                  Your Answer






                  StackExchange.ifUsing("editor", function () {
                  StackExchange.using("externalEditor", function () {
                  StackExchange.using("snippets", function () {
                  StackExchange.snippets.init();
                  });
                  });
                  }, "code-snippets");

                  StackExchange.ready(function() {
                  var channelOptions = {
                  tags: "".split(" "),
                  id: "1"
                  };
                  initTagRenderer("".split(" "), "".split(" "), channelOptions);

                  StackExchange.using("externalEditor", function() {
                  // Have to fire editor after snippets, if snippets enabled
                  if (StackExchange.settings.snippets.snippetsEnabled) {
                  StackExchange.using("snippets", function() {
                  createEditor();
                  });
                  }
                  else {
                  createEditor();
                  }
                  });

                  function createEditor() {
                  StackExchange.prepareEditor({
                  heartbeatType: 'answer',
                  autoActivateHeartbeat: false,
                  convertImagesToLinks: true,
                  noModals: true,
                  showLowRepImageUploadWarning: true,
                  reputationToPostImages: 10,
                  bindNavPrevention: true,
                  postfix: "",
                  imageUploader: {
                  brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                  contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                  allowUrls: true
                  },
                  onDemand: true,
                  discardSelector: ".discard-answer"
                  ,immediatelyShowMarkdownHelp:true
                  });


                  }
                  });














                  draft saved

                  draft discarded


















                  StackExchange.ready(
                  function () {
                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51299066%2fmacos-mojave-automator-not-authorized-to-send-apple-events-to-system-events%23new-answer', 'question_page');
                  }
                  );

                  Post as a guest















                  Required, but never shown

























                  7 Answers
                  7






                  active

                  oldest

                  votes








                  7 Answers
                  7






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes









                  15














                  This is definitely a part of Mojave's new security framework. In terminal try



                  osascript -e 'tell application "Finder"' -e 'set _b to bounds of window of desktop' -e 'end tell'


                  and you may receive:



                  36:42: execution error: Not authorized to send Apple events to Finder. (-1743)


                  What is supposed to happen on the first execution is the Finder opens a dialog box informing you that terminal is requesting permission to send events to the Finder. If you allow it, then terminal will get added to the Automation page in System Preferences > Security & Privacy > Automation:



                  enter image description here



                  There's two issues that I see at the moment:




                  • the implementation of requesting permission for the scripting action appears to be bugged; I've run other scripts that request permission to send events to Safari and the Finder doesn't prompt for permission, it just returns an error.

                  • streamlined automation requires some type of mechanism to have the permissions granted a priori; an example would be utilizing AppleScript with Ansible and being unable to preload grants


                  Others have written up more extensive information about this:




                  • https://www.felix-schwarz.org/blog/2018/06/apple-event-sandboxing-in-macos-mojave

                  • https://forums.developer.apple.com/thread/106949


                  Hopefully this gets worked out before Mojave ships as it seriously impacts automation capabilities on macOS.






                  share|improve this answer
























                  • Thanks, Joe. I can see the problem I have more clearly.

                    – Travelholics
                    Aug 16 '18 at 2:44











                  • Basic testing leads me to believe that the expected functionality of being prompted for permission to allow AppleScript events is working in 10.14 Beta 8 (18A371a). That still doesn't answer the question as to whether or not AppleScript applications can be preauthorized for automation purposes.

                    – Joe
                    Aug 22 '18 at 19:28
















                  15














                  This is definitely a part of Mojave's new security framework. In terminal try



                  osascript -e 'tell application "Finder"' -e 'set _b to bounds of window of desktop' -e 'end tell'


                  and you may receive:



                  36:42: execution error: Not authorized to send Apple events to Finder. (-1743)


                  What is supposed to happen on the first execution is the Finder opens a dialog box informing you that terminal is requesting permission to send events to the Finder. If you allow it, then terminal will get added to the Automation page in System Preferences > Security & Privacy > Automation:



                  enter image description here



                  There's two issues that I see at the moment:




                  • the implementation of requesting permission for the scripting action appears to be bugged; I've run other scripts that request permission to send events to Safari and the Finder doesn't prompt for permission, it just returns an error.

                  • streamlined automation requires some type of mechanism to have the permissions granted a priori; an example would be utilizing AppleScript with Ansible and being unable to preload grants


                  Others have written up more extensive information about this:




                  • https://www.felix-schwarz.org/blog/2018/06/apple-event-sandboxing-in-macos-mojave

                  • https://forums.developer.apple.com/thread/106949


                  Hopefully this gets worked out before Mojave ships as it seriously impacts automation capabilities on macOS.






                  share|improve this answer
























                  • Thanks, Joe. I can see the problem I have more clearly.

                    – Travelholics
                    Aug 16 '18 at 2:44











                  • Basic testing leads me to believe that the expected functionality of being prompted for permission to allow AppleScript events is working in 10.14 Beta 8 (18A371a). That still doesn't answer the question as to whether or not AppleScript applications can be preauthorized for automation purposes.

                    – Joe
                    Aug 22 '18 at 19:28














                  15












                  15








                  15







                  This is definitely a part of Mojave's new security framework. In terminal try



                  osascript -e 'tell application "Finder"' -e 'set _b to bounds of window of desktop' -e 'end tell'


                  and you may receive:



                  36:42: execution error: Not authorized to send Apple events to Finder. (-1743)


                  What is supposed to happen on the first execution is the Finder opens a dialog box informing you that terminal is requesting permission to send events to the Finder. If you allow it, then terminal will get added to the Automation page in System Preferences > Security & Privacy > Automation:



                  enter image description here



                  There's two issues that I see at the moment:




                  • the implementation of requesting permission for the scripting action appears to be bugged; I've run other scripts that request permission to send events to Safari and the Finder doesn't prompt for permission, it just returns an error.

                  • streamlined automation requires some type of mechanism to have the permissions granted a priori; an example would be utilizing AppleScript with Ansible and being unable to preload grants


                  Others have written up more extensive information about this:




                  • https://www.felix-schwarz.org/blog/2018/06/apple-event-sandboxing-in-macos-mojave

                  • https://forums.developer.apple.com/thread/106949


                  Hopefully this gets worked out before Mojave ships as it seriously impacts automation capabilities on macOS.






                  share|improve this answer













                  This is definitely a part of Mojave's new security framework. In terminal try



                  osascript -e 'tell application "Finder"' -e 'set _b to bounds of window of desktop' -e 'end tell'


                  and you may receive:



                  36:42: execution error: Not authorized to send Apple events to Finder. (-1743)


                  What is supposed to happen on the first execution is the Finder opens a dialog box informing you that terminal is requesting permission to send events to the Finder. If you allow it, then terminal will get added to the Automation page in System Preferences > Security & Privacy > Automation:



                  enter image description here



                  There's two issues that I see at the moment:




                  • the implementation of requesting permission for the scripting action appears to be bugged; I've run other scripts that request permission to send events to Safari and the Finder doesn't prompt for permission, it just returns an error.

                  • streamlined automation requires some type of mechanism to have the permissions granted a priori; an example would be utilizing AppleScript with Ansible and being unable to preload grants


                  Others have written up more extensive information about this:




                  • https://www.felix-schwarz.org/blog/2018/06/apple-event-sandboxing-in-macos-mojave

                  • https://forums.developer.apple.com/thread/106949


                  Hopefully this gets worked out before Mojave ships as it seriously impacts automation capabilities on macOS.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Aug 14 '18 at 17:44









                  JoeJoe

                  1,5001330




                  1,5001330













                  • Thanks, Joe. I can see the problem I have more clearly.

                    – Travelholics
                    Aug 16 '18 at 2:44











                  • Basic testing leads me to believe that the expected functionality of being prompted for permission to allow AppleScript events is working in 10.14 Beta 8 (18A371a). That still doesn't answer the question as to whether or not AppleScript applications can be preauthorized for automation purposes.

                    – Joe
                    Aug 22 '18 at 19:28



















                  • Thanks, Joe. I can see the problem I have more clearly.

                    – Travelholics
                    Aug 16 '18 at 2:44











                  • Basic testing leads me to believe that the expected functionality of being prompted for permission to allow AppleScript events is working in 10.14 Beta 8 (18A371a). That still doesn't answer the question as to whether or not AppleScript applications can be preauthorized for automation purposes.

                    – Joe
                    Aug 22 '18 at 19:28

















                  Thanks, Joe. I can see the problem I have more clearly.

                  – Travelholics
                  Aug 16 '18 at 2:44





                  Thanks, Joe. I can see the problem I have more clearly.

                  – Travelholics
                  Aug 16 '18 at 2:44













                  Basic testing leads me to believe that the expected functionality of being prompted for permission to allow AppleScript events is working in 10.14 Beta 8 (18A371a). That still doesn't answer the question as to whether or not AppleScript applications can be preauthorized for automation purposes.

                  – Joe
                  Aug 22 '18 at 19:28





                  Basic testing leads me to believe that the expected functionality of being prompted for permission to allow AppleScript events is working in 10.14 Beta 8 (18A371a). That still doesn't answer the question as to whether or not AppleScript applications can be preauthorized for automation purposes.

                  – Joe
                  Aug 22 '18 at 19:28













                  7














                  I had a similar error running AppleScript .app applications. I received the following error:



                  Not authorized to send Apple events to Finder. (-1743)


                  A workaround is to re-export the Application from the .scpt or .applescript source code. This generates a new .app application, which in my case ran successfully. The initial launch required approval (as well as some subsequent launches), and the application was added as an entry under Settings -> Security & Privacy -> Privacy -> Automation.






                  share|improve this answer




























                    7














                    I had a similar error running AppleScript .app applications. I received the following error:



                    Not authorized to send Apple events to Finder. (-1743)


                    A workaround is to re-export the Application from the .scpt or .applescript source code. This generates a new .app application, which in my case ran successfully. The initial launch required approval (as well as some subsequent launches), and the application was added as an entry under Settings -> Security & Privacy -> Privacy -> Automation.






                    share|improve this answer


























                      7












                      7








                      7







                      I had a similar error running AppleScript .app applications. I received the following error:



                      Not authorized to send Apple events to Finder. (-1743)


                      A workaround is to re-export the Application from the .scpt or .applescript source code. This generates a new .app application, which in my case ran successfully. The initial launch required approval (as well as some subsequent launches), and the application was added as an entry under Settings -> Security & Privacy -> Privacy -> Automation.






                      share|improve this answer













                      I had a similar error running AppleScript .app applications. I received the following error:



                      Not authorized to send Apple events to Finder. (-1743)


                      A workaround is to re-export the Application from the .scpt or .applescript source code. This generates a new .app application, which in my case ran successfully. The initial launch required approval (as well as some subsequent launches), and the application was added as an entry under Settings -> Security & Privacy -> Privacy -> Automation.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Sep 28 '18 at 0:21









                      Daniel S.Daniel S.

                      9631811




                      9631811























                          6














                          Here is what I did that resolved the issue for me. I went to System Preferences > Security & Privacy > Accessibility (Options on left hand side) > (Enter system password) > Click Automator (or your app you want to enable) and TADA it works.






                          share|improve this answer
























                          • This works perfect to me.

                            – neo
                            Oct 8 '18 at 10:09













                          • This works, but with a little difference: System Preferences > Security & Privacy> Automation > checkmark 'System Events' under the app you want to enable > Enter system password

                            – Ali Nem
                            Dec 10 '18 at 22:55


















                          6














                          Here is what I did that resolved the issue for me. I went to System Preferences > Security & Privacy > Accessibility (Options on left hand side) > (Enter system password) > Click Automator (or your app you want to enable) and TADA it works.






                          share|improve this answer
























                          • This works perfect to me.

                            – neo
                            Oct 8 '18 at 10:09













                          • This works, but with a little difference: System Preferences > Security & Privacy> Automation > checkmark 'System Events' under the app you want to enable > Enter system password

                            – Ali Nem
                            Dec 10 '18 at 22:55
















                          6












                          6








                          6







                          Here is what I did that resolved the issue for me. I went to System Preferences > Security & Privacy > Accessibility (Options on left hand side) > (Enter system password) > Click Automator (or your app you want to enable) and TADA it works.






                          share|improve this answer













                          Here is what I did that resolved the issue for me. I went to System Preferences > Security & Privacy > Accessibility (Options on left hand side) > (Enter system password) > Click Automator (or your app you want to enable) and TADA it works.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Oct 4 '18 at 16:54









                          lrosallrosal

                          6111




                          6111













                          • This works perfect to me.

                            – neo
                            Oct 8 '18 at 10:09













                          • This works, but with a little difference: System Preferences > Security & Privacy> Automation > checkmark 'System Events' under the app you want to enable > Enter system password

                            – Ali Nem
                            Dec 10 '18 at 22:55





















                          • This works perfect to me.

                            – neo
                            Oct 8 '18 at 10:09













                          • This works, but with a little difference: System Preferences > Security & Privacy> Automation > checkmark 'System Events' under the app you want to enable > Enter system password

                            – Ali Nem
                            Dec 10 '18 at 22:55



















                          This works perfect to me.

                          – neo
                          Oct 8 '18 at 10:09







                          This works perfect to me.

                          – neo
                          Oct 8 '18 at 10:09















                          This works, but with a little difference: System Preferences > Security & Privacy> Automation > checkmark 'System Events' under the app you want to enable > Enter system password

                          – Ali Nem
                          Dec 10 '18 at 22:55







                          This works, but with a little difference: System Preferences > Security & Privacy> Automation > checkmark 'System Events' under the app you want to enable > Enter system password

                          – Ali Nem
                          Dec 10 '18 at 22:55













                          5














                          UPDATE: Updating to the latest Public Beta (as of 4 August 2018) fixed the issue for me. Prior to this, the issue did persist in all public betas of Mojave.





                          Original reply:



                          Just wanted to let you know that both myself and another friend are experiencing this exact same problem, with different Automator workflows that use Applescript (different than yours). We have the problem occurring with both manual activation (Finder --> Services --> click item) and with keyboard shortcut activation.



                          Even stranger, the workflow performs beautifully when testing inside Automator.



                          I've filed a bug report through the Feedback Assistant, and suggest to anyone else who sees this that you do too! Squeaky wheel and all...



                          Automator - Permissions error. "The action “Run AppleScript” encountered an error: “Not authorized to send Apple events to System Events.”"



                          Automator workflow performing well inside Automator






                          share|improve this answer


























                          • Hmm... I understand that you might have had the same problem like mine because all of my services which made via automator don't work with the alert box. I guess I should wait and see..

                            – Travelholics
                            Jul 14 '18 at 4:28











                          • +1 to this issue. I can run the script inside of the Script editor just fine, but as soon as I make it a quick action or an application and try to launch it fails.

                            – Kush131
                            Jul 24 '18 at 17:33






                          • 2





                            It seems it still doesn't have a luck on beta 5..

                            – Travelholics
                            Aug 2 '18 at 7:14






                          • 1





                            Beta 4 you could 'fix' by copy/pasting to a new script & re-saving. Beta 5 this no longer works & the error is back with a vengeance.

                            – Tetsujin
                            Aug 8 '18 at 8:13
















                          5














                          UPDATE: Updating to the latest Public Beta (as of 4 August 2018) fixed the issue for me. Prior to this, the issue did persist in all public betas of Mojave.





                          Original reply:



                          Just wanted to let you know that both myself and another friend are experiencing this exact same problem, with different Automator workflows that use Applescript (different than yours). We have the problem occurring with both manual activation (Finder --> Services --> click item) and with keyboard shortcut activation.



                          Even stranger, the workflow performs beautifully when testing inside Automator.



                          I've filed a bug report through the Feedback Assistant, and suggest to anyone else who sees this that you do too! Squeaky wheel and all...



                          Automator - Permissions error. "The action “Run AppleScript” encountered an error: “Not authorized to send Apple events to System Events.”"



                          Automator workflow performing well inside Automator






                          share|improve this answer


























                          • Hmm... I understand that you might have had the same problem like mine because all of my services which made via automator don't work with the alert box. I guess I should wait and see..

                            – Travelholics
                            Jul 14 '18 at 4:28











                          • +1 to this issue. I can run the script inside of the Script editor just fine, but as soon as I make it a quick action or an application and try to launch it fails.

                            – Kush131
                            Jul 24 '18 at 17:33






                          • 2





                            It seems it still doesn't have a luck on beta 5..

                            – Travelholics
                            Aug 2 '18 at 7:14






                          • 1





                            Beta 4 you could 'fix' by copy/pasting to a new script & re-saving. Beta 5 this no longer works & the error is back with a vengeance.

                            – Tetsujin
                            Aug 8 '18 at 8:13














                          5












                          5








                          5







                          UPDATE: Updating to the latest Public Beta (as of 4 August 2018) fixed the issue for me. Prior to this, the issue did persist in all public betas of Mojave.





                          Original reply:



                          Just wanted to let you know that both myself and another friend are experiencing this exact same problem, with different Automator workflows that use Applescript (different than yours). We have the problem occurring with both manual activation (Finder --> Services --> click item) and with keyboard shortcut activation.



                          Even stranger, the workflow performs beautifully when testing inside Automator.



                          I've filed a bug report through the Feedback Assistant, and suggest to anyone else who sees this that you do too! Squeaky wheel and all...



                          Automator - Permissions error. "The action “Run AppleScript” encountered an error: “Not authorized to send Apple events to System Events.”"



                          Automator workflow performing well inside Automator






                          share|improve this answer















                          UPDATE: Updating to the latest Public Beta (as of 4 August 2018) fixed the issue for me. Prior to this, the issue did persist in all public betas of Mojave.





                          Original reply:



                          Just wanted to let you know that both myself and another friend are experiencing this exact same problem, with different Automator workflows that use Applescript (different than yours). We have the problem occurring with both manual activation (Finder --> Services --> click item) and with keyboard shortcut activation.



                          Even stranger, the workflow performs beautifully when testing inside Automator.



                          I've filed a bug report through the Feedback Assistant, and suggest to anyone else who sees this that you do too! Squeaky wheel and all...



                          Automator - Permissions error. "The action “Run AppleScript” encountered an error: “Not authorized to send Apple events to System Events.”"



                          Automator workflow performing well inside Automator







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Aug 5 '18 at 2:53

























                          answered Jul 13 '18 at 21:26









                          Mr. BubblesMr. Bubbles

                          514




                          514













                          • Hmm... I understand that you might have had the same problem like mine because all of my services which made via automator don't work with the alert box. I guess I should wait and see..

                            – Travelholics
                            Jul 14 '18 at 4:28











                          • +1 to this issue. I can run the script inside of the Script editor just fine, but as soon as I make it a quick action or an application and try to launch it fails.

                            – Kush131
                            Jul 24 '18 at 17:33






                          • 2





                            It seems it still doesn't have a luck on beta 5..

                            – Travelholics
                            Aug 2 '18 at 7:14






                          • 1





                            Beta 4 you could 'fix' by copy/pasting to a new script & re-saving. Beta 5 this no longer works & the error is back with a vengeance.

                            – Tetsujin
                            Aug 8 '18 at 8:13



















                          • Hmm... I understand that you might have had the same problem like mine because all of my services which made via automator don't work with the alert box. I guess I should wait and see..

                            – Travelholics
                            Jul 14 '18 at 4:28











                          • +1 to this issue. I can run the script inside of the Script editor just fine, but as soon as I make it a quick action or an application and try to launch it fails.

                            – Kush131
                            Jul 24 '18 at 17:33






                          • 2





                            It seems it still doesn't have a luck on beta 5..

                            – Travelholics
                            Aug 2 '18 at 7:14






                          • 1





                            Beta 4 you could 'fix' by copy/pasting to a new script & re-saving. Beta 5 this no longer works & the error is back with a vengeance.

                            – Tetsujin
                            Aug 8 '18 at 8:13

















                          Hmm... I understand that you might have had the same problem like mine because all of my services which made via automator don't work with the alert box. I guess I should wait and see..

                          – Travelholics
                          Jul 14 '18 at 4:28





                          Hmm... I understand that you might have had the same problem like mine because all of my services which made via automator don't work with the alert box. I guess I should wait and see..

                          – Travelholics
                          Jul 14 '18 at 4:28













                          +1 to this issue. I can run the script inside of the Script editor just fine, but as soon as I make it a quick action or an application and try to launch it fails.

                          – Kush131
                          Jul 24 '18 at 17:33





                          +1 to this issue. I can run the script inside of the Script editor just fine, but as soon as I make it a quick action or an application and try to launch it fails.

                          – Kush131
                          Jul 24 '18 at 17:33




                          2




                          2





                          It seems it still doesn't have a luck on beta 5..

                          – Travelholics
                          Aug 2 '18 at 7:14





                          It seems it still doesn't have a luck on beta 5..

                          – Travelholics
                          Aug 2 '18 at 7:14




                          1




                          1





                          Beta 4 you could 'fix' by copy/pasting to a new script & re-saving. Beta 5 this no longer works & the error is back with a vengeance.

                          – Tetsujin
                          Aug 8 '18 at 8:13





                          Beta 4 you could 'fix' by copy/pasting to a new script & re-saving. Beta 5 this no longer works & the error is back with a vengeance.

                          – Tetsujin
                          Aug 8 '18 at 8:13











                          1














                          I faced same error opening gitk.




                          Error in startup script: execution error: Not authorised to
                          send Apple events to System Events. (-1743)






                          SOLUTION



                          Goto Settings -> Security & Privacy -> Privacy -> Automation -> Privacy tab and check the System Events checkbox.



                          enter image description here






                          share|improve this answer




























                            1














                            I faced same error opening gitk.




                            Error in startup script: execution error: Not authorised to
                            send Apple events to System Events. (-1743)






                            SOLUTION



                            Goto Settings -> Security & Privacy -> Privacy -> Automation -> Privacy tab and check the System Events checkbox.



                            enter image description here






                            share|improve this answer


























                              1












                              1








                              1







                              I faced same error opening gitk.




                              Error in startup script: execution error: Not authorised to
                              send Apple events to System Events. (-1743)






                              SOLUTION



                              Goto Settings -> Security & Privacy -> Privacy -> Automation -> Privacy tab and check the System Events checkbox.



                              enter image description here






                              share|improve this answer













                              I faced same error opening gitk.




                              Error in startup script: execution error: Not authorised to
                              send Apple events to System Events. (-1743)






                              SOLUTION



                              Goto Settings -> Security & Privacy -> Privacy -> Automation -> Privacy tab and check the System Events checkbox.



                              enter image description here







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Nov 19 '18 at 18:22









                              AbdullahAbdullah

                              1,2711123




                              1,2711123























                                  0














                                  I was trying to insert the current date into the Reminders app with a keystroke. Instead of using the recommended "Settings -> Security & Privacy -> Privacy -> Accessibility -> Automator", I had to add Reminders instead of Automator so that it would allow the keystroke command to be permitted. It is annoying that it only permits the action on the specific app but that seems to be the case.






                                  share|improve this answer




























                                    0














                                    I was trying to insert the current date into the Reminders app with a keystroke. Instead of using the recommended "Settings -> Security & Privacy -> Privacy -> Accessibility -> Automator", I had to add Reminders instead of Automator so that it would allow the keystroke command to be permitted. It is annoying that it only permits the action on the specific app but that seems to be the case.






                                    share|improve this answer


























                                      0












                                      0








                                      0







                                      I was trying to insert the current date into the Reminders app with a keystroke. Instead of using the recommended "Settings -> Security & Privacy -> Privacy -> Accessibility -> Automator", I had to add Reminders instead of Automator so that it would allow the keystroke command to be permitted. It is annoying that it only permits the action on the specific app but that seems to be the case.






                                      share|improve this answer













                                      I was trying to insert the current date into the Reminders app with a keystroke. Instead of using the recommended "Settings -> Security & Privacy -> Privacy -> Accessibility -> Automator", I had to add Reminders instead of Automator so that it would allow the keystroke command to be permitted. It is annoying that it only permits the action on the specific app but that seems to be the case.







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Jan 15 at 18:01









                                      Dennis HappDennis Happ

                                      1




                                      1























                                          0














                                          I was still having issues sending keystrokes a few months after Mojave was released. For me, weirdly the fix was to go System Preferences -> Security and Privacy -> Privacy Tab -> Unlock the Lock with your password -> Remove (with the minus button) Automator from the list of Apps in the Accessibility Row. Maybe there was something from running the betas that needed to get deleted before my scripts could send keystrokes again.



                                          Edit: After quitting System Preferences I was getting the alert error again. Re-adding Automator.app to the Accessibility row seems to have fixed this for now.






                                          share|improve this answer




























                                            0














                                            I was still having issues sending keystrokes a few months after Mojave was released. For me, weirdly the fix was to go System Preferences -> Security and Privacy -> Privacy Tab -> Unlock the Lock with your password -> Remove (with the minus button) Automator from the list of Apps in the Accessibility Row. Maybe there was something from running the betas that needed to get deleted before my scripts could send keystrokes again.



                                            Edit: After quitting System Preferences I was getting the alert error again. Re-adding Automator.app to the Accessibility row seems to have fixed this for now.






                                            share|improve this answer


























                                              0












                                              0








                                              0







                                              I was still having issues sending keystrokes a few months after Mojave was released. For me, weirdly the fix was to go System Preferences -> Security and Privacy -> Privacy Tab -> Unlock the Lock with your password -> Remove (with the minus button) Automator from the list of Apps in the Accessibility Row. Maybe there was something from running the betas that needed to get deleted before my scripts could send keystrokes again.



                                              Edit: After quitting System Preferences I was getting the alert error again. Re-adding Automator.app to the Accessibility row seems to have fixed this for now.






                                              share|improve this answer













                                              I was still having issues sending keystrokes a few months after Mojave was released. For me, weirdly the fix was to go System Preferences -> Security and Privacy -> Privacy Tab -> Unlock the Lock with your password -> Remove (with the minus button) Automator from the list of Apps in the Accessibility Row. Maybe there was something from running the betas that needed to get deleted before my scripts could send keystrokes again.



                                              Edit: After quitting System Preferences I was getting the alert error again. Re-adding Automator.app to the Accessibility row seems to have fixed this for now.







                                              share|improve this answer












                                              share|improve this answer



                                              share|improve this answer










                                              answered Jan 18 at 21:23









                                              nteissnteiss

                                              339211




                                              339211






























                                                  draft saved

                                                  draft discarded




















































                                                  Thanks for contributing an answer to Stack Overflow!


                                                  • Please be sure to answer the question. Provide details and share your research!

                                                  But avoid



                                                  • Asking for help, clarification, or responding to other answers.

                                                  • Making statements based on opinion; back them up with references or personal experience.


                                                  To learn more, see our tips on writing great answers.




                                                  draft saved


                                                  draft discarded














                                                  StackExchange.ready(
                                                  function () {
                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51299066%2fmacos-mojave-automator-not-authorized-to-send-apple-events-to-system-events%23new-answer', 'question_page');
                                                  }
                                                  );

                                                  Post as a guest















                                                  Required, but never shown





















































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown

































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown







                                                  Popular posts from this blog

                                                  How to change which sound is reproduced for terminal bell?

                                                  Can I use Tabulator js library in my java Spring + Thymeleaf project?

                                                  Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents