Place images with regex references


hi,

 

lets have several images has same 8 first digits differnt endings.

 

15889801bc.psd

15889801bg.psd

15889801bd.psd

15889801_1.psd

15889801bc1.psd

 

i tryed like...

 

tmp = "/15889801.*\.[a-z]{3}/g";

myrectangle.place(file("/volumes/photos/" +tmp));

 

but not work. doable or should make loop check possible endings?

 

thanks

 

ben

you can't supply regexp file open command. *can* throw getfiles command, , tou nice array of qualifying files in return. loop on place files 1 @ time.



More discussions in InDesign Scripting


adobe

Comments