I am trying to put together a simple background script that triggers an action (in this case switching between two geektool groups, so that the time is always displayed in the top right of the monitor) whenever my cinema display is connected - what would be the right way to go about this?
In addition, I want this process to run in the background, so as not to interfere with my regular use of the computer, in other words I want it to be waiting for the connection of a second dispal and then to immediately switch between the two groups, and on disconnection of said display to switch back between groups.
I have little to no experience of applescript and I'm not even sure if this is possible, but if it is I will be very grateful.
In addition, I want this process to run in the background, so as not to interfere with my regular use of the computer, in other words I want it to be waiting for the connection of a second dispal and then to immediately switch between the two groups, and on disconnection of said display to switch back between groups.
I have little to no experience of applescript and I'm not even sure if this is possible, but if it is I will be very grateful.