mark00thomas Posted April 14, 2014 Share Posted April 14, 2014 How can I make Alfred type (not paste) a preset text with a hotkey? For example, if I press Command + F6 (the hot key) I want the text "myemail@xyz.com" to be typed where the curser is in the front most app. Link to comment
jdfwarrior Posted April 15, 2014 Share Posted April 15, 2014 How can I make Alfred type (not paste) a preset text with a hotkey? For example, if I press Command + F6 (the hot key) I want the text "myemail@xyz.com" to be typed where the curser is in the front most app. I believe the only way to accomplish this without performing a paste is to use AppleScript. So, that being said, you would create a workflow with a hotkey trigger, and connect it to a Run Script (with language set to osascript) or a Run NSAppleScript. In the code area, use something like this.. tell application "System Events" keystroke "myemail@xyz.com" end tell Obviously, you would replace the stuff in quotes with what you want the expansion to be Link to comment
mark00thomas Posted August 11, 2014 Author Share Posted August 11, 2014 Thanks, I think I figured it out. In the workflow area of Alfred I hit the + and chose a clipboard template. It's two items were able to get it done (hotkey and copy to clip). Now for example every time I press Apple + 6 my computer automatically types my email address. 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