action await application, actionawaitapplication, kPMActionActionAwaitApplication — Wait for an application to launch or quit.


action await application structure { type, process, change };
type : string, choice
process : process signature structure
change : string, choice, default


Wait for an application to launch or quit.

The next action will not be performed until an application changes.


type. Type of action to perform.

type is a string. type must be await application, kPMActionType_AwaitApplication.

process. Application to match.

process is a process signature structure.

change. Change in application to detect.

change is a string. If change is omitted, the default launched is used. change must be one of the following two constants:

  • launched, kPMActionChange_Launched.
  • terminated, kPMActionChange_Terminated.