Skip to main content
Participant
March 18, 2025
Answered

Illustartor script running UI twice

  • March 18, 2025
  • 2 replies
  • 272 views

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.

Correct answer Nigel24120264gn0u

All sorted, rebuilt the UI and not sure what it was but all works fine now.

2 replies

m1b
Community Expert
Community Expert
March 18, 2025

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

Nigel24120264gn0uAuthorCorrect answer
Participant
March 25, 2025

All sorted, rebuilt the UI and not sure what it was but all works fine now.

m1b
Community Expert
Community Expert
March 26, 2025

Thanks for letting us know. 🙂

Participant
March 18, 2025

To add I'm running Illustrator 2025 (29.3.1)