• 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: Need way to set the Creation date of a file via OSX
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need way to set the Creation date of a file via OSX


  • Subject: Re: Need way to set the Creation date of a file via OSX
  • From: "John C. Welch" <email@hidden>
  • Date: Tue, 17 May 2005 21:14:52 -0500
  • Thread-topic: Need way to set the Creation date of a file via OSX

On 5/17/05 20:53, "Mark J. Reed" <email@hidden> wrote:

> In the filesystem's metadata you have these:
> 3. "Creation" time/ctime (can actually change over the life of the file)
> 4. Modifcation time/mtime (last time the file was changed, initially same as
> ctime)
> 5. Access time/atime (the last time the file was read by any program or
> process)
>
> The UNIX command touch(1) can be used to change these.

Touch is unreliable for creation date/time, since it was written around
UFS/UFS - style filesystems which don't have separate creation date/time
metadata in the file system. ls - l shows this even for HFS systems.

Barring a rewrite of touch to deal with HFS+ metadata, SetFile is the most
reliable way to deal with this for a scripter.


--
"The Exertion of Better Men"
- Motto for Special Boat Unit 22, Det 122- Sacramento , Ca.


 _______________________________________________
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: Need way to set the Creation date of a file via OSX
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Need way to set the Creation date of a file via OSX (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Print text to Terminal
  • Next by Date: Re: Need way to set the Creation date of a file via OSX
  • Previous by thread: Re: Need way to set the Creation date of a file via OSX
  • Next by thread: Re: Need way to set the Creation date of a file via OSX
  • Index(es):
    • Date
    • Thread