Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to rename a file with ExtendScript?

  • How to rename a file with ExtendScript?

    Posted by Joshua Faget on April 26, 2017 at 6:46 pm

    Hello,

    Im interested in batch renaming files in a folder…

    I've gotten this far (not much)...

    var inFolder = Folder.selectDialog("Select Folder");
    var fileList = inFolder.getFiles();

    for (i=0; i<fileList.length;i++){

    }

    Dan Ebberts
    replied 9 years ago
    2 Members · 2 Replies
  • 2 Replies
  • Joshua Faget

    April 26, 2017 at 7:36 pm

    I don’t know how to rename a file, the other part I will figure out on my own… there isn’t much in the documentation regarding opening files with ExtendScript and etc.

  • Dan Ebberts

    April 26, 2017 at 8:02 pm

    I think it would just be like this, for example:

    fileList[i].rename(escape(“test ” + i));

    Dan

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy