Created
May 27, 2015 20:06
-
-
Save bjbishop/d38c3ca06ccede82a386 to your computer and use it in GitHub Desktop.
Toggle Dropbox and Google Drive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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