Re: Is there any way to simplify this?
Re: Is there any way to simplify this?
- Subject: Re: Is there any way to simplify this?
- From: "Arthur J Knapp" <email@hidden>
- Date: Sat, 20 Jan 2001 13:25:50 -0500
>
Subject: Is there any way to simplify this?
>
Date: Fri, 19 Jan 2001 14:26:28 -0800
>
From: Michelle Steiner <email@hidden>
>
Can this script fragment be simplified? It bothers me that I had to type
>
the tell statement twice, and wonder if there's a way to avoid the
>
repition.
>
set longAgo to (current date) - 14 * days
>
try
>
tell application "Finder" to set thefilelist to every item ,
>
of thefilepath whose modification date is less than longAgo
>
on error
>
set the thefilepath to choose folder
>
tell application "Finder" to set thefilelist to every item ,
>
of thefilepath whose modification date is less than longAgo
>
end try
* Not Tested !!! *
set longAgo to (current date) - 14 * days
tell application "Finder"
repeat 2 times
try
set thefilelist to every item of thefilepath whose ,
(modification date is less than longAgo)
exit repeat
end try
set thefilepath to choose folder
end repeat
end tell
--
{
Arthur J Knapp, of STELLARViSIONs ;
http://www.STELLARViSIONs.com ;
mailto:email@hidden ;
"...well the rain falls down
without my help, I'm afraid
and my lawn gets wet,
though I withheld my consent..."
}