Shell Search
Hello Everyone,
Currently I'm using this to get a list of files from a folder:
var artPath = Folder ("A:/NITTANY/COMPLETED");
var allFiles = artPath.getFiles();
The user then enters the work-order number, and the list of files is looped through to find a match. The file is then opened in AI. Works, but it's slow because there's over 500-1000 files in this folder at any given time. Before we went to PC's and were still on the Macs, I had written this code in Applescript to speed things up a bit:
set files_found to paragraphs of (do shell script "find" & quoted form of posix_path & "-type f -name" & Die_num) (where posix_path is the folder path and Die_num is the user input(filename to search for).
Is there any way to incorporate this into the Javascript code above? Or is that kind of file access considered taboo?
Thanks again for all your help!
