so similar to what i achieved a few months ago in Drafts on the mac, i would like to create a similar workflow on iOS (mainly for my ipad)
to start the way i use this on a mac makes it very easy to integrate images within draft+markdown: i capture images via system capture/snagit, then save in a easy to access dropbox folder.
i then have a hazel rule that renames this file and creates a link with a accessible URL and a proper MD file:
now im trying to mimic this in iOS…and running into several blocks: i cant use hazel to get a link for the dropbox new image and generate a link to paste into drafts easily. I have managed to manually convert the copied image link from dropbox into a MD link via shortcuts:
What you described in the original post seemed to be:
On the Mac you capture images using SnagIt and save them to Dropbox.
You have a Hazel rule on the Max with renames the image, makes a link and presumably puts it on the clipboard.
You use that link in drafts as an HTML IMG tag source.
You have a Shortcut that creates an HTML IMG link from the clipboard for a Dropbox file share link.
You can’t run Hazel on i*OS and there is no equivalent. To get the file link you’ll either have to get it manually from the Dropbox i*OS app, write your own link request, or if your Mac is on, you could presumably get it from the shared clipboard, or from a file you could have the Mac write (last_dropbox_link.txt).
For your own link request, you could utilise Draft’s Dropbox integration and direct API calls to identify the file and generate a link. This StackOverflow post’s second answer describes some API options around that.
Is that what you want to know? The underlying question isn’t clear to me I’m afraid.
Don’t know if this will be helpful, but I just made this shortcut for my own use and really like it. Super simple here but does the trick. Gives you a photo selection dialogue. Your choice goes to Dropbox, it grabs the link and formats and takes you back to Drafts with the formatted link in the clipboard. Once you’re back in Drafts just paste.