Jump to content

How to pass a keystroke sequence to an appliction


Recommended Posts

Newbie here. Not sure exactly how to accomplish this. I have a APP called Frank DeLoupe that I used to pick colors for photo editing work. I have created a workflow that will launch the application just fine. My dilema is that once they app is started I need the command sequence of CTRL + Q to get the application to actually enter into picking mode. I've looked over a lot of forum posts but have not seen anything definitive. Can anyone in the community point me in the right direction?

Link to comment

In AppleScript, considering the app is running:

tell application "System Events"
	tell process "Frank DeLoupe"
		keystroke "q" using control down
	end tell
end tell

or if it is a system wide hotkey:

tell application "System Events"
	keystroke "q" using control down
end tell
Edited by Carlos-Sz
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...