Tokens
The Sequencer uses two kinds of token. Output tokens, written in curly braces, pass the result of one action to a later action. Date and time tokens, written in square brackets, are used in Set Clipboard to build text for file names.
Output Tokens
Actions that produce data — Capture, Process File, Copy File, Validation, and Run Python Script — make that data available to subsequent actions. Each of these actions has an Output Name in its settings, and a later action refers to the result by that name in curly braces. For example, if a Capture action's output is named "Recto", a later action can refer to that capture as {Recto}.
In most cases you do not need to type a token. An action that needs an input offers a menu of the compatible outputs from earlier actions, and picking one inserts the token for you.
New actions are given a default output name based on their type:
Action | Default output name | Kind |
|---|---|---|
Capture | Capture | Capture (blue) |
Process File (Export) | Processed Files | File (orange) |
Copy File | Copied Files | File (orange) |
Validation | Validation Report | File (orange) |
Run Python Script | Script Result | File (orange) |
A second action of the same type is numbered, for example "Capture 2". An output name must be unique within the sequence, must start with a letter or an underscore, and may contain letters, numbers, underscores, and spaces. Renaming an output updates the actions that use it.
In DT Nexus 1.2 a token was named after the action itself. Sequences saved in 1.2 are converted automatically when they are loaded in 1.3.
Attributes
Outputs have named attributes, accessible with dot notation. For example {Recto.path} and {Recto.name}.
Attribute | Meaning | Available on |
|---|---|---|
path | Full path of the file | Capture, File |
name | File name without its extension | Capture, File |
name_ext | File name with its extension | Capture, File |
folder | Folder containing the file | Capture, File |
ext | File extension | File |
Repeating Groups
When an action is inside a group that repeats, its output holds one result for each pass.
- {Capture} is the result of the most recent pass only.
- {Capture[*]} is the result of every pass, in order.
- {Capture[0]} is the first pass, and {Capture[-1]} is the last.
To export every capture from a repeating group with a Process File action placed after the group, the source must be {Capture[*]}. The menu inserts {Capture}, which is the last pass only, so type the [*] yourself.
Three further tokens are available while a group is repeating:
Token | Meaning | Example |
|---|---|---|
{Repeat} | The current pass | 3 |
{Repeat.padded} | The current pass, zero-padded | 03 |
{Repeat.count} | The total number of passes | 24 |
Date and Time Tokens
The Set Clipboard action accepts date and time tokens in square brackets. Insert them with the + button beside the text field. Each one is replaced with the date or time at the moment the action runs. For example, Scan_[date-compact] becomes Scan_20261120.
Token | Result |
|---|---|
[date] | Date as YYYY-MM-DD |
[date-compact] | Date as YYYYMMDD |
[date-us] | Date as MM-DD-YYYY |
[time] | Time as HH-MM |
[time-seconds] | Time as HH-MM-SS |
[time-compact] | Time as HHMM |
[year] | Year as YYYY |
[year-short] | Year as YY |
[month] | Month as MM |
[month-short] | Month as M |
[day] | Day as DD |
[day-short] | Day as D |
[hour] | Hour as HH (24-hour) |
Set Clipboard text can also include the repeat tokens above, so Scan_[date-compact]_{Repeat.padded} gives each pass of a repeating group its own name. Characters that are not allowed in file names are blocked.
For the clipboard text to reach file names, Capture One's Next Capture Naming needs a Clipboard Contents token.