Get file creation date

leafcutter's icon

I'm trying to build a sound database and am stuck trying to get the file creation date of files. I can get the modification date using javascript but this can change I'd like to be able to get the creation date to track files.

Anyone know how it's done?

Thanks

Tim Lloyd's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I only know how to do it via [shell].

leafcutter's icon

humm that's not working for me for some reason....

leafcutter's icon

Tim, thanks for the patch but i have not managed to make it work - maybe it's the path formatting.

I took your: GetFileInfo -d "/Users/Tim_Lloyd/Desktop/blarg.txt"

and made it: GetFileInfo -d "/Users/johnburton/Desktop/iron.tiff"

nothing.

Any ideas?

Tim Lloyd's icon

That looks like it should work. Do you have the Apple developer tools installed? That's the only thing I can think of. If you try it from Terminal by

cd Desktop
GetFileInfo -d iron.tiff

and it still doesn't work, then that's got to be the reason! You can install them from the disk you got with your comp via the XCode installer.

leafcutter's icon

Ah that's it Tim, cheers.