Skip to content

Instantly share code, notes, and snippets.

@bjbishop
Created May 27, 2015 20:06
Show Gist options
  • Save bjbishop/d38c3ca06ccede82a386 to your computer and use it in GitHub Desktop.
Save bjbishop/d38c3ca06ccede82a386 to your computer and use it in GitHub Desktop.
Toggle Dropbox and Google Drive
<?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>Label</key>
<string>org.yourname.toggle_dropboxgdrive</string>
<key>ProgramArguments</key>
<array>
<string>osascript</string>
<string>/Applications/toggle_dropboxgdrive.scpt</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartInterval</key>
<integer>3600</integer>
</dict>
</plist>
launch application "Google Drive"
launch application "Dropbox"
display notification "Started Dropbox/Google Drive, waiting for 10 minutes."
delay 600
tell application "Dropbox" to quit
tell application "Google Drive" to quit
display notification "Stopped Dropbox/Google Drive"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment