Recursion Problems
Recursion Problems
- Subject: Recursion Problems
- From: Rich Fortnum <email@hidden>
- Date: Mon, 28 Jan 2002 19:48:18 -0500
Well, the rash is acting up once again.
Recursion has hit a brick wall.
>
on parseItem(myParent)
>
tell application "Finder"
>
set theNumItems to the count of items in myParent -- tried the number of items
in myParent, but that didn't work for some reason
>
end tell
>
>
repeat with i from 1 to theNumItems
>
tell application "Finder"
>
set subItem to item i of myParent
>
>
if kind of subItem = "folder" then
>
set continueProc to true
>
else
>
set continueProc to false
>
end if
>
>
>
if continueProc = true then
>
parseItem(subItem)
>
else
>
blah blah blah ... Whatevah
This ain't workin. How come? I could possibly see a problem with variables
being overwritten here, and therefore the progress through a folder housing
nested folders, becoming messed up. It won't go into the second nested
folder right now.
Just trying to get a list of all files in a CD, with the 4 parameters:
Disc Name
URL (path)
Filename
Physical Size
Trying to put into text editor so I can mess with it some special way.
Any help appreciated.
Cheers.
@@@ Rich Fortnum / Viaduct Productions / Toronto (EST)
@@@ Web Design / Databases / Internet Video / Wireless Data
@@@ email@hidden /
http://www.viaduct-productions.com