• 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
FindFile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FindFile


  • Subject: FindFile
  • From: Joe <email@hidden>
  • Date: Mon, 04 Dec 2000 10:33:55 -0600

I'm trying to write a script that will find all files in a certain folder
that have creation dates that are older than 5 days before the current date.

I've tried writing the script using the FindFile addition but I keep getting
this errror " because *Ox//* the original item cannot be found 32768029"

Here is the script, can someone let me know what I'm doing wrong or if there
is a better way of doing this:

tell application "Finder"
set sourceFolder to choose folder with prompt "Select a folder to
search:"
set destFolder to choose folder
set ayearago to (current date) - 5 * days

set theList to FindFile in_folder sourceFolder date_modified_is_before
ayearago result_type "alis"

try
move (every item of theList) to destFolder
on error errtext number errnum
display dialog errtext & space & errnum
end try
end tell


  • Follow-Ups:
    • Re: FindFile (answered)
      • From: David Blache <email@hidden>
  • Prev by Date: Re: Script not waiting for completion of Eudora task
  • Next by Date: Re:Quitting an applet?
  • Previous by thread: Re: Sending a message via Program Linking
  • Next by thread: Re: FindFile (answered)
  • Index(es):
    • Date
    • Thread