• 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: creation date property of item is r/o !
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: creation date property of item is r/o !
  • From: Jeffrey Berman <email@hidden>
  • Date: Mon, 28 Feb 2005 13:46:45 -0600

On 2/27/05 10:18 PM, "John C. Welch" <email@hidden> wrote:

> On 2/27/05 9:59 PM, "Jeffrey Berman" <email@hidden> wrote:
>
>>> 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.
>
> Well, yes, in 24 hour time, that's right. Midnight is 00:00 and noon is
> 12:00, hence the term, "Zero Hundred Hours" for midnight.

John:

You're correct that in 24-hour time, it would be "00" hours for midnight.
But 24-hour clock notation does not use "AM/PM".  So a time of "00:01" in
24-hour time should equal the time of "12:01 AM" using 12-hour notation.
However, when using the SetFile command, this does not seem to be the case.

For example:

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

sets the creation time of the file "testfile" to 12:01 AM.

However, the command:

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

sets the creation time of the file "testfile" to 12:01 *PM*.

The hour value with AM/PM notation seems to work fine in SetFile for all
hours except midnight.


-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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: creation date property of item is r/o !
      • From: "John C. Welch" <email@hidden>
    • Re: creation date property of item is r/o !
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Called script won't store property
  • Next by Date: Re: creation date property of item is r/o !
  • Previous by thread: Re: creation date property of item is r/o !
  • Next by thread: Re: creation date property of item is r/o !
  • Index(es):
    • Date
    • Thread