Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[9,028 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 whoever posted them. This site is not responsible for what they say.
An AppleScript to sync creation and modification dates
Authored by: Stef@nK on Sep 10, '07 09:17:14AM
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 Nov 12, '07 05:26:21AM

I'll give that a go! Thanks.



[ Reply to This | # ]
An AppleScript to sync creation and modification dates
Authored by: starwxrwx on Sep 11, '07 06:58:30AM

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 Sep 11, '07 07:01:37AM

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 Dec 06, '07 09:01:30PM

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 Dec 11, '07 03:58:07PM
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 | # ]