How can I send events with a script ?
Hello all,
It seems actions performed by scripts do not trigger events.
By events I mean those you can listen to by registering a notifier :
app.notifiers.add( "setd", new File("my_color_change_listener.jsx"), "Clr ");
The line above will make the specified script be notified when foreground (or background) color is modified.
But if I change foreground color using a script, for example :
app.foregroundColor = myColor;
Then no event will be sent. It is I believe the same with all events (changing layer, opening a document...)
So how can I send a event using a script ?
Thanks in advance,
Yannick
