info(“processidentifier”)
info(“processidentifier”)

The info(“processidentifier”) function returns the process id number that Panorama is running under.

Description

This function returns the process id number that Panorama is running under. This is the name that you will see if you look in Activity Monitor under PID.

Here is an example that uses the process identifier to force Panorama to quit (and then immediately relaunch). (Panorama uses a variation of this code to install updates.)

    let executablePath = posixpath(replace(bundleresourcepath(),".app/Contents/Resources",".app"))
    let relaunchScript =
        // force Panorama to quit
        "kill -9 "+info("processidentifier")+lf()+
        // wait for Panorama to stop
        "while ps -p "+info("processidentifier")+"; do sleep 1;done;"+lf()+
        // re-open Panorama
        "open "+ executablePath
    let pid = blindposixscript(relaunchScript)

See Also

- bringpanoramaforward -- brings Panorama forward, making it the active Application.
- bundleresourcepath( -- returns the file path and name of a specified item in the Panorama application bundle.
- hideotherapplications -- hides all other applications, leaving only Panorama visible.
- hidepanorama -- hides Panorama X, making all windows disappear.
- info("panoramabuild") -- returns the date and time when Panorama was compiled (as a SuperDate).
- info("panoramabundleversion") -- returns the bundle version of Panorama.
- info("panoramafolder") -- returns the location of the folder containing the currently running copy of Panorama.
- info("panoramaisactive") -- returns true if Panorama is the frontmost application (in other words, if the Panorama menu bar is visible).
- info("panoramaname") -- returns the name of the currently running copy of Panorama.
- info("panoramaversion") -- returns the version number of Panorama.
- info("processname") -- returns the process name that Panorama is running under.
- panoramaappvisibility -- allows the Panorama X dock and menu bar to be hidden.

History

Version | Status | Notes
10.2 | New | New in this version.