• 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: Michelle Steiner <email@hidden>
  • Date: Sat, 20 Jan 2001 08:05:54 -0800

On 1/20/01 4:42 AM, Nigel Garvey <email@hidden> wrote:

>On the assumption that the only error encountered will be that
>'thefilepath' is undefined (or that it's defined as something
>incompatible with file paths):

Yup, that's my basic assumption.

> set longAgo to (current date) - 14 * days
> try
> set thefilepath to thefilepath as alias
> on error
> set the thefilepath to choose folder
> end try
> tell application "Finder" to set thefilelist to every item ,
> of thefilepath whose modification date is less than longAgo

I like that one too.

--Michelle

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


  • Prev by Date: Re: Startup Disk and other oddities
  • Next by Date: Re: Variables
  • 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