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!


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 | # ]