Copy link to clipboard
Copied
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.
All sorted, rebuilt the UI and not sure what it was but all works fine now.
Copy link to clipboard
Copied
To add I'm running Illustrator 2025 (29.3.1)
Copy link to clipboard
Copied
Hi @Nigel24120264gn0u first thing to do is to quit Illustrator, launch it again and confirm that the problem still occurs when you run the script directly from Illustrator.
Second thing to do is to create a pared-down version of your UI script with the minimum in it but that still triggers the problem and post that code here. Use the </> code formatting button and paste it. Then we will test to see if the issue is reproducible on our systems.
- Mark
Copy link to clipboard
Copied
All sorted, rebuilt the UI and not sure what it was but all works fine now.
Copy link to clipboard
Copied
Thanks for letting us know. 🙂