modification date
modification date
- Subject: modification date
- From: "Bull, Rex J (CCC)" <email@hidden>
- Date: Wed, 19 May 2004 11:03:53 -0500
I have several scripts that purge old files from my network (XServe/Xraid
and a Novell server).
These scripts are being run on either OS 10.2.2 or OS 10.3.3, I have the
same results from both OSs and with
files from both servers.
Most of the time the scripts work as they should but there are times when
the script returns "missing value" for the
modification date. If I put it in a repeat loop and "keep looking" until the
date is found things are OK.
My question is has anyone else had this problem and is there a known cause
for it.
Here is a sample of my code.
tell application "Finder"
set noDate to false
set theDate to modification date of item (thePath & Loop)
if theDate is in {missing value} then ---unable to see the modification
date?????
repeat 100 times
set theDate to modification date of item (thePath & Loop)
if theDate is not in {missing value} then exit repeat
end repeat
if theDate is in {missing value} then
set noDate to true
end if
end if
if not noDate then
if theAgeInSeconds > daysToKeep then
move item theMacFilePath to folder (thePath &
"30_Day_Drop_UnUsed:") with replacing
end if
end if
end tell
any ideas ?
Thanks
>
Rex Bull
>
PrePress Support
>
Carlson Craft Business Solutions
>
Phone: 507-386-2508
_______________________________________________
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.