Page 1 of 1

Script to copy modified date to created date

Posted: 19 Oct 2012 23:56
by avsfan
Hi all,

I've done a (very) little XY scripting, and know how to set a file's modified (created,etc) date using the timestamp command.

What I'm looking to do is just to set the created date to the modified date for the selected file. I thought I could just do it using:

timestamp c, '<datem>';

using the single quotes so that each selected item will be processed individually, but I get an error that <datem> is an invalid date.

Any suggestions? It's got to be a simple answer, but I'm definitely not seeing it!

Thanks!

andy

Re: Script to copy modified date to created date

Posted: 20 Oct 2012 00:05
by serendipity
Hmmm.... Works fine here.
Tried from addressbar and try script.

Re: Script to copy modified date to created date

Posted: 20 Oct 2012 00:13
by highend
Can't reproduce as well, sorry ;)

Re: Script to copy modified date to created date

Posted: 20 Oct 2012 00:22
by avsfan
:oops: It turns out the session I was trying it in was using XY 10.7 (I was trying in a virtual machine), and when I updated to 11.7 everything worked just fine... OOPS!