spamwax / alfred-pinboard-rs

Alfred Workflow for Pinboard (Rust)
Other
280 stars 13 forks source link

appIsRunning applescript function no longer working in Catalina #47

Closed waynehoover closed 4 years ago

waynehoover commented 4 years ago

I'm on OS 10.15.3 and I was getting 'Error: osascript error: code exit code: 1 errors when trying to post urls.

I tracked down the issue to the appIsRunning function call in get-current-url.applescript. I removed that conditional for my browser and it works again.

I suspect this is an issue with oascript permissions that has been effecting a lot of Catalina users lately. We need to find the correct permissions to grant or just remove that conditional.

spamwax commented 4 years ago

Thanks for the feedback. I'll look into this and push a new update. Need to remember why that condition check was there :)

spamwax commented 4 years ago

can you elaborate if you moved that function entirely or just from those browsers. I am not running Catalina so testing it would be impossible for me

waynehoover commented 4 years ago

Enabling Full Disk Access for "System Events" in System Preferences -> Privacy -> Full Disk Access then restart seems to fix the issue.

spamwax commented 4 years ago

can you disable that option and try the latest release I pushed recently and see if you get any errors?

waynehoover commented 4 years ago

Yep, the new version also works with System Events disabled in Full Disk Access. So either way good to go. Thanks!

eproxus commented 4 years ago

I seem to have this problem with workflow version 0.15.12 on macOS 10.15.5. I don't see System Events in the Full Disk Access permissions list either.

spamwax commented 4 years ago

are you get the same exact error message? I do not have access to Catalina so I can't help with permission list issue.

eproxus commented 4 years ago

Strangely enough, trying it today after the 10.15.5 Supplemental Update I no longer have the issue. Will keep an eye out for it, but please ignore for now. 😄