Skip to main content
Participant
May 27, 2019
Question

CEP panels create dialog window

  • May 27, 2019
  • 3 replies
  • 1796 views

Hello,

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

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.

This topic has been closed for replies.

3 replies

Inspiring
June 10, 2019

Hi,

try this,

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

erinferinferinf
Adobe Employee
Adobe Employee
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

Ten A
Community Expert
Community Expert
May 28, 2019

Can you give more detail?

However, Illustrator's ExtendScript not support Dialogs Object.

Participant
May 28, 2019

So how could I achieve something similar in Illustrator?

Ten A
Community Expert
Community Expert
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.