fileSystem modified attribute question

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
mads
Posts: 33
Joined: October 15th, 2004, 6:38 am
Location: Denmark
Contact:

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
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

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
mads
Posts: 33
Joined: October 15th, 2004, 6:38 am
Location: Denmark
Contact:

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
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

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
mads
Posts: 33
Joined: October 15th, 2004, 6:38 am
Location: Denmark
Contact:

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
davestewart
Posts: 114
Joined: March 10th, 2005, 5:50 am
Location: London, UK
Contact:

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!
calier
Posts: 13
Joined: January 18th, 2005, 1:45 pm

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 !
Post Reply