Skip to content

Instantly share code, notes, and snippets.

@dankeezer
Last active September 12, 2018 15:09
Show Gist options
  • Save dankeezer/9696910 to your computer and use it in GitHub Desktop.
Save dankeezer/9696910 to your computer and use it in GitHub Desktop.
AppleScript + directions to auto-launch Chrome in full-screen at startup.
# I'd just give you the .app but you need to change the code to the correct URL.
## Create the kiosk App
# using AppleScript Editor create a script called “kiosk”
# here’s the code
do shell script "open '/Applications/Google Chrome.app' http://phhhoto.com/d/websterhall/5/2"
tell application "Google Chrome" to activate
tell application "System Events"
keystroke "f" using {command down, shift down}
end tell
# File > Export
# Export As: kiosk-app
# Where: Desktop
# File Format: Application
# Save
# Double-click your new kiosk application on the desktop to confirm is works
## Set kiosk to open on login
# System Preferences > Users & Groups > Login Items
# Add your new kiosk app
# Remove every other login app
## Shut off Apple System Updates
# System Preferences > App Store
# Uncheck “Automatically check for updates”
## Also: shut off Bluetooth and remove any paired devices
## Setup screen sharing if you need to access a mounted unit (probable).
## Possible hang-ups:
# 1. Teamviewer seems to fuck the whole thing up so Remote screenshare is something to think about.
# 2. I don't think you can remove Chrome autoupdates. I think you can "silence" them.
@Artem-Schander
Copy link

for me the keystroke "f" using {command down, shift down} didn't work
instead the keystroke "f" using {command down, control down} works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment