Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creation date property of item is r/o !



On 2/27/05 11:33 AM, "John C. Welch" <email@hidden> wrote:

> On 2/27/05 10:22 AM, "Emile Schwarz" <email@hidden> wrote:
> 
>> Fortunately, after getting the error message, I went immediately checking the
>> Finder dictionary (instead of wasting hours for nothing).
>> 
>> Someone knows why ?
>> Care to explain why ?
>> Do you know of any work-around ?
> 
> The why doesn't matter. Get the dev tools and you can use SetFile to
> accomplish this.

The 'SetFile' command does let you change the file creation date.  However,
I've discovered that a 12 AM number needs to be set with "00:mm" time
notation.  For example,

SetFile -d "02/27/2005 12:01 AM" testfile

sets the creation date of file "testfile" to 12:01 *PM*.  However, the
following command:

SetFile -d "02/27/2005 00:01 AM" testfile

sets the creation date to the desired 12:01 AM time.


-Jeffrey Berman

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.