Set a file's color label
Sets the Finder color label of a file: red, orange, yellow, green, blue, purple, gray or none.
Label path color
Details #
Sets the file's Finder color label. none clears it.
Parameters #
| Parameter | Type | Required | Values | What it does |
|---|---|---|---|---|
color | text | none, gray, green, purple, blue, yellow, red or orange. Required. | ||
into | text | The variable that receives the path. | ||
path | text | The file. Optional when a file trigger fired. | ||
source | text |
Every step also accepts label, onFailure, timeout and dryRunSafe.
Examples #
Set a file's color label
Do
- Label “invoice.pdf” red
Gotchas #
Recent versions of macOS show a label as a colored tag in the Finder; the label is still set on the file.
In a dry run it changes nothing and says what it would do.