Indexof file names.


hi,

     used open 100 images daily different folders photoshop  don't want files named as( .fc50, fc51, fc 60,) include in workflow,

so want create alert or popup warn me image no need process , continue next files.

 

for example file names :

12345.cbn014.fc50.jpg

12345.cbn016.fc51.jpg

1452345.cbn015.fc51.jpg

356345.cbn054.fc60.jpg

 

my basic idea if drag , drop images photoshop index of (.fc50,51,60.)  should  show warning or popup stating no need process , move files in separate folder in active document location.

 

please me in ..

 

 

thanks in advance

hi vfxvenkat98,

 

 

<off topic>

please never use additional dots in filenames.

<\off topic>

 

you can work filter like:

var nm = [ "12345.cbn014.fc50.jpg", "12345.cbn016.fc51.jpg", "1452345.cbn015.fc51.jpg", "356345.cbn054.fc60.jpg", "356345.cbn054.fc61.jpg" ]; (i=0; i<nm.length; i++) {     if (nm[i].match(/\.fc(5[01]|60)/) == null) {         alert ("do nm["+i+"] " + nm[i]); // result: nm[4] 356345.cbn054.fc61.jpg     } } 

 

have fun

 



More discussions in Photoshop Scripting


adobe

Comments

Popular posts from this blog

Reader DC

AdobeIDの作り方

Adobe InDesign CC 2017 has stopped working