adamhorner Posted September 7, 2014 Share Posted September 7, 2014 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. Link to comment Share on other sites More sharing options...
Andrew Posted September 8, 2014 Share Posted September 8, 2014 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 More sharing options...
rice.shawn Posted September 12, 2014 Share Posted September 12, 2014 @adamhorner: this doesn't address the strange AS bug, but it looks like you're replicating this workflow: https://github.com/untoldwind/alfred2-layout. If you use the experimental version, then it works with Yosemite. It's written in Perl rather than AS, so it steps around that bug. Link to comment Share on other sites More sharing options...
adamhorner Posted January 28, 2015 Author Share Posted January 28, 2015 I've finally fixed the bug, you can see the commentary on my blog post: http://techpragmatist.co.uk/tp/links/2015/01/28/2114 Also Shawn, the layout plugin doesn't handle multiple monitors, something that is crucial for me, I use up to 4 at a time. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now