• 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
Solved - AppleScript changing file creation date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Solved - AppleScript changing file creation date


  • Subject: Solved - AppleScript changing file creation date
  • From: Andrew Nielsen <email@hidden>
  • Date: Thu, 24 Jan 2002 08:38:31 +0800

Problem solved. It requires Apple's developer tools package to be installed.

do shell script "/Developer/Tools/SetFile -d '01/01/2001 12:00:00' myfilename"

I note that the date and time are interpreted as UTC (or Greenwich Mean Time) so you just need to compensate for that.
--

Andrew Nielsen <mailto:email@hidden>
Starfish Technologies Pty Ltd <http://www.starfish.net.au/>
ACN 076 426 714 / ABN 49 426 849 601 Tel: 0500 555 677
Consultants in Unix, Mac OS, Windows & networking technologies


  • Follow-Ups:
    • Re: Solved - AppleScript changing file creation date
      • From: garbanzito <email@hidden>
References: 
 >Re: solutions to scripting addition terminology confilicts (i.e. the osax namespace problem) (From: Joe Kelly <email@hidden>)
 >AppleScript changing file creation date? (From: Andrew Nielsen <email@hidden>)

  • Prev by Date: QuarkXPress 5 Available
  • Next by Date: Re: QuarkXPress 5 Available
  • Previous by thread: Re: AppleScript changing file creation date?
  • Next by thread: Re: Solved - AppleScript changing file creation date
  • Index(es):
    • Date
    • Thread