MACSCRPT Archives

June 2013

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Nobumi Iyanaga <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 28 Jun 2013 21:06:56 +0900
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
Hello,

On Jun 28, 2013, at 5:20 PM, John Delacour <[log in to unmask]> wrote:

> On 28/6/13 at 08:35, [log in to unmask] (Richard Morton) wrote:
> 
>> There's no man page on my vanilla 10.8.4 system, so SetFile either
>> doesn't have one, or still only comes with the xCode CL tools.
> 
> Quite likely.  It’s a long time since I had a system without XCode/Developer Tools installed.

Well, on my machine (10.8.4), it is at /usr/bin/SetFile.

To know where "SetFile" is (or is not installed), you can do in Terminal:

$ which SetFile

You can see the man page at:
<https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/SetFile.1.html>

To set the creation date of a file, you can do for example:

$ cd ~/Desktop/test_folder
$ SetFile -d "04/23/11" "images.zip"

Best regard,

Nobumi Iyanaga
Tokyo,
Japan

ATOM RSS1 RSS2