Closed myers closed 7 years ago
https://github.com/dustinrue/ControlPlane/wiki/Controlling-ControlPlane-using-AppleScript outlines how you can use applescript to switch contexts. Unfortunately this doesn't extend to subcontexts.
If I have a context named Context, and a subcontext under that named Subcontext then this script should switch to that subcontext.
Context
Subcontext
tell application "ControlPlane" set current context to "Context/Subcontext" end tell
Quite likely that sub contexts will go away in favor of just having multiple contexts active. You can use active context evidence source to simulate the old sub context structure if still required.
https://github.com/dustinrue/ControlPlane/wiki/Controlling-ControlPlane-using-AppleScript outlines how you can use applescript to switch contexts. Unfortunately this doesn't extend to subcontexts.
If I have a context named
Context
, and a subcontext under that namedSubcontext
then this script should switch to that subcontext.