Skip to main content
Inspiring
October 31, 2018
Answered

app is not defined

  • October 31, 2018
  • 2 replies
  • 1813 views

Hello,

I am learning scripting for Illustrator and I have some problem, when I use ExtendScript, I have an error sometime : app is not defined.

I have to close Illusatrtor for continue to work with ESTK, do you have a solution, please?

Sorry for my bad english

This topic has been closed for replies.
Correct answer Silly-V

Another way to accomplish the provided error is to use the "Reset" button under the "Debug" menu item. Do not press this button as it will erase all of your memory objects and the only way to bring it all back as far as I know is to restart Illustrator.

Even if you had never pressed this button, I suspect the issue is caused by the same reason: your "Data Browser" panel in the ESTK appears to be empty of all variables. Usually you should see a long list of constantly-existing necessary global variables in this panel, among which is the pre-defined 'app' variable.

2 replies

Silly-V
Silly-VCorrect answer
Legend
November 1, 2018

Another way to accomplish the provided error is to use the "Reset" button under the "Debug" menu item. Do not press this button as it will erase all of your memory objects and the only way to bring it all back as far as I know is to restart Illustrator.

Even if you had never pressed this button, I suspect the issue is caused by the same reason: your "Data Browser" panel in the ESTK appears to be empty of all variables. Usually you should see a long list of constantly-existing necessary global variables in this panel, among which is the pre-defined 'app' variable.

Inspiring
November 1, 2018

Aaah maybe, I use this button, ok I think it's reason app is not defined after it.

I will stop to use "reset"

rcraighead
Legend
November 1, 2018

I expect to see a more complete Application Name in the "link" pull-down menu.

Check to make sure you have your current application selected. My list is quite long and the wrong app could easily be chosen.

Inspiring
November 1, 2018

Hello, I have Illustrator CC 2019 only thus It's ok for it, I have checked it but app is not defined sometime.

I broke link between Illustrator and ESTK too but no good results.