Getting the modification Date
Getting the modification Date
- Subject: Getting the modification Date
- From: "Randy Richter" <email@hidden>
- Date: Thu, 24 Jan 2002 16:10:40 -0600
I am using finder to retrieve the modification date of two files, one local,
and another on a server for verification.
set curdate to (current date)
tell application "Finder"
get modification date of file "tech:fmp3.server.dev:tracker.utilities:ADS"
set filedate to result
end tell
set checkdate to curdate - 1 * days
if weekday of curdate = Sunday or weekday of curdate = Monday then
else
if (weekday of filedate) = (weekday of checkdate) then
else
tell application "Finder"
open file "tech:fmp3.server.dev:tracker.utilities:adswarning"
end tell
end if
end if
tell application "Finder"
get modification date of file "scripts:adtrack:adtrac.txt"
set filedate to result
end tell
if (weekday of curdate) - (weekday of filedate) then
tell application "Finder"
open file "tech:fmp3.server.dev:tracker.utilities:adtrackwarning"
end tell
end if
The code works properly for two to four days, then the modification dates
will not update and the error files will open up. The file dates are
correct, and I have had the variable responses posted to the log file this
application uses, and sure enough the dates are the same as the day before.
In the live version of this script the variables are being cleared which
tells me wherever the script is going to get this date is not refreshing, or
looking again just using data cached somewhere.
If anyone could tell me where this might be, and how to clear it out I would
be grateful.
Mac OS9 on a G3
Randy