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
StartOnMountor I can listen for the hard drive's "folder" in
- 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?