Disclaimer: I don't know much AppleScript, but I am a bit of a programmer, so you can go a little technical on me.
I am looking for a solution to the issue of putting Dropbox on an external HD. While they don't advise it, I think that it can be done safely with a couple measures:
- Run Dropbox when the hard drive is mounted through AppleScript. This shouldn't be hard because I read that there is
StartOnMount
or I can listen for the hard drive's "folder" in/Volumes
like here. - Stop Dropbox when the hard drive is ejected, wherein lies the problem. Is there an event triggered by pushing the eject button that would allow me to run a script before un-mounting?
Either I use the above method or I somehow disable the drive from being unmounted by Mac OS X and mount and un-mount only through AppleScripts (hide it from the Finder's sidebar or, preferably, something better). Which of those is the easier solution?
Best Answer
I use to have multiple dropbox instances running at once. I think you can put db app on the drive and use the same trick I did.
One thing. With this method you change your default $HOME into your new path. So Dropbox will create a folder called
Dropbox
in that path.