Question
UXP script that iterates through all documents
Hi,
Im very new to UXP. Not really sure how to use it but I've done Photoshop scripts before using the old method (which I can still use but I would like to move forward with UXP).
I wonder how to create a uxp script that runs through all documents.
In the old way I can just write:
for(i=0; i<app.documents.length;i++){
app.activeDocument = app.documents[i];
resizeDoc(3000, 2000); //dummy function that runs through every document
}
I have no idea how to write something similar using uxp or maybe it has to be written differently if using the new Javascript. Appreciate anybody who can help. Thanks!
resizeDoc(3000, 2000); //dummy function that runs through every document
}
I have no idea how to write something similar using uxp or maybe it has to be written differently if using the new Javascript. Appreciate anybody who can help. Thanks!
