Skip to content

Instantly share code, notes, and snippets.

@willemvb
Last active February 23, 2016 17:34
Show Gist options
  • Save willemvb/f9a2e8fa1d71aa7290a2 to your computer and use it in GitHub Desktop.
Save willemvb/f9a2e8fa1d71aa7290a2 to your computer and use it in GitHub Desktop.
Startup item to open Chrome as kiosk
# Save as app from Script Editor with option "stay open after run handler"
# Set Chrome to open a specific page
on idle
tell application "Google Chrome"
# No app window
try
if not (exists first window) then
reopen
set URL of active tab of first window to "https://spatie.be"
end if
end try
# Focus app, set fullscreen
try
activate
tell first window to enter presentation mode
end try
end tell
# Timeout
return 20
end idle
on quit
continue quit
end quit
@freekmurze
Copy link

ow yeah

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