file size detection on drive
Posted: September 7th, 2007, 6:21 am
Hello,
Animation sequences often have bad frames. Usually a good way to check a sequene is in an explorer, with the "size" column ordered. The bad frames are easy to spot because they have an unusually small file size compared to the others.
I have a nice script that checks for the existance of each frame in a selected source file, but what I can't figure out is how to access the size.
"javascript"
var fso = newActiveXObject("Scripting.FileSystemObject");
var file = fso.getFile(c:\\temp\\animation.0001.tga);
var size = file.size;
alert("File size is: " + size);
I know AE doesn't use the FSO, and I know this is an easy one, but then again, I thought changing the font style via a script would be easy.

Thanks in advance.
-Todd
Animation sequences often have bad frames. Usually a good way to check a sequene is in an explorer, with the "size" column ordered. The bad frames are easy to spot because they have an unusually small file size compared to the others.
I have a nice script that checks for the existance of each frame in a selected source file, but what I can't figure out is how to access the size.
"javascript"
var fso = newActiveXObject("Scripting.FileSystemObject");
var file = fso.getFile(c:\\temp\\animation.0001.tga);
var size = file.size;
alert("File size is: " + size);
I know AE doesn't use the FSO, and I know this is an easy one, but then again, I thought changing the font style via a script would be easy.

Thanks in advance.
-Todd