hammerspoon2-docs
    Preparing search index...

    Function fromFile

    • Read a plist file and return its contents as a JavaScript value. Supports both XML and binary plist formats. Returns a JavaScript object for dictionary-rooted plists, an array for array-rooted plists, or a string or number for scalar-rooted plists.

      Parameters

      • path: string

        Path to the plist file

      Returns any

      The plist contents, or null if the file could not be read or parsed