Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
2

UXP script that iterates through all documents

New Here ,
Jan 06, 2024 Jan 06, 2024

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!
TOPICS
Actions and scripting
298
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Enthusiast ,
Jan 06, 2024 Jan 06, 2024

Unfortunately uxp is too young and full of problems, I find it immature and poorly documented, but if you want to find out more there is a specific forum, it's not like this one which is made up of helpful people, in that forum they are more reluctant to give help, in any case this is the forum https://forums.creativeclouddeveloper.com/c/photoshop/63

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 06, 2024 Jan 06, 2024
LATEST

Thank you! I will check out this forum.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines