I am trying to open a dialog in indesign and continue my work after dialog was closed
in vbs my code looks like this and works perfectly
myMenu.invoke [opens Indesign Dialog]
On error resume next
loop while err.Number <> 0 [error while dialog is open andexicutes when dialog closes]
On error Goto 0
it would work but indesign dialog is not editable.
it seems that vbs runs on seperate thread while js runs on indesigns thread.
I tried addin sleep time into loop but it didn't help.
my js uses its own #engine, if that makes a differance. Would it help if #engine used to invoke menu item was not mine? and would that be possible to maybe call a different js file which has its own engine.
I need it for mac compatability. maybe applescript would solve my problem but I cant figure out how to loop and how to call function with to integer parameters