folder of
folder of
- Subject: folder of
- From: email@hidden
- Date: Sun, 26 Nov 2000 22:12:34 -0800
Is anyone else having trouble with "folder of" to determine if
a file is a folder? In the following, I get an error that says:
"can't get folder of". The error message then lists the object
and clearly shows "folder:true". I can get other attributes such
as locked or alias, but folder doesn't work. I'm using MacOS 9.04.
on run
set myFolder to (choose folder with prompt ("select folder to process"))
processIt(myFolder)
end run
on processIt(myFolder)
tell application "Finder"
display dialog "Folder: " & myFolder
set myFolder to myFolder as alias
set myFolderContents to list folder myFolder
repeat with x in myFolderContents
set folderText to myFolder as text
set xText to x as text
set thePath to folderText & xText
set theFile to thePath as alias
if folder of (info for theFile) is true then
processIt(theFile)
end if
end repeat
end tell
end processIt