Notes.app and DT

Can anyone tell me how to get individual Notes from Apple’s Notes App into Devonthink?

Many thanks,
BarryT

Not easily in 10.8.x Mountain Lion

  1. Select note text and drag it into DEVONthink

  2. Select note text and use the “Take Rich Note” service to make a new note in DEVONthink with the same content as Notes

  3. Print the note and use the “Save PDF to DEVONthink” PDF service

  4. Use an AppleScript to export your note(s) to DEVONthink. An example follows. This is a very barebones script that exports the notes as new HTML documents in DEVONthink – a lot more is possible (see for example this page if you want to examine the possibilities of scripting Notes).

(* Bare bones script to export notes in Apple Notes to DEVONthink
Intended for use on OS X 10.8.x Mountain Lion
*)

tell application "Notes"
	
	tell application id "DNtp"
		set theDestination to display group selector
	end tell
	
	set notecount to the count of notes
	repeat with i from 1 to notecount
		set theBody to body of note i as string
		set theName to the name of note i as string
		my exportToDEVONthink(theName, theBody, theDestination)
	end repeat
end tell

on exportToDEVONthink(theName, theBody, theDestination)
	tell application id "DNtp"
		create record with {name:theName, content:theBody, type:html} in theDestination
	end tell
end exportToDEVONthink

Much simpler is just to use Apple’s services.

Just highlight the text or whatever and highlight, right click, choose send to DEVONthink in plain or Rich text and send it. It will go to your inbox.

If you have Launchbar you can use that using Instant send.

At some point in a day process all your inbox’s. As an example:

DEVONthink
Mail
Omnifocus

and whatever else you have/use.