• 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: More files and subfolders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More files and subfolders


  • Subject: Re: More files and subfolders
  • From: Bill Briggs <email@hidden>
  • Date: Mon, 14 May 2001 13:19:51 -0300

At 10:23 AM -0500 14/05/01, T.J. Mahaffey wrote:
What am I doing wrong?

No recursive call. Here's the handler I suggested you look at. Note that it has a recursive call, that is, it calls itself. You just adapt the idea to your own handler to "walk" the subfolders. (Or you could use Jon's Commands to walk the folders.) But this keeps it Plain Vanilla AppleScript.

- web

on dumpFiles(whatsPassed)
tell application "Finder"
delete every file of whatsPassed
set folderContents to (every item of whatsPassed)
repeat with anItem in folderContents
my dumpFiles(anItem)
end repeat
end tell
end dumpFiles


References: 
 >More files and subfolders (From: "T.J. Mahaffey" <email@hidden>)

  • Prev by Date: Re: checking values in property problem
  • Next by Date: Re: More files and subfolders
  • Previous by thread: More files and subfolders
  • Next by thread: Re: More files and subfolders
  • Index(es):
    • Date
    • Thread