bazcurtis Posted October 4, 2015 Share Posted October 4, 2015 Hi, I would like to make a shortcut that opens an application (I've worked that out), but once the application is open I want to send a cmd-r to the application. Is this possible? Best wishes Michael Link to comment
deanishe Posted October 4, 2015 Share Posted October 4, 2015 Easy peasy. Just execute the AppleScript: tell application "System Events" to keystroke "r" using command down You might have to add a "delay 1" before that, so the script gives the application a second to start up (or more). Link to comment
bazcurtis Posted October 5, 2015 Author Share Posted October 5, 2015 That is perfect, thank you. Do I have to write an AppleScript file or can I call it straight out of Alfred? Best wishes Michael Link to comment
deanishe Posted October 5, 2015 Share Posted October 5, 2015 Should work either way. Wouldn't it have been quicker to try it than ask? Link to comment
bazcurtis Posted October 5, 2015 Author Share Posted October 5, 2015 It would have been, but this is all new to me so I wanted to make sure I was headed in the right direction. Now I have it working I can see me using this more. Thanks for your help. I appreciate it. Cheers Michael 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