A new tool for Zotero users

For people who are using the Smart Rule above: if you don’t have a scheme for running Zowie on your Zotero files when you add new items to your Zotero database, then new items won’t trigger the Smart Rule simply because they won’t have the Zotero link in the Finder comments. One way to solve this is to use another Smart Rule in DEVONthink that is triggered when new items are imported, and if they lack the Zotero select link, run Zowie on them.

Here’s the Smart Rule I use for that:

and here’s the embedded AppleScript used in the rule:

on performSmartRule(selectedRecords)
	repeat with _record in selectedRecords
		set p to the path of the _record
		set result to do shell script "/usr/local/bin/zowie -q '" & p & "'"
		if result is not equal to "" then
			display notification result
		end if
	end repeat
end performSmartRule

Make sure to update the path to Zowie in the script above if it is not /usr/local/bin/zowie.

The latest version of this script will be available on GitHub.

2 Likes