Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

[JS-CS2] new Window error

Community Expert ,
Aug 13, 2008 Aug 13, 2008
Hi All,

I'm trying to create a new GUI window, but can't even get beyond the first line... The code is:

var win = new Window('dialog', 'test');

And I get the err msg:
"Error 22: Window does not have a constructor."

The exact same thing works just fine in PS-CS2. Any ideas?
TOPICS
Scripting
1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
LEGEND ,
Aug 13, 2008 Aug 13, 2008
Illustrator's Javascript model does not provide for dialogs as does Photoshop's and InDesign's. Simple alert() and prompt() work.

See the Bridge Javascript Reference for instructions and samples on creating more elaborate dialogs that can work in Illustrator.

JET
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 13, 2008 Aug 13, 2008
Does Illustrator CS2 support ScriptUI? I don't think so, but it's been a while since I did any Illustrator scripting.

Dave
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 13, 2008 Aug 13, 2008
James: Thanks for the tip and the info. I'll look into it.
Dave: It seems that no, which is strange, since other CS2 apps do...
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 13, 2008 Aug 13, 2008
InDesign CS2 doesn't. That's why I rather thought that Illustrator probably didn't.

Dave
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 13, 2008 Aug 13, 2008
LATEST
And what about ID/PS/ILL CS3? Do they all support it?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines