tjluoma / launchd-check-for-dropbox-conflicts

A shell script and launchd plist for checking for Dropbox conflicted copies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dropbox is a great tool but conflicted copies are seemingly inevitable.

Rather than try to remember to look for them (which I never remember to do) I have launchd look for them every 5 minutes, and if it finds any, it tells me.

If the shell script is run via launchd, it reports its findings via Growl using growlnotify.

If the shell script is run on the command line, it simply reports the number of conflicts to stdout.

Note: when run via launchd, it does not report when zero conflicts are found, because that would be an annoying distraction. If run via the command line, it will report 0 conflicts mostly to tell you that it has finish running.

The Growl notifications are 'sticky' but only one will appear at a time on the screen, so if you leave this running overnight you won't come back to 50 notices that a conflicted copy was found.

Installation

  1. Move dropbox-launchd-conflicted-copy.sh to /usr/local/bin/ and make sure it's executable. (You can actually install it anywhere, just make sure to edit the plist to point to the correct path.)

  2. Move com.tjluoma.check-for-dropbox-conflicted-copies.plist to ~/Library/LaunchAgents/ and then either run

launchctl load ~/Library/LaunchAgents/com.tjluoma.check-for-dropbox-conflicted-copies.plist

or log out and back in.

About

A shell script and launchd plist for checking for Dropbox conflicted copies


Languages

Language:Shell 100.0%