Re: Set creation date?
Re: Set creation date?
- Subject: Re: Set creation date?
- From: Luther Fuller <email@hidden>
- Date: Sat, 4 Nov 2006 13:13:34 -0600
On Nov 4, 2006, at 12:27 PM, Michael Cytrynowicz wrote:
I can resave them using applescript or a photoshop / imageready
action (and
thus get a clean, nice thumbnail), but then the creation date is lost.
I'm kind of lost at what to do. Any suggestions?
There is a unix command that lets you set the creation date. Also
Tanaka's osax lets you do that. The unix command, "SetFile", is
available only if you have installed Developer Tools. Better yet, get
a copy of SetFile and install it in your application bundle. Here's
some code ..
-- set file creation date -------------
set theDate to (mailDate of headRec)
quoted form of (POSIX path of fileRef)
do shell script "/Developer/Tools/SetFile -d \"" & theDate & "\" " &
the result
See the manpage for SetFile for the date format.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden