Script to copy modified date to created date

Discuss and share scripts and script files...
Post Reply
avsfan
Posts: 554
Joined: 29 Jun 2006 09:00
Location: Fort Collins, Colorado

Script to copy modified date to created date

Post 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

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Script to copy modified date to created date

Post by serendipity »

Hmmm.... Works fine here.
Tried from addressbar and try script.

highend
Posts: 14942
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Script to copy modified date to created date

Post by highend »

Can't reproduce as well, sorry ;)
One of my scripts helped you out? Please donate via Paypal

avsfan
Posts: 554
Joined: 29 Jun 2006 09:00
Location: Fort Collins, Colorado

Re: Script to copy modified date to created date

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

Post Reply