'Mark unread' button for Toolbar

It would be fantastic (for those using DEVONthink (Pro Office)) for having a separate ‘mark unread’ button in the (customise) toolbar option, as it would be a lot easier than navigating back to the particular item, right clicking it and clicking ‘Mark --> As unread’.


Command-K will “Mark as Unread”.

But if you really want a button, copy this script. This will toggle to read status of any selected documents. “Read” to “Unread” and vice versa.

Open it in AppleScript editor and compile it. Save to

~/Library/Application Support/DEVONthink Pro 2/Scripts/Toolbar/Toggle Read Status.scpt

In DEVONthink, control-click the toolbar and choose “Customize Toolbar…”. You should find the script listed at the bottom of the icons in the customization panel. You can drag it to the toolbar. If you wish, you can locate the script in Finder and change the icon for the file. The change will show up the next time you launch DEVONthink.

tell application id "DNtp"
	set theSelection to selection
	repeat with thisItem in theSelection
		if unread of thisItem is false then
			set unread of thisItem to true
			set unread of thisItem to false
		end if
	end repeat
end tell

Brilliant, thanks.