Set a file's Finder comment
Sets or adds to a file's Finder comment, which Spotlight searches.
Set the Finder comment of path to text
Details #
Writes the file's Finder comment. With mode append the text is added on a new line after the comment that is there.
Parameters #
| Parameter | Type | Required | Values | What it does |
|---|---|---|---|---|
into | text | The variable that receives the path. | ||
mode | text | set (the default) or append. | ||
path | text | The file. Optional when a file trigger fired. | ||
source | text | |||
text | text | The comment. An empty text clears it. |
Every step also accepts label, onFailure, timeout and dryRunSafe.
Examples #
Set a file's Finder comment
Do
- Set the Finder comment of “invoice.pdf” to “Filed by Switchboard”
Gotchas #
The comment is stored with the file, so it follows a copy of it.
In a dry run it changes nothing and says what it would do.