avirambm
-
Posts
3 -
Joined
-
Last visited
Reputation Activity
-
avirambm got a reaction from Amoftcoorb in Simulating a keystroke
Hi,
My Mac keyboard is not working so well unfortunately as I spilt coffee on it. As a result, I can't invoke the "greater/lower than" keys (i.e. `<` and `>`), and I need them badly as I write a lot of HTML code. Is there a way to simulate a keystroke using Alfred's Workflow? For example, I'd love to configure a hotkey that will result in printing the `<` symbol, for example.
Thanks.
-
avirambm reacted to jdfwarrior in Simulating a keystroke
Oh man, my bad. Sorry, I should have been a little more specific. When using an NSAppleScript module, you need wrap your code like this:
on alfred_script(q) tell application "System Events" to keystroke "<" end alfred_script
You don't have to wrap the text if you use a Run Script module and just set the language to be /usr/bin/osascript
Ping back and let me know that you got things going Sorry again for the confusion