In both my work and personal life, I regularly need to share files with others, and the best and most flexible method that I have found is through Dropbox’s excellent Public folder. There are several limitations to this method however:
- Files in your Dropbox folder aren’t secure, and are publicly searchable;
- Files in your Dropbox folder become stale and require regular deletion to not consume your space and create clutter;
- Getting a group of files into your Dropbox and sharing it with others is a tiresome process if done regularly.
To tackle these limitations, I combined the power of Keyboard Maestro with the persistence of Hazel, creating a very powerful and secure method for combining, sharing, and maintaining your shared files. Here’s how it works.
With that productivity trifecta installed, browse to your Dropbox Public folder and create 5 different folders called 1,3,7,14, and 30. I put these folders into a folder called Temp in my Dropbox/Public folder, just to clean things up. These folders represent the amount of days that a file in that folder will be available.
From then on, Hazel will take care of the file maintenance in those folders after the specified amount of time has passed. Now let’s make it simpler to put files into our newly maintained folders.
To save extra time and clicks, I created a Keyboard Maestro macro from a simple window allows me to:
- Compress the selected Finder files into a single zip file;
- Name the file as I wish;
- Select a duration for the file to be shared ;
- Randomize the file name, if needed, via Merlin Mann
- Password protect the zip, if needed, via Kaushik Gopal
With those options set, Keyboard Maestro creates a zip file accordingly and move it into the correct folder Public/Temp folder in my Dropbox, and puts the public URL on my clipboard, displays an informative Growl notification.
The Keyboard Maestro macro is available for download here (now version 1.1, see below).
Finalize the script by adding your own Dropbox ID and path to your newly created Dropbox/Public/Temp folder. If you find any bugs, or have any feature requests/improvement suggestions, please let me know.
I just finished this script last night, although I have been using a version of it for over 6 months, almost on a daily basis. The final pieces were put in place by Kaushik Gopal, who wrote the brilliant KM Macro/AppleScript to compress, and password protect multiple files while randomizing the file name.
Update – May 20, 2012: Zip & Share v1.1 released: fixed a bug preventing the zip from being password protected (if selected). Also cleaned up a bit of the AppleScript. Thanks again to Kaushik Gopal who helped me catch these issues.