Total Number of Files/Folders?
Sounds like a very basic thing but I can't seem to figure it out on the iMac, please help people!!!
iMac 21.5, Mac OS X (10.6.5)
iMac 21.5, Mac OS X (10.6.5)
Niel wrote:
Open the AppleScript Editor in the /Applications/Utilities/ folder and run:
tell application "Finder"
{count files of entire contents of (selection as alias), count folders of entire contents of (selection as alias)}
end tell
(56027)
Niel wrote:
2. Try using:
on open this_item
tell application "Finder"
set theText to "File count: "& count files of entire contents of this_item & return & "Folder count: "& count folders of entire contents of this_item
display dialog theText buttons "OK" default button "OK"
end tell
end open
saved as an application.
(56030)
I just tried selecting 3 folders at once and running the script to count the files and folders but it said Script Error?
Is there a way to count a large quantity of files and folders easily like Windows within a folder directory?
aznblaze wrote:
Niel wrote:
2. Try using:
on open this_item
tell application "Finder"
set theText to "File count: "& count files of entire contents of this_item & return & "Folder count: "& count folders of entire contents of this_item
display dialog theText buttons "OK" default button "OK"
end tell
end open
saved as an application.
(56030)
aznblaze wrote:
Niel wrote:
Open the AppleScript Editor in the /Applications/Utilities/ folder and run:
tell application "Finder"
{count files of entire contents of (selection as alias), count folders of entire contents of (selection as alias)}
end tell
(56027)
Total Number of Files/Folders?