Power Manager 3 > Help > AppleScript Guide > Scripting the Scheduler

Scripting the Scheduler

Start the Scheduler

Start the Scheduler queuing and performing Events.

Line  
1
tell application "Power Manager Scripting"
2
    tell scheduler to set enabled to true
3
end tell

Open in Script Editor

Stop the Scheduler

Stop the Scheduler. Stops Events being queued and performed.

Line  
1
tell application "Power Manager Scripting"
2
    tell scheduler to set enabled to false
3
end tell

Open in Script Editor

Toggle the Scheduler's State

Toggle the Scheduler's start/stop state.

  • If the Scheduler is running, stop performing Events.
  • If the Scheduler is stopped, start performing Events.
Line  
1
tell application "Power Manager Scripting"
2
    tell scheduler to set enabled to (not enabled)
3
end tell

Open in Script Editor