Re: Modification Date of Folder
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.