Skip to content

Instantly share code, notes, and snippets.

@patmaddox patmaddox/new_note.scpt
Last active May 27, 2018

Embed
What would you like to do?
applescript to make a new markdown note in DEVONthink and open it in an editor
display dialog "Name your note..." default answer ""
set theName to text returned of result
tell application id "DNtp"
set theID to "F76B0AC1-6B7B-45A2-ADE6-8514F54671F4"
set theGroup to get record with uuid theID
set theRecord to create record with {name:theName, type:markdown, content:"# " & theName} in theGroup
set theFile to path of theRecord as POSIX file
tell application "Finder" to open theFile
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.