-
Scripting date Modified or creation
Hello,
I’m swinging in the dark a bit for this one…Is it possible to use a .lastModified method with extended script?
Or would it be easier to generate a txt file then link to that?my current code is giving me an “invalid date” error.
In the alert it displays
,Invalid Date,[file path]var proj = app.project;
var comp = proj.item(2);
var movFolder = app.project.item(3)
var movs = app.project.item(3).numItems;
var newSource = movFolder.item(1);var fso, f, s;
f = File("/slate script/projects"+newSource.name);
var lastModifiedDate = new Date(newSource.lastModified);
fso = newSource.lastModified;
alert([fso, lastModifiedDate, f])