Use getFiles() in an array
Hi all,
I'm trying to write a script which searches a folder for packaged files and then searches the links of those files.
I want to store the links and their files separate arrays.
When I put the packaged files in an array I cant seem to use the getFiles() function.
var links = [],
packaged = [],
files = [],
myFolder = Folder( "A:\jake/" ),
myDocs = [],
myFiles = myFolder.getFiles(), //store the target files in a variable
i;
for ( i = 0; i < myFiles.length; i++ ) {
if (myFiles instanceof Folder ) {
var links = myFiles.getFiles( "Links" )
packaged.push( links );
}
}
this is a snippet. The packaged array contains all the links folders but when I try and loop through them
for ( i = 0; i < packaged.length; i++ ) {
var y = packaged.getFiles()
links.push( y );
}
This doesn't work.
Any ideas? ![]()
