Skip to main content

Apple Event

Octory PRO
Element type: Dictionary

Send an Apple event to the computers. Supported events:

  • RestartComputer
  • ShutdownComputer
  • LogoutUser
  • AsleepComputer

Keys

NameTypePossible valuesRequired
TypeStringRestartComputer, ShutdownComputer, LogoutUser, AsleepComputerRequired
ConditionDictionary (Condition)-

Detail

Type Required

Type: String
Possible value: RestartComputer, ShutdownComputer, LogoutUser, AsleepComputer
Explanation: The type of Apple event.

Condition

Type: Dictionary (Condition)
Explanation: Allows launch the action only based on a boolean expression.

Example

To restart the computer.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- ... -->
<key>ActionSets</key>
<array>
<dict>
<key>Type</key>
<string>Parallel</string>
<key>Triggers</key>
<array>
<string>NextButtonClick</string>
</array>
<key>Actions</key>
<array>
<dict>
<key>Type</key>
<string>RestartComputer</string>
</dict>
</array>
</dict>
</array>
<!-- ... -->
</dict>
</plist>