Hello. I can't figure out how to get the number of files of an existing folder nested in the the activeDocument.path.
This piece runs without any problem:
|var myPath = app.activeDocument.path;|
|var files = myPath.getFiles();|
|alert(files.length); // gives the number of files <----------|
This piece gets Error 24: myPath.getFiles is not a function
|var files = myPath.getFiles(); // gets an error|
Any clue on how to make it works?
Thanks in advance
var myPath = Folder(app.activeDocument.path+"/aNestedFolder/");
Do you know where to find good working pieces of jsx samples by subjects (IE: folder and file management) ?
have a nice weekend
Installed and ready to enjoy. Many thanks!