When I run an AppleScript from an application in fullscreen, for example Google Chrome, the system will change the focus to the desktop and leave the application was is in fullscreen.
tell application "Google Chrome" activate delay 0.8 tell application "System Events" keystroke "c" using command down end tell end tell
Is there any way to stop switching to the desktop and stay in fullscreen mode ?
I know you can return to fullscreen mode with…
tell application "Google Chrome" to activate
…but it is very annoying to go back to the desktop, even quickly, each time the script runs.