Acidham Posted July 21, 2016 Posted July 21, 2016 Uploads a file with file action "Share via Dropbox" or keyboard from selection in Finder to Dropbox and returns public download link. Befory you can start: You need to get an Access Token from Dropbox (https://www.dropbox.com/developers/apps). Configure workflow variablesAccess Token Folder were the file will be stored on Dropbox Download and Install JSON Helper from the Appstore Usage: Search for a file on the file action choose "Share via Dropbox". The short URL, for public download, will be stored to the Clipboard Download: http://www.packal.org/workflow/drop
charlie999 Posted July 27, 2016 Posted July 27, 2016 Hi How do you do this please? Configure workflow variables Access Token Folder were the file will be stored on Dropbox
Acidham Posted July 27, 2016 Author Posted July 27, 2016 (edited) In Alfred 3 you can open the workflow and then click on the [x] (top right corner). A dialog will pop up and you can configure both variables Edited July 27, 2016 by Acidham
charlie999 Posted July 27, 2016 Posted July 27, 2016 Wow superb thanks. Just getting started with Alfred. Top job.
Acidham Posted July 27, 2016 Author Posted July 27, 2016 (edited) Updated to version 1.0. Added config workflow for Dropbox Token and Target Folder Thx charlie999 for the feedback Edited July 27, 2016 by Acidham cands 1
bramadams Posted July 28, 2016 Posted July 28, 2016 (edited) Great workflow! Would it be possible to detect whether the file name already exists in the target folder (or even some adding some suffix like "-copy" to make the Dropbox upload still work)? Right now it gives an error message saying that the token is incorrect. Also, the clipboard URL contains a newline at the end, could that be removed in the script? [bTW, if a folder name contains a single quote, the workflow fails as well, but this is kind of a corner case.] BA Edited July 28, 2016 by bramadams
Acidham Posted July 29, 2016 Author Posted July 29, 2016 Thx @bramadams for the feedback. Would it be possible to detect whether the file name already exists in the target folder (or even some adding some suffix like "-copy" to make the Dropbox upload still work)? Right now it gives an error message saying that the token is incorrect. Fixed, Drop is now overwriting the file with the same file name [bTW, if a folder name contains a single quote, the workflow fails as well, but this is kind of a corner case.] Fixed
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now