I'm currently looking at scripting some of our InDesign general preferences and noticed that addEventListener is a method that is available on generalPreferences. When I've tried a few of the event types that I know and can't seem to get any to work.
Does anybody know what event types are available for this object?
Indeed the DOM list those but I never got them working myself. Depending on what you are after, you can use an idleTask to monitor the preferences properties.
Ideally I wanted to monitor whenever the preferences changed
An alternative may consist in adding a listener on the menu involation. You then snap the ref andcreatea idletask with some delay t later do asecond snap and copare.