Question
Scripting: Move files in the specified folder to the trash
The code here stores all files on the folder where the selected footage exists in the array "trgfiles".
var folderPR = app.project.selection[0].file.fsName.replace(/\\/g,'/'); var hoge = folderPR.lastIndexOf("/"); var folderPath = folderPR.slice(0,hoge+1); var folder = new Folder(folderPath); var trgfiles = folder.getFiles();
I would like to create a script to move all the files in trgfiles from here to the recycle bin.
Here is the link I am referring to, but it does not work.
