I'm working with a kiosk (touch screen) and I want the script to sense if Chrome isn't running. And if it isn't running - Start Chrome in fullscreen mode.
The sample below works, except that if I quit Chrome it will start in full screen and the applescript will destroy the full screen mode.
Can AppleScript sense if Google Chrome is in fullscreen mode?
Like: if application "Google Chrome" is in fullscreen mode then ...
if application "Google Chrome" is not running then
tell application "Google Chrome"
activate
tell application "System Events"
delay 2
keystroke "f" using {shift down, command down}
end tell
end tell
end if
Thanks!