Placeholders

One of the most powerful features of DEVONthink is the ability to insert data dynamically. A placeholder is a bit of code DEVONthink interprets when used in these scenarios, replacing it with a specific value. You may have an imprint with a Name placeholder defined in the title. When the imprint is used on a PDF, the placeholder is converted to the name of the file!

To extend the possibilities even further, you can combine static text and multiple placeholders to achieve truly custom results. You can use these in a variety of ways: smart rules and batch processing, Reminder alarms, custom imprints on images and PDFs, in WikiLink templates, and more.

Below is a list of placeholders currently available. Following each description is the raw placeholder that can be used when creating templates in external applications or using the import template AppleScript command:

Generic Info:

Counters:

Item Locations:

Document Attributes:

Geographic Info:

Formatting:

Detected Values: The following placeholders get their values from the name or content of a matched document. For example, the Document String is the result of a Scan Name or Scan Text smart action.

Date Placeholders: There are several types of date-specific placeholders to choose from. You can choose from several built-in formats, e.g., the short date, or create your own with individual date component placeholders. Due to the repetition of date placeholders, the raw value of every individual placeholder isn't listed here. However, below are the date component raw values. Note some formats will appear relative to your geographic location, e.g., Jan 1, 2001 for the medium date would be common in the US.

Calendar Components:

Time Components:

Listed below are the supported date types with their raw prefix provided. The placeholders in the previous list relate to the current date, so entering (%month%) would give you the current month. To use other kinds of dates, e.g., Newest Document Date, use the raw value, then add the date component from the list above with the first letter capitalized. For example, getting the month of the newest document date would be: %newestDocumentDate% and month yielding newestDocumentDateMonth.

On a side note, you can string together multiple date and time component placeholders, e.g., to create a Zettelkasten timestamp string like 20010101115959.

Clipboard:

Computer Properties:

Properties: Some files have specific properties, e.g., the author of an email. These are displayed in the Info > Properties inspector. Here are the supported properties and their placeholders, including the raw value.

Custom Metadata: This menu lists any custom metadata attributes you've defined in the Data settings. In order to use raw placeholders, add the md prefix to the identifier of the custom attribute shown in the settings. For example, mddoi for the Digital Object Identifier attribute.

Smart Action Placeholders

These placeholders are used for automation in smart rules and batch processing.

Chat Suggestions: These placeholders are specific to smart actions so are only available in smart rules and batch processing. The values for the placeholders come from your AI provider. The AI engine will examine a document and return the value for the placeholder, e.g., the amount on a receipt. Many of these are described above: Title, Filename, Tags, Rating, Authors, Company, Address, Geolocation, and Date. However, there are some specific placeholders for AI: