m021478 Posted February 8 Share Posted February 8 Simple question I'm sure, but I'm new to workflows so a little help would be sincerely appreciated! How would I create a workflow that would allow me to specify a hotkey (e.g. Shift+Cmd+5) that would insert a piece of text and subsequently press the 'Return' key? Obviously I would make sure that my curser was in a text field prior to pressing the hotkey? For example, if my Mom texts me via iMessage, and after ensuring that my curser is in the reply field, I press Shift+Cmd+5 which then inserts the text "not now, I'm busy" and subsequently presses the 'return' key to send the message? LOL Thanks! Link to comment
goerwin Posted February 8 Share Posted February 8 (edited) Create a hotkey and connect it to a "run script" (set the language to AppleScript) and use this: tell application "System Events" keystroke "Hi mom, I'm busy" end tell Then connect it to a "Dispatch Key Combo" with the Enter key. It should look something like this. Note: I used Ctrl+Q as an example since Shift+Cmd+5 is a system hotkey for screenshots I believe. Edited February 8 by goerwin Link to comment
vitor Posted February 9 Share Posted February 9 A Copy to Clipboard Output can paste text directly, which is faster and less error-prone. Unfortunately, using AppleScript to keystroke text doesn’t work too well in languages with diacritics. Link to comment
Pearcen Posted February 9 Share Posted February 9 (edited) On 2/8/2022 at 2:11 PM, m021478 said: Simple question I'm sure, but I'm new to workflows so a little help would be sincerely appreciated! How would I create a workflow that would allow me to specify a hotkey (e.g. Shift+Cmd+5) that would insert a piece of text and subsequently press the 'Return' key? Obviously I would make sure that my curser was in a text field prior to pressing the hotkey? For example, if my Mom texts me via iMessage, and after ensuring that my curser is in the reply field, I press Shift+Cmd+5 which then inserts the text "not now, I'm busy" and subsequently presses the 'return' key to send the message? LOL Thanks! So I do something similar but for regular searches in gmail, but would work for what you need. something like this https://github.com/pearcenuk/Alfred-public/tree/main/reply_in_imessage will reply to whatever message you have the input highlighted From anywhere will open messages and send the reply to the last received msg. Edited February 9 by Pearcen 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