hammerspoon2-docs
    Preparing search index...

    Function setTags

    • Replace all Finder tags on a file or directory. This function is only available on macOS Tahoe (26) or later.

      Parameters

      • path: string

        Path to the file or directory. ~ is expanded.

      • newTags: string[]

        Array of tag name strings.

      Returns boolean

      true on success, false on failure.