While ControlPlane can call or run any AppleScript you come up with, ControlPlane itself currently has limited AppleScript support. Using AppleScript, you can:
- Ask ControlPlane for the current context
- Ask ControlPlane to change the current context
- Toggle whether or not forced contexts are sticky
The following are basic scripts for using with ControlPlane.
Get Current Context
tell application "ControlPlane"
get current context
end tell
Set Current Context
tell application "ControlPlane"
set current context to "Test"
end tell
Get state 'Forced Context is Sticky' option
tell application "ControlPlane"
get sticky
end tell
Set state of 'Forced Context is Sticky' option
tell application "ControlPlane"
set sticky to true
end tell