Jump to content
Sign in to follow this  
mortalus

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?

Share this post


Link to post

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

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  
×
×
  • Create New...