Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

[JS] Open document without showing window

$
0
0

Hi there, wise scripters,

 

Win7 64-bit, CS6, ID8.0.2

 

I need to open indd doc, process some code, close file. Everything works fine.

However, the 'open' method has a parameter [showingWindow], right?

To speed things up a bit, I try to turn off displaying document's window by using the 'false' argument while opening the file, like this:

 

var file = File.openDialog(); 

app.open(file, false);

 

... and can't get it to work. File just won't open then.

 

Found a few posts where people say it's working just fine for them.

What I am missing / doing wrong?

 

Thank You!

 

P.S. Funny thing is, a couple of years ago, playing with 'save', 'save as', and 'save a copy' options, I had achieved this effect unintentionally, in some quite different way I can't recall now...


Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>