Copier le lien dans le Presse-papiers
Copié
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.
Copier le lien dans le Presse-papiers
Copié
Can you give more detail?
However, Illustrator's ExtendScript not support Dialogs Object.
Copier le lien dans le Presse-papiers
Copié
So how could I achieve something similar in Illustrator?
Copier le lien dans le Presse-papiers
Copié
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.
Copier le lien dans le Presse-papiers
Copié
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
Copier le lien dans le Presse-papiers
Copié
Hi,
try this,
var newWin = new Window('dialog','title',undefined);
Trouvez plus d’idées, d’événements et de ressources dans la nouvelle communauté Adobe
Explorer maintenant