Page 1 of 1

fileSystem modified attribute question

Posted: June 19th, 2005, 5:33 am
by mads
I want to compare to footage items, to find out wich one is the newest.

but it seems like if the files are created on the same day the modified attribute is the same, it seems like the hours and minutes and sekunds are not read.

I use this test script:

var myTime = app.project.activeItem.file.modified.toString();
alert(myTime);

what am I doing wrong??

-mads

Posted: June 19th, 2005, 12:29 pm
by Dan Ebberts
I just ran your script and got:

Sun Mar 07 1999 08:26:40 GMT-0800

(Which interestingly is an hour off what Windows Explorer says).

I don't have a clue as to why it doesn't work for you.

Dan

Posted: June 20th, 2005, 4:14 am
by mads
could you please try to run it on two different footage items,
created on the same day but on differebt times?
its there i get the same string, and I think they should be different
-mads

Posted: June 20th, 2005, 6:13 am
by Dan Ebberts
I see what you're saying now. It appears to be broken in a strange way. I get a cluster of files with the same time and then another cluster with a different time, etc., when each file should have a unique time. Strange.

Dan

Posted: June 20th, 2005, 10:58 pm
by mads
ok thank you very much for testeing, I wont use the Date then, I think i will compare the file length to deteminate whether he file has changed or not.
-mads

Posted: July 28th, 2005, 8:02 am
by davestewart
Shiiiiiiiit. I need to do some file date comparisons for a different reason, and I'm having exactly the same issues!

This is an AE Scripting bug I presume. I can't see a way round it either. Argh!

not working either

Posted: October 25th, 2005, 7:12 pm
by calier
I have the same problem when asking for "app.project.file.modified"
the hours, minutes,and seconds never change their always setup to 18:26:40 . (the date is up to date though)
Now what ? I spent the whole day writing my script and now i'm stuck :cry:

hopefully Adobe is going to fix this issue on v7 ... well maybe not who knows what those guys are doing ... everything is always secret with adobe ... there is no communication between them and there clients ... too bad ... AE rocks !