Re: creation date property of item is r/o !
Re: creation date property of item is r/o !
- Subject: Re: creation date property of item is r/o !
- From: Emile Schwarz <email@hidden>
- Date: Mon, 28 Feb 2005 08:25:51 +0100
Hi Jeffrey et al.,
Thank you for your kind answer.
my first attempt was to use the modification date to set the creation date.
Something like:
<code from memory>
-- get the mod date
set modDate to modification date of item "toto.foo" of front window
-- and use it to be the creation date
set creation date of item "toto.foo" of front window to modDate
</code from memory>
I will try later this morning your advice.
Cheers,
Emile
Jeffrey Berman wrote:
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:
This email sent to email@hidden