FORUMS: list search recent posts

How to rename a file with ExtendScript?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
joshua faget
How to rename a file with ExtendScript?
on Apr 26, 2017 at 6:46:33 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++){



}


Return to posts index

joshua faget
Re: How to rename a file with ExtendScript?
on Apr 26, 2017 at 7:36:29 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.


Return to posts index

Dan Ebberts
Re: How to rename a file with ExtendScript?
on Apr 26, 2017 at 8:02:24 pm

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

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

Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]