app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
Note it's good practice to restore the old level so do like this.
uia = app.scriptPreferences.userInteractionLevel; app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT; doscript (............ app.scriptPreferences.userInteractionLevel = uia
I don't know if it will help but worth a go
As usual, works like a charm.
I don't know how you come up with these things but i'm sure glad you do.
Trevor.. you are a hero! i'we been looking for this for ages!
one question: if i set this at the beginning of my scripts, will the user still be able to interact with the scriptUI palette (i have a script that lists on one side all the xml tags form the document, and on the other side all the charater and paragraph styles, so the user can appy the chosen style without mapping it first), or should i just set it before changing the document?
Nice to be a hero
Well you could always try for yourself but it doesn't stop scripted UI's alerts, prompts, etc. which is what you would want and is quite sensible.