• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Set creation date?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Set creation date? (From: Michael Cytrynowicz <email@hidden>)

  • Prev by Date: Set creation date?
  • Next by Date: applescript to detect if computer is in power saving mode
  • Previous by thread: Set creation date?
  • Next by thread: Re: Set creation date?
  • Index(es):
    • Date
    • Thread