As I’m reading over the course of the week, I like to keep a list of quotations that I can then sort through during my weekly review and organize into other topic-specific notes in DT. In an attempt to automate that process, I created an AppleScript that allows me to add whatever is in my clipboard to the end of my existing DT note that contains quotations. However, it only works if the quotations note (i.e., the destination) is a Formatted Text note, not if it’s a Markdown note. I’d like to be able to make it work with Markdown. Is that possible?
Here’s the AppleScript I’m using, in case it’s helpful:
tellapplicationid “DNtp”
set theRecord toget record with uuid “223FDAA1-E2B7-42E2-8AA4-0E025B64B118”
telltextof theRecord
make new paragraph at end with properties {text:return & return & (the clipboard)}
Further to @bws950 suggestion about using plain text
tell application id "DNtp"
set theRecord to get record with uuid "67ED57ED-6AA1-4DC1-BB1C-D8DC1DECEA3C"
set theText to plain text of theRecord
set plain text of theRecord to theText & (the clipboard)
end tell