I'm trying to write a variation of David Torno's batch processing of file paths in the render queue but with a dialog box to prompt the user. https://www.provideocoalition.com/after-effects-extendscript-training-ep-5/ ~ 42:37.
However, the selectDialog method doesn't return a compatible parameter for a new File. Is there an alternate method or way to convert/extract the full directory path from it?
var oldName;
var newPath = Folder.selectDialog("Please select render output directory: ");
for (var o = 1; o <= renderQ.numItems; o++) {
oldName = renderQ.item(o).outputModule(1).file.name;
renderQ.item(o).outputModule(1).file = new File(newPath + oldName);
}
Any suggestions would be helpful. Thanks.