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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s