action, action, kPMAction — Task to perform.


action structure { type, ... };
type : string, choice


Task to perform.

action describes a process or task to perform.


type. Type of action to perform.

type is a string. type must be one of the following 25 constants:

  • await battery health, kPMActionType_AwaitBatteryHealth.
  • await daily, kPMActionType_AwaitDaily.
  • await inactivity, kPMActionType_AwaitInactivity.
  • await log in, kPMActionType_AwaitLogIn.
  • await log out, kPMActionType_AwaitLogOut.
  • await notification, kPMActionType_AwaitNotification.
  • await once, kPMActionType_AwaitOnce.
  • await power on, kPMActionType_AwaitPowerOn.
  • await power state, kPMActionType_AwaitPowerState.
  • await power remaining, kPMActionType_AwaitPowerRemaining.
  • await relative date, kPMActionType_AwaitRelativeDate.
  • await sample, kPMActionType_AwaitSample.
  • await start up, kPMActionType_AwaitStartUp.
  • await sun, kPMActionType_AwaitSun.
  • await external assistant, kPMActionType_AwaitExternalAssistant.
  • await sleep, kPMActionType_AwaitSleep.
  • execute external, kPMActionType_ExecuteExternal.
  • fast user switch, kPMActionType_FastUserSwitch.
  • launch application, kPMActionType_LaunchApplication.
  • log out, kPMActionType_LogOut.
  • notification, kPMActionType_Notification.
  • restart, kPMActionType_Restart.
  • shut down, kPMActionType_ShutDown.
  • sleep, kPMActionType_Sleep.
  • warn, kPMActionType_Warn.