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

CEP panels create dialog window

New Here ,
May 27, 2019 May 27, 2019

Hello,

I am trying to add a dialog windows but I keep getting:

Screenshot 2019-05-27 at 17.17.30.png

var _dlg = app.dialogs.add({ name: "single line" });

this is the code and I tried several approaches with code from the internet in both InDesign and Illustrator.

1.8K
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 ,
May 28, 2019 May 28, 2019

Can you give more detail?

However, Illustrator's ExtendScript not support Dialogs Object.

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
New Here ,
May 28, 2019 May 28, 2019

So how could I achieve something similar in Illustrator?

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 ,
May 28, 2019 May 28, 2019

You can use Script UI class in ExtendScript.

CEP Extension has two deferent scripting engines.

You can reference HTML Sample Extension in Adobe CEP GitHub.

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 Employee ,
May 29, 2019 May 29, 2019

I asked around a bit, and apparently there's no "Dialog" object inside of "regular" Illustrator ExtendScript:

[InDesign has a more] sophisticated scripting interface so it has it's 'own' ScriptUI built-in and also ScriptUI could be used in it as well - whereas in Illustrator we've just got the regular ScriptUI available

Thanks to Silly-V​

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
Contributor ,
Jun 09, 2019 Jun 09, 2019
LATEST

Hi,

try this,

var newWin = new Window('dialog','title',undefined);

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