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: Daniel Rodrigue <email@hidden>
- Date: Sat, 20 Jan 2001 11:23:25 -0500
Michelle Steiner asked:
>
Can this script fragment be simplified?
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
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
\/\/\
set longAgo to (current date) - 14 * days
tell application "Finder"
try
set thefilelist to ]
every item of thefilepath whose modification date is less than longAgo
on error
set the thefilepath to my (choose folder)
set thefilelist to ]
every item of thefilepath whose modification date is less than longAgo
end try
end tell
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
/\/\/
- - - ----------------------------------------------------- - - -
Daniel Rodrigue / Simple & Logik
Vox: 450-468-5726 Fax: 450-4-685087 Bip: 514-897-8698
1261 rue Bourgeoys, Longueuil (Quebec) Canada J4M 1Z5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~