# A new tool for Zotero users

**URL:** <https://discourse.devontechnologies.com/t/a-new-tool-for-zotero-users/60025>\
**Category:** DEVONthink\
**Created:** [December 6, 2020, 1:18am UTC](https://discourse.devontechnologies.com/t/a-new-tool-for-zotero-users/60025 "2020-12-06T01:18:18Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mhucka](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/mhucka/32/28691_2.png) [@mhucka](https://discourse.devontechnologies.com/u/mhucka)\
**Post date:** [January 10, 2021, 5:06am UTC](https://discourse.devontechnologies.com/t/a-new-tool-for-zotero-users/60025/5 "2021-01-10T05:06:42Z")

</div>

For people who are using the Smart Rule above: if you don’t have a scheme for running [Zowie](https://mhucka.github.io) 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:

 ![image](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/3X/e/0/e006ae23b1feb0d7fd9d7eefc8cc7d30da458934.png)

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

```applescript
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](https://github.com/mhucka/devonthink-hacks/blob/main/zowie-scripts/Run%20Zowie%20on%20newly%20indexed%20PDF.applescript).

---

_[View the full topic](https://discourse.devontechnologies.com/t/a-new-tool-for-zotero-users/60025)._
