Use Launch Center Pro to Upload Last-Taken Photo to Dropbox and Send the Link to Due

Tweet This Post

Inspired by Federico Viticci's Launch Center Pro action to add a photo as a reminder to Fantastical 2, I've written the following to do the same with Due:

launchpro-dropbox://x-callback-url/addlastphoto?getlink=1&x-success=due%3A%2F%2F%2Fadd%3Ftitle%3D{{[prompt]}}%2520%5Bclipboard%5D

If you're on your iOS device, you can tap on this link to install it.

This action uses /addlastphoto but there are more recent options like /addphoto?attach=photo:library which will let you choose an image from your photo library. All the options are listed in LCP's 2.1 Release Notes.

The encoding is confusing, but Viticci figured it out. When in doubt, copy. The key, really, is that the clipboard prompt has to be manually encoded or else LCP chooses what was originally on the clipboard before the Dropbox action.

Here is the x-success parameter URL-decoded:

due:///add?title={{[prompt]}}%20[clipboard]

When encoded, the URL-encoded [prompt] -- signified by the {{ }} -- should not be URL-encoded again.


Last built: Mon, May 12, 2014 at 8:52 AM

By Jeffrey Kishner, Wednesday, January 29, 2014 at 9:59 AM.