• 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: Modification date of disk unreliable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modification date of disk unreliable


  • Subject: Re: Modification date of disk unreliable
  • From: Adam Bell <email@hidden>
  • Date: Mon, 01 Jan 2007 14:47:43 -0400

Title: Re: Modification date of disk unreliable
This seems to return a reasonable date for me:

set tPath to quoted form of (POSIX path of (choose folder)) -- choose a mounted volume
set MD to do shell script "mdls -name kMDItemFSContentChangeDate " & tPath

At 6:30 PM +0100 1/1/07, KOENIG Yvan wrote:
Le 1 janv. 07 à 18:15:03, Irwin Poche a écrit :
Yesterday, 12/31/06, I update a disk and today, 1/1/07, this script returns "Music:  Sunday, December 3, 2006 7:42:24 AM"

tell application "Finder"
      name of disk 3 & ":  " & modification date of disk 3
end tell


Why is this and is there any way to get a disk's actual modification date time stamp ?


Hello

You may try:

set newDate to "01/01/2007 10:11:12" (* the date must match your System Prefs settings *)
set newDate to date newDate
tell application "Finder"
set modification date of disk 3 to  newDate
end tell

It seems that the system modify a Disk's modDate only when it closes a session.
So, if you let the machine continuously on I am not surprised that the moddate doesn't match the late modification you did.

Yvan KOENIG _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
>esscable.net
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Modification date of disk unreliable (From: Irwin Poche <email@hidden>)
 >Re: Modification date of disk unreliable (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Launching App with bad name
  • Next by Date: Re: find yesterday date using date command
  • Previous by thread: Re: Modification date of disk unreliable
  • Next by thread: Re: Modification date of disk unreliable
  • Index(es):
    • Date
    • Thread