Browse the docs

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 #

ParameterTypeRequiredValuesWhat it does
colortextnone, gray, green, purple, blue, yellow, red or orange. Required.
intotextThe variable that receives the path.
pathtextThe file. Optional when a file trigger fired.
sourcetext

Every step also accepts label, onFailure, timeout and dryRunSafe.

Examples #

Set a file's color label
Do
  1. Label “invoice.pdf” red
Open in Switchboard to try it

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.

See also #

Add Finder tags to a file, Get or set a file attribute