Jump to content

Workflow scripts fail - no permission


Recommended Posts

All my Workflow scripts are failing in the newly installed Alfred 4.

 

--

[21:38:39.032] Logging Started...

[21:38:59.353] Set Dark Desktop[Keyword] Processing complete

[21:38:59.353] Set Dark Desktop[Keyword] Passing output '' to Run NSAppleScript

[21:38:59.367] ERROR: Set Dark Desktop[Run NSAppleScript] {

    NSAppleScriptErrorAppName = Finder;

    NSAppleScriptErrorBriefMessage = "Not authorized to send Apple events to Finder.";

    NSAppleScriptErrorMessage = "Not authorized to send Apple events to Finder.";

    NSAppleScriptErrorNumber = "-1743";

    NSAppleScriptErrorRange = "NSRange: {54, 15}";

}

--

 

In the General tab, I open the "Request Permissions…" dialog and then "Open macOS Automation preferences" – it just opens that settings window, but then what? I don't see Alfred in the list? What am I', supposed to do now?

 

I can see Alfred 4 in the "Accessibility" section.

 

 2019-06-16 at 21.47.41.png

Link to comment

@Jenkins macOS should automatically request permissions for the Automation tab where necessary. If this isn't happening, there could be an underlying issue preventing this from happening.

 

When was the last time macOS asked for permission such as this? Was it recent?

 

You could try resetting the Automation access tab.

https://developer.apple.com/library/archive/qa/qa1906/_index.html

 

In terminal, you can use the following command to only reset Automation instead of all:

tccutil reset Automation

 

Cheers,

Andrew

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...