Copy link to clipboard
Copied
Hi,
saving all open documents...
for(n = 0 ; n < app.documents.length ; n++)
{ // setup details:
file = ...
opts = new JPEGSaveOptions()
// app,activeDocument = app.documents
app.documents
}
Without setting the activeDocument (the commented line), this is just saving the current document several times
There are a few things that just don't work, unless you set the file you want to apply them to as the activeDocument. Looks like this is one of them. It is a big deal just to add a line making the next file active?
Copy link to clipboard
Copied
There are a few things that just don't work, unless you set the file you want to apply them to as the activeDocument. Looks like this is one of them. It is a big deal just to add a line making the next file active?
Copy link to clipboard
Copied
Hi,
it is not a big deal to add the line (once one knows about it), and it could become a habit to add it to multi-document scripts all the time, but it took me a while to figure out what the problem was
Copy link to clipboard
Copied
I presume it is a typo entering the code in this message, but if it has actually been copied, it is relevant:
// app,activeDocument = app.documents
Notice the comma after app … should be a period.