I'm struggling to get a basic AppleScript script running correctly. Here is what I want to do:
User highlights text, shortcut key is pressed and then AppleScript will copy the selected text and type something before it and something after it.
Here is the script I have, it doesn't seem to execute correctly, anyone have an idea why?
on run tell application "System Events" keystroke "c" using command down keystroke "<answer>" keystroke "v" using command down keystroke "</answer>" end tell end run