The show function of the dialog return false before clicking OK or Cancel!
i have developed plugin text snippets. it's free , open source 1 startup javascript file, can download here:
live snippets download | sourceforge.net
after downloading put file in startup folder , restart indesign.
set snippets folder, select command , create , select folder:
write text in empty saved indesign document , select text execute command, click ok snippet number:
after creating snippet insert text cursor , try place snippet have create before, click ok snippet number:
the problem "place snippet" dialog , not work again! , @ line 1752 show function return false before user clicks ok or cancel.
you can try open new javascript file in extendscript toolkit , write these command test dialog:
try more once.
please 1 me why show function return false immediately?
mydialog.show() returns 1 or 2, in other words, true. (1 = ok, 2 = cancel clicked or esc pressed).
peter
More discussions in InDesign Scripting
adobe
Comments
Post a Comment