everyonesdesign 1 Posted November 20, 2020 Share Posted November 20, 2020 Both Alfred 3, Alfred 4 on macOS Big Sur 11.0.1 Create a hotkey trigger Use selection in macOS as argument Expected: The selection is passed to the next actions Actual: No value passed Simple reproduction case: Dropbox link Link to post Share on other sites
Andrew 797 Posted November 21, 2020 Share Posted November 21, 2020 @everyonesdesign it's likely Alfred has lost the permissions he needs to simulate keyboard events. Try removing and re-adding permissions listed here: https://www.alfredapp.com/help/getting-started/permissions/ Specifically, the Accessibility ones. Cheers, Andrew Link to post Share on other sites
everyonesdesign 1 Posted November 21, 2020 Author Share Posted November 21, 2020 Thank you, @Andrew, for the response. Unfortunately, it didn't do it for me. I disabled and re-enabled the permissions, however I still have the issue. Do you have any other ideas? If you need me to run/try something to debug the issue, please, let me know. Link to post Share on other sites
Andrew 797 Posted November 21, 2020 Share Posted November 21, 2020 @everyonesdesign did you quit Alfred, and fully remove him from the Accessibility prefs rather than just un-tick and re-tick? Link to post Share on other sites
everyonesdesign 1 Posted November 21, 2020 Author Share Posted November 21, 2020 Yes. I re-tried it again, and now I also re-started macOS in between the steps (after disabling all the Accessibility preferences, and then after re-enabling again). I still cannot get selection text in a workflow it seems. Link to post Share on other sites
Andrew 797 Posted November 21, 2020 Share Posted November 21, 2020 @everyonesdesign I wonder if something on your main profile is blocking Alfred. Could you please temporarily create a new user account, switch to that user, activate Alfred and see if it works there? Link to post Share on other sites
everyonesdesign 1 Posted November 21, 2020 Author Share Posted November 21, 2020 OK, it seems that the problem is in my setup. I killed all the other apps and it started working. I think some other app started acting up a bit differently after upgrade to Big Sur. Sorry to bother you, I guess the issue can be closed. I'll look into that and maybe will post what app caused that, so that other people bumping into that will see it. Link to post Share on other sites
everyonesdesign 1 Posted November 21, 2020 Author Share Posted November 21, 2020 BTW, @Andrew, thank you very much for the Alfred tool. I literally cannot imagine my workflow without it now. Andrew 1 Link to post Share on other sites
everyonesdesign 1 Posted November 21, 2020 Author Share Posted November 21, 2020 (edited) The app causing that was TickTick, because my shortcut (Cmd+Shift+O) seemed to coincide with its default global one (and by strange coincidence, the other shortcut I used for testing, Cmd+Option+Cmd+Z, coincided as well). Thank you again for quick response and have a nice day! Edited November 21, 2020 by everyonesdesign Link to post Share on other sites
weqopy 1 Posted January 2 Share Posted January 2 I met the similar situation url="{query}" if [[ ${url:0:7} == "http://" || ${url:0:8} == "https://" || ${url:0:4} == "www." ]] then open $url else open https://www.google.com/search?q="$url" fi It was fine on MacOS 10.15 before, but this hotkey disabled frequently after updating to 11.1 And the hotkey disabled for two scenes: 1. delay to open the url 2. occur an error which is like (open /usr/****/https://www.google.com/search?q='$url') and I forgot save a screenshot. (I will upload it when this situation happens next time) Link to post Share on other sites
weqopy 1 Posted January 2 Share Posted January 2 this is the second situation And for now this only happens when search Chinese character(Number and English characters is Okey). (And it did happened when search English characters before) @Andrew Link to post Share on other sites
theSquashSH 3 Posted January 7 Share Posted January 7 I'm still experiencing this issue today on macOS 10.15.7 (19H15), with Alfred 4.3 Build 1205 (Monday 14th December 2020). I have no language inputs enabled on my system other than English (QWERTY), so I don't think it's an issue specific to users with Pinyin input enabled. My workflow to reproduce the issue is in the screenshot below (inside the Large Type action is just `{query}`). It never triggers however because query is always empty. If I change it to `{query} abcd` it triggers but shows only `abcd` in large type, confirming that the key command is working fine, it's just the pass "Selection in macOS" that's failing to grab text from the active application. I've already tried removing all of Alfred's permissions in System Preferences and re-enabling, as well as restarting Alfred and the computer altogether. Nothing seems to fix it, "Selection in macOS" is always empty regardless of which foreground app I try triggering the workflow from. Link to post Share on other sites
Andrew 797 Posted January 7 Share Posted January 7 @theSquashSH Alfred needs to be able to simulate ⌘C to get the selection in macOS, so there must be something which is stopping this from happening. Could you first try the lock command in Alfred, which simulates the macOS ⌃⌘Q shortcut and see if this works? Link to post Share on other sites
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