listfolder filter
Posted: 22 Nov 2014 20:58
Hi, I'm generating a listing of image files (e.g., jpg, bmp, png, etc.) within a folder. In the end, I only want the filenames (no paths and no folders) so SC listfolder is ideal for this. The image list is used in command line for ImageMagick and it needs the list with each filename 'single' quoted separated by a "<crlf>". Apparently though, SC listfolder only accepts one filter (e.g., *.jpg) is that correct? The only examples I see both on the forum and in the help file are using a single filter and in experimenting I've only been able to get one to work. I have done what I have to do using SC folderreport and formatlist to filter out only the image type files and then obtain the filenames only with getpathcomponent in a foreach loop. Is that the only way achieve what I want to accomplish. Does any body know a better way?
Don any chance that you could make SC listfolder accept multiple filters?
Thanks,
Ken
Don any chance that you could make SC listfolder accept multiple filters?
Thanks,
Ken