info(“panoramaisactive”)

The info(“panoramaisactive”) function returns true if Panorama is the frontmost application (in other words, if the Panorama menu bar is visible).


Description

This function returns true if Panorama is the frontmost application (in other words, if the Panorama menu bar is visible).

This example checks to see if Panorama is the frontmost application, and if not, makes it the frontmost application.

if not info("panoramaisactive")
    bringpanoramaforward
endif

Code like this might be useful in a timer, where it could possibly be running with Panorama in the background – but be wary of doing this, since the user is probably not going to appreciate being suddenly yanked from whatever app they were using.


See Also


History

VersionStatusNotes
10.2NewNew in this version.