hammerspoon2-docs
    Preparing search index...

    Namespace plist

    Module for reading and writing macOS property list (plist) files.

    Property lists are a structured data format used extensively on Apple platforms for storing configuration, preferences, and serialized data. This module supports both XML and binary plist formats.

    JavaScript ↔ plist type mapping:

    • JavaScript strings ↔ plist strings
    • JavaScript numbers ↔ plist integers and reals
    • JavaScript booleans ↔ plist true/false
    • JavaScript arrays ↔ plist arrays
    • JavaScript objects ↔ plist dictionaries
    • JavaScript null is not supported by the plist format and will cause write operations to fail
    • Plist Date and Data values are returned as opaque objects and may not be directly usable in JavaScript
    fromFile
    fromString
    toFile
    toString