Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Justin P.2
10 years agoCollaborator | Level 10
Key Command/Shortcut to "Copy Dropbox Link" from Mac Finder.
I copy download links all day from the Mac Finder. It would be great to assign a key command so that you can highlight a file in your Dropbox via Mac Finder, and press a key command to copy the link instead of right clicking.
Update (2023-01-17)
I've moved the script to a repository and expanded on the instructions.
I wanted this now, so I wrote a Python script to get the URL from the command line and created an Automator QuickAction that calls the script with the selected file(s) in Finder:
Now, ^⌘L copies the Dropbox URL of any number of files selected in the Dropbox folder.
67 Replies
Replies have been turned off for this discussion
- Powlow5 years agoNew member | Level 2
Keyboard shortcuts and touchbar integration would really be a big improvement
- DavidW25 years agoHelpful | Level 5
Gene_Parmesan thanks for creating that script - I did all the steps but it results in error when I run it - any thoughts or can you help!?
- Gene_Parmesan5 years agoCollaborator | Level 8
Possibly, but I'd need to see the error.
- dhermanq5 years agoHelpful | Level 6
@Gene_Parmesan I've been searching all over for something like this -- thank you!! I've followed all the steps in your screenshots and GitHub, but I'm getting the following error when I run the Quick Action: "ERROR: file isn't in the Dropbox folder". I see where this error is returned in your code, but I'm not fluent enough to understand what causes it. Any thoughts?
- DavidW25 years agoHelpful | Level 5
Gene_Parmesan perhaps you could give us non-coders a step-by-step how to implement your solution?
- Gene_Parmesan5 years agoCollaborator | Level 8
My guess is that your Dropbox folder is not at ~/Dropbox. I've changed the script to fetch the path of the Dropbox folder in your home directory from ~/.dropbox/info.json. However, there can be two paths there: one for personal Dropbox accounts and one for business accounts. The script only looks for personal accounts, but you can change that to 'business' on line 42 if necessary. (See more about info.json.) You need to use the account which the TOKEN is attached to.
I've also added a more descriptive error message when the path calculation fails. Hopefully that will give you enough clues as to what has gone wrong. Let me know if it works now!
- dhermanq5 years agoHelpful | Level 6
@Gene_Parmesan I use a Dropbox business account, and changing 'personal' to 'business' on line 42 did the trick! I've been dreaming of this functionality for a long time -- thank you!!!
- Gene_Parmesan5 years agoCollaborator | Level 8
Great to hear! I've tweaked the script slightly to call out the personal/business dichotomy more clearly, and updated my earlier comment to take account of the new line numbers. Enjoy your new Finder keyboard command! 😄
- alex18234 years agoNew member | Level 2
I would die to know how to create this shortcut for Windows!!!
- mbiaso4 years agoExplorer | Level 4
would anyone help me to make it work? please? I've done almost all steps but am stacked now...it did not finds the py file on the bin folder...I'm not sure it there to be fair. hahaha
About View, download, and export
Need support with viewing, downloading, and exporting files and folders from your Dropbox account? Find help from the Dropbox Community.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!