![]() |
Smart Rules |
Smart rules are smart groups‚ evolved. Built in the same style as smart groups, smart rules don't just show items matching criteria, they can act on them! From something as simple as adding (or changing) a color label, to modifying a filename then filing a document in another location, smart rules provide some powerful automation possibilities. And they're not just for the technically inclined. No programming experience is needed for almost every action available. Smart rules are conceptually simple and can be summed up as follows: When this event occurs > do this action > on items matched > in this location. Smart rules are made of four parts:
Create a Smart Rule Smart rules can be created in one of two ways:
Note in either case you can change the Search in parameter to target other locations, including all open databases.
When you create a new smart rule, you will be shown the predicate editor, just as you see with smart groups. Just follow these simple steps to define the parameters of the rule (with an example):
This rule shown above would add "_edited" as a suffix to the name of any edited images whose name begins with "screen". One step further‚ chained actions: If you hadn't noticed, there's a + button to the right of the action you specified. And yes, that means you can chain multiple actions in a smart rule! For example, we could add an action to open the edited imaged in the system default application after it has been renamed.
We hope this has given you a good overview of creating a smart rule. Please see the appendix for a complete list of available Events and Actions. For those interested in the Execute Script action, continue to the next section… Importing and Exporting Smart rules can be exported to the Finder, sent by email, and e.g., reimported to DEVONthink on another Mac. Drag a smart rule to the desktop to save it to a file or Control-click it and choose Export. Double-click a saved smart rule to import it, drag it into the sidebar, or Control-click into the sidebar and choose Import. |