I created a Keyboard Maestro macro to quickly create a link-blog post to Scriptogram without even needing to open a text editor.
The workflow is straight forward and assumes that you are reading a website in Safari and have already copied the quote you want to the clipboard:
- You are prompted for an attribution (either the author or the website you’re quoting), the title of your post which will also be used as the url of your post and part of the file name, tags (optional), and comments (optional).
- The url of the frontmost tab in Safari is saved as a variable.
- Text is written to a file.
Only three steps. The real power is in what text is written to a file and the name of the file.
The text is just the boilerplate of a Scriptogram blog post with variables to fill in the data.
Title: %Variable%Post Title% Date: %ICUDateTime%yyyy-M-d HH:mm% Link: %Variable%currentURL% Tags: %Variable%Tags% [%Variable%Attribution%](%Variable%currentURL%): > %CurrentClipboard% %Variable%Comments%
The text is written to a new file each time as long as the date and post title are unique. I like my file name to consist of the date and the post title as follows:
/Users/michael/Dropbox/Apps/scriptogram/posts/%ICUDateTime%yyyy-M-d% %Variable%Post Title%.md
Took me all of 5-10 minutes. I surprised myself getting the whole thing correct on the first try. Typically it takes me half an hour to get the format of the macro set up and another 2 hours debugging it.