0

I have copied a workflow to create a new file from within the finder, saved in ~/Library/Services/. It runs fine from Automator and appears in the Finder > Services menu, but there's no "services" menu when clicking in a blank area within a folder.

I'd expect to right-click on a blank space in a folder (or the desktop) and use the contextual menu and activate it.

The main issue is that the script runs fine from within Automator, but not from the Finder:

The action “Run AppleScript” encountered an error: “Not authorised to send Apple events to System Events.”

Has anyone else had this issues with a working script?

4
  • NOTE: for now I've used "New File Menu Free" from the App store – Dave Everitt Apr 28 at 15:01
  • 1
    In macOS Mojave after creating the Automator Service/Quick Action based on the link in your question and adding the keyboard shortcut of ⇧⌥⌘F in System Preferences > Keyboard > Shortcuts > Services, I then had to respond to three Security & Privacy related dialog boxes when I first ran the Automator Service/Quick Action. I then had go to System Preferences > Security & Privacy > Privacy > Accessibility and check [√] Finder. – user3439894 Apr 28 at 15:40
  • 1
    The Automator Service/Quick Action then ran with either the keyboard shortcut or from the Services menu and created the text file, however there is one issue which I haven't troubleshot yet. When the file is created, it opens the edit field to rename the file but not the one it just created, another one next to it while in list view in Finder. – user3439894 Apr 28 at 15:40
  • I think you can add a .4s delay to prevent that selection issue. Thanks for testing: I had those warnings on the first attempt, but initially clicked the wrong option. On recreating the file and trying again, I wasn't offered the initial message again, so got stuck. – Dave Everitt Apr 29 at 16:08
1

In System Preference/Security/Privacy/Automation after unlock you have to select Finder/System Events.

Then may be in Accessibility you can select Finder if you got an error.

There are some explanations : https://support.apple.com/guide/mac-help/change-privacy-preferences-on-mac-mh32356/10.14/mac/10.14

2
  • I did go through that, but no joy. Thanks for the link anyway! – Dave Everitt Apr 29 at 16:11
  • @Dave Evetitt. It's don't work? – Jean_JD Apr 29 at 17:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .