• 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 Folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modification Date of Folder


  • Subject: Re: Modification Date of Folder
  • From: Walter Ian Kaye <email@hidden>
  • Date: Sat, 7 Feb 2004 11:22:54 -0800

At 11:38a -0600 02/07/2004, Irwin Poche didst inscribe upon an electronic papyrus:

While this isn't a Applescript issue, it may have an Applescript solution.

Modifying a file does not set the modification date of its enclosing folder or the values returned by Applescript's modification date.

I tried doing a Finder Get Info command and that will correct the modification date that Applescript returns.

Is there a way to have the date updated prior to using "modification date" and without actually having Applescript do a Finder Get Info command?

If all you want to do is update the folder's mod date to the current time, just create a file in the folder and then delete that file:

tell app "Finder"
set f to make new file at folder "path:to:folder:"
delete f
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Modification Date of Folder (From: Irwin Poche <email@hidden>)

  • Prev by Date: Re: FYI:Timings of AppleScripts
  • Next by Date: Re: Modification Date of Folder
  • Previous by thread: Re: Modification Date of Folder
  • Next by thread: Re: Modification Date of Folder
  • Index(es):
    • Date
    • Thread