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

[help] Open files from a folder in pairs

New Here ,
Feb 15, 2018 Feb 15, 2018

Hello,

I have developed a .jsx file which combines two opened files in Photoshop into one and rearranges them accordingly, saves copies into a new folder and then closes the two open documents out of Photoshop.

The only thing I am unable to (don't know how to) do is select a folder which only will show png/tiff/psd files and run the script on all the files selected in the folder two at a time.

I am very very new to javascripting, and I am still learning a lot about it, but I am completely confused on how to get a function to loop through files in a folder in pairs.

If anyone is able to help me with this problem or point me in the right direction, it would be greatly appreciated.

TOPICS
Actions and scripting
650
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
LEGEND ,
Feb 15, 2018 Feb 15, 2018

Combining 2 JPG files into layers from multiple folders / RegEx is /\.(p(sd|ng)|tif)$/i, but may not working with that script.

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
Community Expert ,
Nov 24, 2020 Nov 24, 2020
LATEST
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