iandol Posted June 25 Share Posted June 25 In macOS keyboard setting, you can reassign the Caps Lock key to be a <kbd>RIGHT CONTROL</kbd>: This allows you to use the Caps lock like a hyper key in the sense now right and left keys are differentiable. In BetterTouchTool this is the recommended way to enable hyper key like functionality. BUT sadly Alfred cannot differentiate pressing left or right modifier keys, it triggers for both. It would be great if Alfred could distinguish left and right modifier keys. In the meantime, is there a way to trigger e.g. Snippets or Clipboard managers with Applescript rather than depend on the Alfred keybindings? There is the search command where I could inject snip or clip: But it won't go directly to the clipboard / snippet manager. Link to comment Share on other sites More sharing options...
iandol Posted June 25 Author Share Posted June 25 My current workaround, BTT runs this applescript as an example to trigger clipboard manager using right-control+c: tell application "Alfred 5" search "Clipboard" tell application "System Events" keystroke return end tell end tell Link to comment Share on other sites More sharing options...
andy4222 Posted June 26 Share Posted June 26 @iandol Instead of AppleScript, I keep it simple and use Alfred's external trigger via URL and trigger them via BTT! Also helps to pass in some arguments if needed. Link to comment Share on other sites More sharing options...
iandol Posted June 26 Author Share Posted June 26 (edited) I can't find the URL Handler documented, the nearest I got was: https://www.alfredapp.com/help/workflows/triggers/external/ I want to trigger the clipboard manager and snippet manager floating windows, which are not part of a workflow, but part of the core feature set; any ideas what URL may do that? Edited June 26 by iandol Link to comment Share on other sites More sharing options...
sepulchra Posted June 26 Share Posted June 26 (edited) @iandol I think this thread is what you are looking for. Edited June 26 by sepulchra iandol 1 Link to comment Share on other sites More sharing options...
iandol Posted June 27 Author Share Posted June 27 12 hours ago, sepulchra said: @iandol I think this thread is what you are looking for. Thanks for the link, however that URL opens the preferences for snippets not the viewer panel. For that person they ended up having to: > but to do it I've had to connect a snippet of ;; to a Run Script object with some Applescript that fires off my Snippet Viewer shortcut I can't use a shortcut as Alfred doesn't support the right [^] key, so using the Applescript I posted above to trigger a search for the clipboard manager is still the only solution AFAICT. It may be a new feature request is in order: add some new URL handlers: `alfred://runfeature/snippets` -- open snippet viewer `alfred://runfeature/clipboard` -- open clipboard manager etc. Link to comment Share on other sites More sharing options...
sepulchra Posted June 27 Share Posted June 27 ah -- sorry to have taken you down the wrong road. 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