Re: Solved - AppleScript changing file creation date
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