-
Notifications
You must be signed in to change notification settings - Fork 182
Controlling ControlPlane using AppleScript
dustinrue edited this page Nov 6, 2011
·
1 revision
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.
tell application "ControlPlane"
get current context
end tell
tell application "ControlPlane"
set current context to "Test"
end tell
tell application "ControlPlane"
get sticky
end tell
tell application "ControlPlane"
set sticky to true
end tell