Re: Set File Creation date
Re: Set File Creation date
- Subject: Re: Set File Creation date
- From: Hylton Boothroyd <email@hidden>
- Date: Sun, 19 Dec 2004 01:15:01 +0000
On 18/12/2004 6:54 am, Gnarlodious wrote ...
> Is there any way to set a file's creation date?
Yes in OS9 with a suitable osax.
I've just done it under OS9.2.2 with AS1.8.3 to verify that what I
originally on an iMac with OS9.0.4 still works.
The key line was,
SetFileAttributes this_item To {CreationStamp:date
"Tuesday, 30 September, 2003 6:00:00 pm"}
which is a call offered by Sändi's Additions 1.2 (that's a-umlaut) from way
back in 1995. I had my copy four years ago from
ftp://mirror.apple.com/mirrors/gaea.scriptweb.com/applescript/osaxen/SandisA
dditions.sit.hqx
The .sit itself is just over 8K. The relevant dictionary entry is
SetFileAttributes : sets attributes like locked, creation date, ecc. for a
file
SetFileAttributes alias -- file whose attributes are to be set
To FileAttributes -- record containing the file attributes
--
Hylton
_______________________________________________
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