Apple Event
Octory PRO
Element type: Dictionary
Send an Apple event to the computers. Supported events:
- RestartComputer
- ShutdownComputer
- LogoutUser
- AsleepComputer
Keys
Name | Type | Possible values | Required |
---|---|---|---|
Type | String | RestartComputer , ShutdownComputer , LogoutUser , AsleepComputer | Required |
Condition | Dictionary (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>