Question
Detect when user clicks or changes layer?
I have a script that is very sensitive to which layer is currently selected. If user would change that selection – script will break.
I would like to stop my script completely if user clicks anywhere in the layers or channels tabs of Photoshop.
Is there a way to do that? Maybe some kind of event when layers or channels change?
