Re: Edit the date Modified field
Re: Edit the date Modified field
- Subject: Re: Edit the date Modified field
- From: Michelle Steiner <email@hidden>
- Date: Sat, 20 Oct 2001 10:06:43 -0700
On 10/20/01 9:51 AM, email@hidden <email@hidden> wrote:
>
>Thanks. The problem is that while the year is wrong, the day and month is
>
correct. I need to be able to convert 19/10/1963 to 19/10/2001 and 5/6/63
>
to 5/6/01 not just convert everything with a 1963 date to 19/10/01.
>
>
Okay, Mark... So, you're right: there's no off-the-shelf solution. I'm
>
sorry I can't help you: I know how to get the dates but I don't know how
>
to set them. Better ask the list again!
I missed the earlier part of this discussion, but if the problem is to
change the year of modification date of a file to the current year, this
will do it.
tell application "Finder"
set foo to item 1 of the selection
set the modDate to the modification date of foo
set the year of the modDate to 2001
set the modification date of foo to the modDate
end tell
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------