Skip to content

Instantly share code, notes, and snippets.

@patmaddox
Last active May 27, 2018 09:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patmaddox/d5e1eb8754db3f86a6f0a778ecd1f708 to your computer and use it in GitHub Desktop.
Save patmaddox/d5e1eb8754db3f86a6f0a778ecd1f708 to your computer and use it in GitHub Desktop.
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