🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
2 messages
2 total messages Started by Lawrence_H Wed, 31 Dec 2008 10:29
[CS4] The showingWindow option in app.open doesn't hide all dialogs now
#2360
Author: Lawrence_H
Date: Wed, 31 Dec 2008 10:29
11 lines
1373 bytes
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
Re: [CS4] The showingWindow option in app.open doesn't hide all dialogs now
#2361
Author: Robert Tkaczyk
Date: Wed, 31 Dec 2008 10:49
12 lines
1118 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads