You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Justin P.2
9 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.
- Luc-FJHelpful | Level 7
Would love this feature, think it will benefit al lot of workflows for people!
- PowlowNew member | Level 2
Keyboard shortcuts and touchbar integration would really be a big improvement
- DavidW2Helpful | 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_ParmesanCollaborator | Level 8
Possibly, but I'd need to see the error.
- dhermanqHelpful | 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?
- DavidW2Helpful | Level 5
Gene_Parmesan perhaps you could give us non-coders a step-by-step how to implement your solution?
- Gene_ParmesanCollaborator | 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!
- dhermanqHelpful | 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_ParmesanCollaborator | 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! 😄
- mbiasoExplorer | 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
- Gene_ParmesanCollaborator | Level 8
Yes, you have to put the script in a bin folder in your home directory. Follow the instructions in the comment below the script to get it set up.
- porgHelpful | Level 5
Justin P.2 great that you provided a script as a proof of concept to Dropbox!
- For now to me personally not worth to go the extra setup mile as I paste ca. 15 links per week.
- But once that's up to 50+ I would certainly go for that script, and soon have that amortized.
@Dropbox Team
- This should just integrate into macOS standard keyboard assignment mechanisms at:
System Preferences → Keyboard → Shortcuts → Services or App Shortcuts (depending on the implementation)
- porgHelpful | Level 5
Correction:
Justin P.2thanks for raising this.
Gene_Parmesan thanks for the script to prove it's possible.
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.
Need more support
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 or Facebook.
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!