I am trying to simulate the return keystroke using AppleScript.
The idea is to activate Photoshop to commit an operation by pressing the key Return.
I have tried using key code, using the return label) but none of them work.
In many cases, the script runs and never ends.
Can this be done with AppleScript
tell application “Adobe Photoshop 2021”
activate
end tell
tell application “System Events”
keystroke “return”
end tell
Model: Mac Book Pro 2015
AppleScript: 2.11
Browser: Chrome
Operating System: macOS 10.14