hammerspoon2-docs
    Preparing search index...

    Function writeObjects

    • Write multiple type representations to the pasteboard atomically, replacing all current contents. Keys must be UTI type strings; values must be strings. This is how you provide both a plain-text fallback and a richer representation (such as HTML) in a single clipboard operation.

      Parameters

      • representations: Record<string, any>

        A JavaScript object whose keys are UTI strings and values are strings

      Returns boolean

      true if the write succeeded