Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

An AppleScript to sync creation and modification dates System
This previous hint showed how to set up an AppleScript droplet to modify the creation date of a file. But what if you want to sync the modified date and Creation dates instead? This AppleScript has been created to do just that. It has evolved from one Daniel A. Shockley provided in a comment to the previous hint, and has been extended to fit this purpose.

To set your files' modified date to be the same as the creation date, use the AppleScript as a droplet application. Copy and paste the text into a new script in Script Editor, and then save it as an application. Run the application to bring up a requester, or drop your files (not folders) on the application directly.

[robg adds: I haven't tested this one.]
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[5,071 views]  

An AppleScript to sync creation and modification dates | 6 comments | Create New Account
Click here to return to the 'An AppleScript to sync creation and modification dates' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
An AppleScript to sync creation and modification dates
Authored by: Stef@nK on Mon, Sep 10 2007 at 9:17AM PDT
Hi,
maybe I miss something, but the quite complicated changeCreationDate() handler can be replaced with this simpler version:

on changeCreationDate(fileList)
	repeat with oneItem in fileList
		if folder of (info for oneItem without size) is false then
			tell application "Finder" to set modification date of oneItem to creation date of oneItem
			set logMsg to ("Changed creation date of file '" & oneItem as string) & "' to " & result as string
			logConsole("changeCreationDate", logMsg)
		end if
	end repeat
end changeCreationDate


[ Reply to This | # ]
An AppleScript to sync creation and modification dates
Authored by: lantrix on Mon, Nov 12 2007 at 5:26AM PST
I'll give that a go! Thanks.

[ Reply to This | # ]
An AppleScript to sync creation and modification dates
Authored by: starwxrwx on Tue, Sep 11 2007 at 6:58AM PDT
I HATE the new iPhoto!

I am a huge fan of film rolls, and while events are essentially (not exactly) the same thing, they have changed too much for my liking.

My major complaint is that the spacing between photos is now HUGE so even when minimised each event/roll takes up way more space than it used to (in "Photos" view).

The fonts are different - and larger. Again, more wasted space.

The events (in "Photos" view) no longer list the description under their name when the little arrow is pointing to the right. I really really liked this feature of film rolls - it gave each roll a personality aside from the title of the roll.

It is dog slow compared to iPhoto 06, which ran great (12 000+ photos).

Films rolls are a much nicer way of seeing lots of photos at once.

I'm very upset by this update, but I'll give it a shot. I'm sad there is so much wasted screen estate though. Very, very sad.

[ Reply to This | # ]
An AppleScript to sync creation and modification dates
Authored by: starwxrwx on Tue, Sep 11 2007 at 7:01AM PDT
sorry when I logged in it changed hints on me...

[ Reply to This | # ]
An AppleScript to sync creation and modification dates
Authored by: pornstorm on Thu, Dec 6 2007 at 9:01PM PST
why doesn't the reverse of this work? i want to replace the creation date with the modification date. it returns an error. help! help!

[ Reply to This | # ]
An AppleScript to sync creation and modification dates
Authored by: saywake on Tue, Dec 11 2007 at 3:58PM PST
According to the Finder applescript dictionary, the creation date is read only (r/o). Take a look at jhead, which is command line utility with lots of promise. you can use this with applescript by using 'do shell script'.

[ Reply to This | # ]