Martin Kelley Posted January 30, 2015 Share Posted January 30, 2015 I'm really loving the idea of the Alfred Remote. But the workflows I'm dreaming of are above my pay grade--or at least I'm being paid today to do other work than learn the details of all this... I've set most of my favorite apps as keystrokes--remapping the CapsLock and setting them up via BetterTouchTool. So for example, CapsLock-P (for Play) starts and stops Radium playing. If I could just have the remote send that key combination (actually "^⌘↑⌥P"), then I wouldn't have to wait for some Alfred expert to get around to a Radium Remote workflow. Link to comment
stephenmcleod Posted January 30, 2015 Share Posted January 30, 2015 You should be able to do this by getting Remote to send the key combination using AppleScript. Something like: on alfred_script() tell application "VLC" activate tell application "System Events" to keystroke "f" using command down end tell end alfred_script Which tells the Mac to the Command + F combination to put a video into fullscreen. Link to comment
dfay Posted January 30, 2015 Share Posted January 30, 2015 (edited) See also http://www.alfredforum.com/topic/5410-close-a-windowand-trying-to-figure-out-how-to-quit-an-app/?hl=close on sending keystrokes to whatever app is active and http://www.alfredforum.com/topic/5423-using-remote-to-change-radium-stations/?hl=radium on Radium. Edited January 30, 2015 by dfay Link to comment
heldausberlin Posted February 8, 2015 Share Posted February 8, 2015 I'm on to make a remote for Keynote. It's all fine with previous/next build, pause, back etc but it doesn't work for "next slide". The keyboard shortcut is shift+down arrow. The script is: tell application "System Events" keystroke downarrow using shift down end tell All letters on keyboard are working but no system keys like "enter" or the arrows. What's wrong with that? Link to comment
stephenmcleod Posted February 8, 2015 Share Posted February 8, 2015 You want to use 'key code' rather than keystroke for those sort of things. on alfred_script() tell application "System Events" key code 125 end tell end alfred_script The key code 125 is for the down arrow. You'll need to add in 'using {shift down}' or similar to add in that operator. heldausberlin 1 Link to comment
heldausberlin Posted February 8, 2015 Share Posted February 8, 2015 Perfect! That works, thanks! Link to comment
gabamnml Posted February 19, 2015 Share Posted February 19, 2015 I'm on to make a remote for Keynote. It's all fine with previous/next build, pause, back etc but it doesn't work for "next slide". The keyboard shortcut is shift+down arrow. The script is: tell application "System Events" keystroke downarrow using shift down end tell All letters on keyboard are working but no system keys like "enter" or the arrows. What's wrong with that? You try using this Remote Workflow http://www.alfredforum.com/topic/5540-keynote-remote/ Cheers! Link to comment
Andrew Posted February 23, 2015 Share Posted February 23, 2015 This is coming in the next release which should make this task much easier... dfay 1 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