Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

applescript error #5

Open
mgroth0 opened this issue Mar 5, 2017 · 11 comments
Open

applescript error #5

mgroth0 opened this issue Mar 5, 2017 · 11 comments

Comments

@mgroth0
Copy link

mgroth0 commented Mar 5, 2017

Every time I run I get an error like this:

[2017-03-05 14:56:16][ERROR: action.applescript] {
NSAppleScriptErrorBriefMessage = "Can\U2019t set backup of {""} to some object.";
NSAppleScriptErrorMessage = "Can\U2019t set backup of {""} to some object.";
NSAppleScriptErrorNumber = "-10006";
NSAppleScriptErrorRange = "NSRange: {532, 48}";
}

@mandrigin
Copy link
Owner

What if you open the package in Terminal and enter ./EnumWindows --search="Finder". What's the output?

@mgroth0
Copy link
Author

mgroth0 commented Mar 6, 2017

Here is the output from that:

<items><item uid="1" arg="Path Finder|||||0|||||user.workflow.67156680-5A1E-44BC-9CF1-B8AFCFF1BFC5" autocomplete="user.workflow.67156680-5A1E-44BC-9CF1-B8AFCFF1BFC5"><title>user.workflow.67156680-5A1E-44BC-9CF1-B8AFCFF1BFC5</title><icon>/Applications/Path Finder.app/Contents/Resources/PathFinder.icns.icns</icon><subtitle>Process: Path Finder | App name: Path Finder</subtitle></item></items>

I'm sorry, my issue was very unclear. The workflow correctly lists my windows but I get the AppleScript error when I hit enter on one of them, and it does not become the focused window.

@mandrigin
Copy link
Owner

Do you have Alfred added to Accessibility settings?

@mgroth0
Copy link
Author

mgroth0 commented Mar 10, 2017

yes:
image

@mandrigin
Copy link
Owner

What is the OS version and Alfred version?

@mgroth0
Copy link
Author

mgroth0 commented Mar 13, 2017

10.12.3 & 3.3.1

@mandrigin
Copy link
Owner

That is weird. I have exactly the same OS version and Alfred version, and everything works for me...

@mandrigin
Copy link
Owner

Looks very similar to this one: ttscoff/Slogger#140

@mandrigin
Copy link
Owner

@mandrigin
Copy link
Owner

Might be something security-related.

@emilingerslev
Copy link

Found the error to be at line https://github.com/mandrigin/AlfredSwitchWindows/blob/master/AlfredWorkflow/info.plist#L129

Removing this will make the script work, even though the selected items isn't a safari tab

Repository owner deleted a comment from jabreuint Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants