I'm currently writing an extension for Illustrator (2022) and I have the requirement to listen for the changing of the active artboard through an event, e.g. onActiveArtboardChange.
I can currently fetch the active artboard no problem, but I cannot find an event to listen with to see when this changes. The context is that I have an application which needs to display the active artboard name in the panel.
Is there an event I could utilise for this use case?
You can try ART_SELECTION_CHANGED event. This event fired everytime when you select anything on the artboard.