How to create a Dropbox link for any file in Finder using Automator

How to Create a Dropbox Link With AppleScript & Automator

Creating a Dropbox link for files and folders already stored in Dropbox is easy. But in this article, I’ll show you how to create a Dropbox link for any file in Finder, regardless of where the file is stored using Automator and the Dropbox API.

Note: The technique I describe below does not rely on the deprecated Public folder that Dropbox disabled for accounts created on October 4th, 2012 or later. Instead, I use the Dropbox API to upload files and generate links.

Why create a Dropbox link for files outside of Dropbox?

I store most of my files in either Dropbox or iCloud Drive. The latter doesn’t support sharing individual files via public link yet. So I figured it would be convenient if I could quickly share links to files via Dropbox, regardless of where the file is stored on my Mac.

Also, when I upgraded to the public beta of macOS 10.12 Sierra, I noticed that