Skip to main content
hayalett18272685
Participant
March 10, 2018
Question

File Name Search in Folder

  • March 10, 2018
  • 1 reply
  • 301 views

Ex: Search "Man.+" in D:/images  (with Script)

This topic has been closed for replies.

1 reply

Community Expert
March 10, 2018

See into getFiles() method and do a filter function to gather what you want.

An example for finding folders is linked below. You could easily adapt this for files and restrict the returned array of files with a regular expression:

Re: Create variables from folder names

Also search the forum for other cases with method getFiles().

Also look for other properties that would filter the ones you like. See into DOM documentation by Jongware:

Adobe InDesign CS6 (8.0) Object Model JS: File

Regards,
Uwe