• 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
Is there any way to simplify this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is there any way to simplify this?


  • Subject: Is there any way to simplify this?
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 19 Jan 2001 14:26:28 -0800

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.

--Michelle

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

----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------


  • Follow-Ups:
    • Re: Is there any way to simplify this?
      • From: Shane Stanley <email@hidden>
    • Re: Is there any way to simplify this?
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: don't bother reading this...
  • Next by Date: Re: Re: ASCII (Propellorhead 101)
  • Previous by thread: don't bother reading this...
  • Next by thread: Re: Is there any way to simplify this?
  • Index(es):
    • Date
    • Thread