One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
SirAider
7 years agoExplorer | Level 3
Script Copy Dropbox Link to Apple Mail
Dear All
I want to do a script on my os x sierra which copy the "Copy Dropbox Link" of a file in a new apple mail from the default mail account. Also, in the file name there is an email address - this email address should be placed automaticaly in the "TO" field in apple mail.
I am not sure which programming language I should take for that. The program is for mac users. Can you give me an advice so I can take the right direction / Dropbox API? I will self study the rest^^
Appreciate your help.
Thanks,
SirAider
- Greg-DB
Dropbox Staff
It sounds like you're referring to the feature of the official Dropbox desktop client where you can right click on a file or folder and choose "Copy Dropbox Link" to get a shared link for that file or folder.
The Dropbox API doesn't offer a way to interact with the Dropbox desktop client itself, but you can use the Dropbox API to communicate with the Dropbox servers to get the same kind of shared link.
To create a shared link like that, you would call /2/sharing/create_shared_link_with_settings:
Or, to retrieve an existing shared link, you would call /2/sharing/list_shared_links:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links
Those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:
https://www.dropbox.com/developers/documentation
Those have corresponding native methods for the HTTPS endpoints.
I can't offer guidance with the non-Dropbox side of things though, such as choosing a good programming language for your platform, or interacting with Apple Mail.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 5 hours ago
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!