hammerspoon2-docs
    Preparing search index...

    Function fromPID

    • Fetch the running application that matches a POSIX PID

      Parameters

      • pid: number

        The PID to search for

      Returns HSApplication | null

      The matching application, or nil if none matched