FORUMS: list search recent posts

Delete files with script or allow after effects to overwrite previous copy automatically

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Kirill Pavlov
Delete files with script or allow after effects to overwrite previous copy automatically
on Oct 24, 2011 at 5:00:26 pm

Hi everyone,
Got a problem.

It there any way to delete files with script outside AE or stop AE promting ifit can overwrite previous copy?

My way


//create new folder
var SaveTo = "H:/desktop/folder/"
var SaveFolder = new Folder(SaveTo);
SaveFolder.create();

//create bat file
var exe_shutoff = new File(SaveTo + "shutoff.bat");
exe_shutoff.open("w");
exe_shutoff.writeln("del render.avi");
exe_shutoff.close();
exe_shutoff.execute();


When I run this script from AE it creates *.bat file but doesn't run it.

If i run it from windows - it successfully deletes itself.


Or maybe there is any way to do this with "system.callSystem" method?

Director of animation and CG


Return to posts index

Dan Ebberts
Re: Delete files with script or allow after effects to overwrite previous copy automatically
on Oct 24, 2011 at 5:33:51 pm

Try this:

app.beginSuppressDialogs()
myProject.renderQueue.render();
app.endSuppressDialogs(false);


Dan



Return to posts index

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