Skip to main content
3 of 3
added 62 characters in body; edited tags; edited title
nohillside
  • 104.5k
  • 42
  • 222
  • 275

How can I execute AppleScript from Textedit?

I have the following AppleScript code in a Textedit file:

set the clipboard to (do shell script "date +%d/%m/%y")
tell application "System Events"
    keystroke tab using command down
    keystroke "v" using command down
end tell

How can I execute this code?