hammerspoon2-docs
    Preparing search index...

    Function addTags

    • Add Finder tags to a file or directory (union with existing tags). 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 to add.

      Returns boolean

      true on success, false on failure.