RE: folder of
RE: folder of
- Subject: RE: folder of
- From: Jim Flach <email@hidden>
- Date: Mon, 27 Nov 2000 12:32:27 -0600
Glenn,
The "info for" syntax is not a Finder command. You can remove the tell
application finder commands from your script below and it will work.
on run
set myFolder to (choose folder with prompt ("select folder to
process"))
processIt(myFolder)
end run
on processIt(myFolder)
--tell application "Finder" -- (not needed)
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
Jim Flach
IT Department
TV Guide, Inc.
Phone: 610-293-8584
Fax: 610-293-6218
Email: email@hidden