Mac AppleScript launch Google Chrome in kiosk mode

If like me, you try to execute google Chrome on a mac, in full screen mode with appleScript, this is a simply solution how to do this.
I hope, it will helps you.

tell application "Google Chrome"
	if it is running then
                quit
	else
		activate
		open location "http://mywebsite.com"
		delay 1
		activate
		tell application "System Events" to keystroke "f" using {command down, shift down}
	end if
end tell
Advertisements
Mac AppleScript launch Google Chrome in kiosk mode