Reply To: Place images from sub folders

#62414

If you have the general framework in place to load all files from a certain folder, all you need is to do is to write a getFiles command to get just folders. From memory:

var folderList = Folder.myDocuments.getFiles(function(item) { return item instanceof Folder; });

The function will return 'true' for all subfolders in the path, and so the array folderList will contain a list of these. Then you can loop over the items in folderList and run the One Folder To Place Them All portion of your script on each.

This article was last modified on June 13, 2012

Comments (0)

Loading comments...