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

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


  • Prev by Date: closing MSWord files
  • Next by Date: *PDF script
  • Previous by thread: Re: folder of
  • Next by thread: Re: folder of
  • Index(es):
    • Date
    • Thread