Illustartor script running UI twice
I have a very basic jsx script for illustrator that shows a window. It has two buttons, when you press one of them the window closes. But for some reason it runs the script again that creates the window, if I run the same script from within the Extended Script editor toolkit linked to illustrator it runs the same script to build the UI once.
I have tried running the jsx script from the main menu and also as an action and both ways will appear ti run the script again once the UI is closed.
