Skip to main content
Participant
December 31, 2008
Question

[CS4] The showingWindow option in app.open doesn't hide all dialogs now

  • December 31, 2008
  • 1 reply
  • 314 views
In CS3, the following code would open any InDesign doc with no UI. Missing links and missing fonts dialogs were suppresed:

var myFile = new File("some location");
var showWindows = false;
var myDoc = app.open(myFile,showWindows);

In CS4, there's a new missing links alert. It's different from the CS3 alert - it just tells you how many links aren't connected to sources, and lets you click OK. It now shows up if you open a doc with missing links, even if you set showWindows to false.

You can disable it by going under Preferences > File Handling and turning off "Check links before opening document", but it would be nice if you didn't have to manually configure ID before running a script. Seems like app.open should suppress all dialogs if you tell it not to open the UI.

Lawrence
This topic has been closed for replies.

1 reply

Known Participant
December 31, 2008
this works fine in CS3 - should also in CS4:

app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;

before app.open()

http://www.adobeforums.com/webx/.59b6bfe4/0

robin

--
www.adobescripts.com