• 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: Set File Creation date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Set File Creation date
      • From: Gmeiner <email@hidden>
    • Re: Set File Creation date
      • From: "John C. Welch" <email@hidden>
References: 
 >Set File Creation date (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: 10.3.7 and call xmlrpc
  • Next by Date: Re: Set File Creation date
  • Previous by thread: Re: Set File Creation date
  • Next by thread: Re: Set File Creation date
  • Index(es):
    • Date
    • Thread