How do I annotate content?

How about incorporating a simple way to annotate a document in the next iteration? Plenty of other software offers it, it doesn’t seem as if it would be hard to do, people are asking for it, and it would make a lot of users a lot happier with DT, including me.

Try this. Install this script in your DT scripts folder. It will allow you to select one or more documents in DT and optionally add the same comment to all documents (appending to existing comments where they exist), or individually edit the comments. You may apply a shortcut key to the script (e.g., by adding “___Cmd-F12” to the name just before the .scpt extension), or use QuicKeys, etc.

-- change the tell to the model of DT that you have installed
tell application id "com.devon-technologies.thinkpro2"
		set theSelection to the selection
		if theSelection is {} then error "Please select some contents."
		-- Do you want to edit individual comments, or apply the change to all selected comments?
		set theOptions to {"Apply to All", "Edit Each"}
		set theChoice to (choose from list theOptions with prompt "Choose:") as text
		-- If you want to apply to all selected comments, then do the following
		if theChoice is "Apply to All" then
			set thePrompt to "Enter Text to Apply to All Selected Comments..."
			set theAppend to text returned of (display dialog thePrompt default answer "")
			repeat with this_item in theSelection
				set thisComment to the comment of this_item
				if length of thisComment > 0 then
					set the comment of this_item to (comment of this_item) & " " & theAppend
					set the comment of this_item to theAppend
				end if
			end repeat
		end if
		-- If you want to edit each comment individually, then do the following
		if theChoice is "Edit Each" then
			repeat with this_item in theSelection
				set thisName to "Existing comment for: " & name of this_item
				set tempComment to the comment of this_item
				set tempComment to text returned of (display dialog thisName default answer tempComment)
				set the comment of this_item to tempComment
			end repeat
		end if
	on error error_message number error_number
		if the error_number is not -128 then display alert "DEVONthink Pro" message error_message as warning
	end try
end tell

I just want to add my +1 for a more intuitive way to add comments to a document. I too appreciate the ease of Evernote in having the document and the comments right in the same container. That siad, there are probably limitations based on the way DT is handling the document. So some other pane - perhaps a user selectable option to show and edit various types of meta data in the 4th pane - would be most welcome.

I vote for this as well. In my limited experience with DT, this is my number one complaint.

If not a separate annotation function, an enhanced version of the existing RTF Annotation note would work great.

  1. Whenever I view a file, I would like the option to have it’s associated annotation notes automatically open in tabs or windows.

  2. Whenever I view a file or an annotation, I would like to automatically see a list of all associated annotations or files in the Info panel or elsewhere. This is most important. Right now you only have the URL field or the bar above the document which can only contain one link and is not updated if you delete an annotation file.

  3. The URL field should no longer be used. It’s not flexible enough. DT should maintain bi-directional links elsewhere that allow for multiple annotation notes to be linked to files.

What doubledge just wrote goes for me too. I’d really, REALLY like that capability.

A great example of this implementation is in the program SOHO Notes. They have a similar info bar on the right side that has three expandable sections for tags, comments and attachments. While viewing a file, you can drag any other file to the attachments section and it creates a bidirectional link. You can also right click in this window to create a new doc that is automatically linked to the file you are viewing. When viewing a file with attachments the name of each attached file shows up in this area and you can double click it to open it in a new window. You can seemingly link any number of files to one file and all their names are listed in this window. It’s a many-to-many relationship. As you view a file that has attachments or links it also highlights the file name of all linked files that exist in the main file list window as you navigate your folders. This feature is probably the best thing about SOHO Notes.

I desperately hope something like this makes it into DTP. :smiley:

What I’ve started to do is add an annotation, and then move it from the Annotations folder to the folder containing the file I’m annotating.

I like how there’s a little icon next to the files I’ve annotated, but it would be really useful if it linked to the annotation itself.

Michael U

I also think that this would be extremely useful!


Also, when a document is viewed in the lower pane, there doesn’t seem to be any way to see if it has an annotation or get to its annotation file (whereas if the document is open in a separate window, you can see the link at the top and click on it to open the annotation).

I know I’m late to the party, but: If we could use Applescript to set, say, the label of any item with an annotation to a given value, this would be one way to see at at glance which items have annotations. My guess is this isn’t possible, but would love to hear that I’m wrong.

IMHO that is only a workaround, as it is no solution for people who already use labels and so would use information, if those labels were overwritten by “annotated”

Adding the capability to annotate text in DTP would be awesome.

I am not sure what this is supposed to look like.

Hi - not the above poster, but would like to field this since I also think DTP is lacking in annotation features.

Here’s what I’d like to do:

Open a document, say a PDF.

Highlight text - by the way, the Devon PDF thing is really clunky with highlights. Preview’s is good. iAnnotate and a few others are good. I use FoxIt on mobile and that’s good.

Okay, highlight text - and then tag the highlight.

Then you can make scripts to excerpt highlighted passages as organized by tags. I hope you can see the utility in this simple idea.

A multi-level tagging system might help.

1 Like

This is a really old thread which has been revived and DT has moved on a lot.

I agree that there is lot of room for this to become a native function but their are numerous scripts on this forum which will do all this and have a lot more functionality besides.

korm’s original annotation and tagging script is evergreen: [url]Make an Annotation with Links, Notes, Tags v2]

If you want a little bit more functionality (and the added complexity that goes with it) then try this : [url]Put up Example page]

For certain types of annotation where its important to see the passage in context then try this: [url]Whole page pdf annotating]

and if you want to produce a table of annotations and the source documents from where they originate you could try something like this: [url]Export an index of annotations to a numbers spreadsheet]

Maybe you want to layout your annotations on a timeline: [url]Export to Aeon Timeline]

What about a concordance of your annotations: [url]Create concordance for a selection of records]

With 60 000 posts the forums are a treasure trove of ideas. Explore them.


1 Like

Scripts are nice and useful for targeted functions, but those want to “just use” DTPO should not have to use scripts etc. to do basic functions including editing and commenting.

1 Like

You can do editing and commenting without using scripts.

Indeed, I actually use very few scripts in DTPO and when I do, it’s normally either one of the built-in scripts or a template (such as the Contacts or Annotation templates).

Annotations or editing of PDFs or other files are either done using the Annotations template or by some other means entirely that doesn’t require either a template or a script.

Scripting (at least beyond what’s built in) is far from a necessity, even if you have somewhat advanced needs.

/me nods :smiley: