r/applescript • u/Viboxing • Aug 26 '23
Applescript to simulate multiple keystrokes?
I'm a complete novice when it comes to coding but need an AppleScript that would represent the following key strokes. This will be used in Automator
- Return, cmd + C, Return, Right Arrow, Return, cmd + V, Return
Any help would be really appreciated!
1
Upvotes
View all comments
Show parent comment
1
u/0x4542 Aug 27 '23 edited Aug 27 '23
Fair enough. It does sound more involved that I imagined.
I've never used Hazel, but it does seem to support running AppleScript in a rule action. Perhaps that can be where you insert your code as part of Step 3 above? I'm sure you'll get a lot of help on MacScripter. Those people are very supportive.
They might even suggest using AppleScript's own folder actions. It might even be simpler than trying to hook into Hazel's own way of doing things.