Posting to with Drafts and Shortcuts

Update 2021-02-07: I updated the Shortcut

One of things I did this week while working on the site was to modify an existing Drafts action and Shortcuts shortcut to make it easier for me to post the markdown links for images in a post.

This Drafts actions activates this shortcut. The shortcut opens the photos interface, I select an image, the shortcut resizes it, uploads it to my assets folder for Blot in Dropbox, copies the file name and extension, and copies the markdown link to the clipboard. Drafts is the re-opened automatically and pastes the markdown link wherever the cursor is. This process is way quicker than uploading images to Dropbox, finding the image to get the file name, and then typing the markdown link. In order for the shortcut to work for you, you will need to modify the path to the folder you store your Blot images at. You may need to change the path in the markdown link in the text box at the end of the Shortcut.

Currently, this shortcut works best with uploading a single image at a time. The shortcut will upload multiple photos, but will place the name and file extension for all photos selected in a single markdown link. I am not that proficient with Shortcuts so I am trying to figure out to make the shortcut to generate a markdown link for each photo uploaded per shortcut run. I will update the post when I get it figured out.

This Drafts action is what I use to publish a Blot post using Drafts. It uses the first line as the title of the markdown file and the body of the Drafts is what Blot publishes. The screenshot below probably explains better it than I did.

7 February 2020

Previous:DNS Changes