hammerspoon2-docs
    Preparing search index...

    Function writeObjects

    • Write multiple type representations for a single item to the pasteboard atomically, replacing all current contents.

      Keys must be UTI type strings; values may be strings or binary data (Uint8Array, typed array, or ArrayBuffer). This is how you provide both a plain-text fallback and richer or binary representations in a single clipboard operation. Values of any other type are skipped, with a warning in the Console.

      Parameters

      • representations: Record<string, string | Uint8Array | ArrayBuffer>

        A JavaScript object mapping UTI strings to strings or raw bytes

      Returns boolean

      true if the write succeeded