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

Re: Solved - AppleScript changing file creation date


  • Subject: Re: Solved - AppleScript changing file creation date
  • From: Andrew Nielsen <email@hidden>
  • Date: Fri, 25 Jan 2002 07:06:40 +0800

At 12:13 -0700 24/01/2002, garbanzito wrote:
at 2002 01 24, 08:38 +0800, they whom i call Andrew Nielsen wrote:
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"

you'll need to escape or quote the filename if it contains special
characters (including space), and include a path if it's not
in the working directory (which is / with "do shell script").

Indeed. Happily there is support for converting from a file alias to a POSIX file name in Mac OS X 10.1.2.
--

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


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>)
 >Solved - AppleScript changing file creation date (From: Andrew Nielsen <email@hidden>)
 >Re: Solved - AppleScript changing file creation date (From: garbanzito <email@hidden>)

  • Prev by Date: Getting the modification Date
  • Next by Date: Re: Applescript editor recommendations?
  • Previous by thread: Re: Solved - AppleScript changing file creation date
  • Next by thread: Re: Mail.app
  • Index(es):
    • Date
    • Thread