Last active
May 27, 2018 09:11
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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