Jump to content

Applescripts in workflows on Yosemite: Error -10810


adamhorner

Recommended Posts

OSX: 10.10 Yosemite, public beta (build 14A329r[/size])
Alfred: 2.4 (build 279)
Workflow: Window Snap (https://bitbucket.org/adamhorner/macwindowmgmt)
 
Error: "error type -10810" running the AppleScripts that are part of the workflow (I think this means permission denied from the accessibility framework, but not totally sure).
 
The same error happens when attempting to run the script from the command line - from the directory of the workflow, call `./printWindowXYWH.scpt`, it results in the following:

./printWindowXYWH.scpt:159:169: execution error: An error of type -10810 has occurred. (-10810)

 
I have previously added both Alfred and Terminal to the permissions for Accessibility in System Preferences, so I doubt that this is a problem with Alfred, most likely a problem with the AppleScript permissions system.
 
The workaround which variously works is to open the same script in Apple's "Script Editor" application and run it from there. Once that works, the workflow works fine for a while (as does the script run from Terminal), however after some sort of timeout (not sure how long, a few minutes at most though), the system reverts to the previous behaviour of giving the -10810 error.
 
In short, I doubt that this is an error in Alfred, but right now it renders one of my most used workflows next-to-useless in Yosemite, and since I am not an Apple developer, I won't carry any weight with Apple (I am a java/web developer though, so happy to help you debug this further if it is useful).
 
I've attached a couple of screenshots in the hope that they help.

 

alfredWorkflowError.png?dl=1
accessibilitySysPrefs.png?dl=1
Link to comment
Share on other sites

 

OSX: 10.10 Yosemite, public beta (build 14A329r[/size])

Alfred: 2.4 (build 279)

Workflow: Window Snap (https://bitbucket.org/adamhorner/macwindowmgmt)

 

Error: "error type -10810" running the AppleScripts that are part of the workflow (I think this means permission denied from the accessibility framework, but not totally sure).

 

The same error happens when attempting to run the script from the command line - from the directory of the workflow, call `./printWindowXYWH.scpt`, it results in the following:

./printWindowXYWH.scpt:159:169: execution error: An error of type -10810 has occurred. (-10810)

 

This is a bit of a tricky one and at this point, I'm not sure if there is anything I can do in Alfred to address this. Have you spoken to the workflow developer, are they aware?

 

I'm going to wait until Yosemite is released to see if there is any behavioural changes.

 

Cheers,

Andrew

Link to comment
Share on other sites

  • 4 months later...

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...