Is there a way to be notified when the selected layer is changed for an open document in InDesign CC (2014)?
I'd like to use this event in a CC (HTML) extension.
InDesign_ScriptingGuide_JS.pdf / "Adobe InDesign CS6 JavaScript Scripting Guide" (page 134) suggests that one should view available events in the Object Model Viewer, by selecting
"Event" in the Classes list, and "Class" in the Types list. Well... there I get a list of all events, but nothing about which objects they belong to.
However, it seems that the only objects that can raise these events are the ones that also have an XxxxEvent class (where Xxxx is the class name of the object):
DocumentEvent
IdleEvent
ImportExportEvent
MutationEvent
PrintEvent
No layer object there. Any suggestions on how to check for LayerChanged, or how to make something similar?
Thanks,
Andreas