hammerspoon2-docs
    Preparing search index...

    Function write

    • Write a UTF-8 string to a file, creating it or overwriting any existing content. Intermediate directories are not created automatically; use mkdir first if needed.

      Parameters

      • path: string

        Path to the file. ~ is expanded.

      • content: string

        String to write.

      • OptionalinPlace: boolean

        Whether to write the file in-place or atomically. Defaults to atomically (false).

      Returns boolean

      true on success, false on failure.