• 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
folder of
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: folder of
      • From: JollyRoger <email@hidden>
    • Re: folder of
      • From: Dave Balderstone <email@hidden>
    • Re: folder of
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: (no subject)
  • Next by Date: Scripting additions & Filemaker.
  • Previous by thread: Option-L
  • Next by thread: Re: folder of
  • Index(es):
    • Date
    • Thread