Skip to content

Instantly share code, notes, and snippets.

@kulas
Forked from dankeezer/kiosk
Last active September 12, 2018 17:34
Show Gist options
  • Save kulas/223229db5ff55652b713cd9592253dc2 to your computer and use it in GitHub Desktop.
Save kulas/223229db5ff55652b713cd9592253dc2 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 Script Editor app 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment