Re: More files and subfolders
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