Skip to content

Instantly share code, notes, and snippets.

@rtrouton
Created January 4, 2014 22:56
Show Gist options
  • Save rtrouton/8261908 to your computer and use it in GitHub Desktop.
Save rtrouton/8261908 to your computer and use it in GitHub Desktop.
LaunchAgent to launch Safari in full screen mode and connect to http://www.google.com. Note, not currently working properly; work in progress.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<false/>
<key>Label</key>
<string>com.company.safari_kiosk</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/osascript</string>
<string>-e</string>
<string>tell application </string>
<string>Safari""</string>
<string>-e</string>
<string>activate</string>
<string>-e</string>
<string>tell application </string>
<string>System</string>
<string>Events""</string>
<string>-e</string>
<string>keystroke </string>
<string>f"</string>
<string>using</string>
<string>{control</string>
<string>down,</string>
<string>command</string>
<string>down}"</string>
<string>-e</string>
<string>tell application </string>
<string>Safari"</string>
<string>to</string>
<string>open</string>
<string>location</string>
<string>http://www.google.com</string>
<string>-e </string>
<string>end</string>
<string>tell"</string>
<string>-e</string>
<string>end tell</string>
</array>
<key>QueueDirectories</key>
<array/>
<key>RunAtLoad</key>
<true/>
<key>WatchPaths</key>
<array/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment