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/jupiterkansas Aug 26 '23
Yes, Applescript would tell Finder to get the name of the folder and the set the filename to the new name.
Some examples here: https://www.macscripter.net/t/how-do-i-rename-a-file-or-a-group-of-files/36581