Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 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 | # ]