• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is there any way to simplify this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


  • Prev by Date: Re: Variables
  • Next by Date: Quirk in Scripter? (the program)
  • Previous by thread: Re: Is there any way to simplify this?
  • Next by thread: Re: Is there any way to simplify this?
  • Index(es):
    • Date
    • Thread