Add Finder tags to a file
Adds, removes, sets or toggles a file's Finder tags.
Add tags tags to path
Details #
Changes the file's Finder tags. op is add (the default), remove, set (replace them all) or toggle. tags is a list, or names separated by commas or new lines. A tag the file already has keeps its colour.
Parameters #
| Parameter | Type | Required | Values | What it does |
|---|---|---|---|---|
into | text | The variable that receives the path. | ||
op | text | add, remove, set or toggle. | ||
path | text | The file. Optional when a file trigger fired. | ||
source | text | |||
tags | any value | The tag names. Required except with set, where none clears the tags. |
Every step also accepts label, onFailure, timeout and dryRunSafe.
Examples #
Add Finder tags to a file
Do
- Add tags “Invoice, To file” to “invoice.pdf”
Gotchas #
The run's
file.tagsis updated, so a later condition sees the new tags.In a dry run it changes nothing and says what it would do.