dustinrue / ControlPlane

ControlPlane - context-sensitive computing for OS X
http://www.controlplaneapp.com
BSD 3-Clause "New" or "Revised" License
1.76k stars 180 forks source link

Feature request: allow applescript to switch to subcontext #471

Closed myers closed 7 years ago

myers commented 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.

tell application "ControlPlane"
    set current context to "Context/Subcontext"
end tell
dustinrue commented 7 years ago

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.