I’m trying to create a smart rule to use a date that’s embedded in a text document.
I’ve had so much trouble getting anything to work as expected that I decided to make as simple a test as I could devise.
First I created a plain text document named text document.txt
containing just a single line. To avoid any possibility of misinterpreting a typed copy of the file’s contents, I’ve attached a zip archive containing it. [Really? You have to zip a plain .txt
text file in order to attach it? ]
test document.txt.zip
Then I consulted the Devonthink 3.9.1 manual, where I read this:
Listed below are the supported date types with their raw value provided. Prefix the raw value with a date component as shown in the example below.
Example:
%newestDocumentDateLongDate%
Current Date: Today’s date. There is no prefix to the raw placeholders for current date.
Addition Date: The date the item added to the database. recordAddition…[embedded images removed]
Creation Date: The date the item was created. recordCreation…
Modification Date: The date the items was last modified. recordModification… Document Date: This is a date detected in the document’s contents, e.g., in a receipt. For PDFs only the first four pages are used. documentDate…Newest/Oldest Document Date: The newest or oldest date detected in the document. For PDFs, only the first four pages are used. newestDocumentDate… and oldestDocumentDate…
Note: When using the raw values for
the date types, e.g., modification date, note the date component’s raw value will start with a capital letter. For example, use %recordCreationShortDate% not “%recordCreationshortdate%”.
Then I selected and copied %newestDocumentDateLongDate%
from the manual, and pasted it into a smart rule action. When I paste it, the text changes to what you see in the rule action below:
But when I select the file and apply the rule, nothing happens.
So I changed the Display Notification
action to Display Alert
and re-pasted %newestDocumentDateLongDate%
to look like this:
When I apply the changed rule I get:
and that’s all.
Can these placeholders not be used in notifications and alerts?