Skip to main content
Participant
May 27, 2019 2:19 PM UTC
Question

CEP panels create dialog window

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 is closed to new replies. Start a new post to keep the conversation going.

5 replies

Inspiring
Jun 10, 2019 5:04 AM UTC

Hi,

try this,

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

Translate
erinferinferinf
Adobe Employee
Adobe Employee
May 29, 2019 9:41 PM UTC

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
Ten A
Community Expert
Community Expert
May 28, 2019 8:50 AM UTC

Can you give more detail?

However, Illustrator's ExtendScript not support Dialogs Object.

Translate
Participant
May 28, 2019 11:46 AM UTC

So how could I achieve something similar in Illustrator?

Translate
Ten A
Community Expert
Community Expert
May 28, 2019 10:14 PM UTC

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