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

Access to context info from scripts? #436

Open mrjcleaver opened 8 years ago

mrjcleaver commented 8 years ago

Control Plane calls my AppleScript when it joins or leaves a network. Great; but when it's called can I get told all context info? E.g. are some environment variables set?

Thanks, M.

mrjcleaver commented 8 years ago

Looks a bit like #316

mrjcleaver commented 8 years ago

Also, how can you tell whether you are entering or exiting a context?

dustinrue commented 8 years ago

The script never knows. As a work around you can always copy the script for the various states you are dealing with.

mrjcleaver commented 8 years ago

Does Context Plane know whether it's entering or exiting? Could it share this somehow?