Jump to content

Dropbox Previous Versions - beta


Recommended Posts

Hey everyone - 

 

I've been playing around with a file action to allow you to restore previous versions of files in Dropbox. Feedback and suggestions welcome.

 

Please note this workflow isn't 100% complete. It's worked in my testing, but it probably isn't perfect

 

Features include:

 

- Support for personal and Dropbox for Business accounts

- viewing a diff of two files if you have FileMerge installed on your computer (from Xcode)

 

- Get a sharable link to a file (not related to previous versions, but still a nice to have)

 

Todos:

 

- Better errors when things don't work correctly (no FileMerge, you've revoked app access, linked the wrong account)

- Take advantage of the new shared folder API. I'm testing this in my personal workflow, but it's not ready to be shared yet.

- Support for more diff tools (Kaleidoscope, etc)

 

 

To get started:

 

  1. Download the workflow here
  2. Create a Dropbox app at https://www.dropbox.com/developer
    1. Be sure to choose Full App access, otherwise it won't work
  3. Put the client id and secret into src/config.py in the workflow directory

To authenticate:

 

Select a file that's in your Dropbox folder and choose the "Previous Versions" file action. You'll be prompted to authenticate by hitting enter.

 

Screenshot%202014-09-14%2011.05.55.png?d

- Once you've approved the app, run dbauth and paste the code. 

 

 

Screenshot%202014-09-14%2011.07.21.png?d

 

Using Previous Versions:

 

Once authenticated, you'll be able to get the last 10 previous versions of a file through the file action

 

Screenshot%202014-09-14%2011.09.35.png?d

 

Hitting Return on any of the versions will give you the option to see a diff of the file. Note that if you don't have FileMerge installed, this will probably just silently fail.

Edited by Ryan M
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...