Copy To Clipboard
Octory PRO
Element type: Dictionary
Availability: 2.0.6+
Copy a string in the clipboard. It's possible to use variables in the string.
Keys
Name | Type | Possible values | Required |
---|---|---|---|
Type | String | CopyToClipboard | Required |
Text | String | - | Required |
Log | Boolean | - | |
Condition | Dictionary (Condition) | - |
Detail
Type Required
Type: String
Explanation: The type of the action has to be CopyToClipboard
.
Text Required
Type: String
Explanation: The text that will be copied to the clipboard. Can use variables.
Log
Type: Boolean
Default: true
Explanation: If true
, the copied text will appear in the logs. Set it to false
when a sensible info should not be logged.
Condition
Type: Dictionary (Condition)
Explanation: Allows launch the action only based on a boolean expression.
Example
Copy the machine serial number placeholder in the clipboard.
<?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>Custom(copySerial)</string>
</array>
<key>Actions</key>
<array>
<dict>
<key>Type</key>
<string>CopyToClipboard</string>
<key>Text</key>
<string>${DEVICE_SERIAL_NUMBER}</string>
</dict>
</array>
</dict>
</array>
<!-- ... -->
</dict>
</plist>