If I have to enter a System Message, how do I tell AppleScript to press the “Return” key?
It should be something like:
tell application "System Events"
keystroke return
end tell
Big THANKS in advance!
If I have to enter a System Message, how do I tell AppleScript to press the “Return” key?
It should be something like:
tell application "System Events"
keystroke return
end tell
Big THANKS in advance!
That’s it exactly, august. Remember that, for a keystroke command to work as intended, the target application process must be activated/frontmost:
tell application "System Events"
set process "Target"'s frontmost to true (* insert name of the actual target process *)
keystroke return
end tell