Photoshop only has one activeDocument at a time. Move the contents of your if statement into the while loop before the close line.
Hi Michael L Hale,
I tried your advice...moving if statement before the close line of while statement.
but only the frontmost document is exported as saveforweb and rest is closed without saveforweb.
Yes Michael L Hale,
I got it, sorry for the above post..
My only request is to overcome the confirm option problem.
For each files, it is asking for "would you like to replace". I had to manually press "yes" for every returns.
thanks Michael L Hale.
Add this line just above the export
That will delete the file and avoid the replace dialog.
thank you Michael,
I'll test it and let you know.
please bare with me for the delay...