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
fileSystem modified attribute question
Moderator: Paul Tuersley
-
- 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
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
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
created on the same day but on differebt times?
its there i get the same string, and I think they should be different
-mads
-
- 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
Dan
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
-mads
-
- 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!
This is an AE Scripting bug I presume. I can't see a way round it either. Argh!
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
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 !
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

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 !