hammerspoon2-docs
    Preparing search index...

    Function writeURLs

    • Write one or more URLs to the pasteboard atomically, replacing all current contents.

      Writing file URLs via writeURLs() uses AppKit's NSURL pasteboard representation so Finder and other apps receive proper file references and sandbox extensions when pasting multiple copied files.

      Parameters

      • urls: string[]

        Array of URL strings (each must have a scheme, e.g. "file:///..." or "https://...")

      Returns boolean

      true if the write succeeded