Grug Posted February 11, 2016 Share Posted February 11, 2016 I'm looking for a way to switch between applications with the Alfred remote. (and I don't find it) A key combo "cmd+tab" seem to be a good idea, but how can I typing "cmd + tab" on my mac in the key Combo without switching ? Thanks for answers. Link to comment
vitor Posted February 11, 2016 Share Posted February 11, 2016 (edited) Pressing key combinations programatically is generally not a great idea, but I’m not sure there’s a way to cycle applications with AppleScript any other way. To do it, connect your Remote trigger to a Run Script using /usr/bin/osascript (AS) and paste one of these (not the lines starting with --, as they are comments and do nothing): -- ⌘⇥ tell application "System Events" to key code 48 using {command down} -- ⌘⇧⇥ tell application "System Events" to key code 48 using {command down, shift down} Alternatively, I’ve made you a quick workflow for this, so you just need to grab it. Edited February 11, 2016 by Vítor Link to comment
Grug Posted February 11, 2016 Author Share Posted February 11, 2016 Great Thanks for the explanation, & for the workflow. ! Link to comment
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