Quite a simple hint which toggles the Finder's list view option to
Show folder sizes using an AppleScript. By saving the script as an application and adding it to the toolbar, you get a simple and fast method to switch on and off "Calculate all sizes" for the frontmost window. Simply paste the following text in the Script Editor and save it as Application (with no startup screen).
tell application "Finder"
if calculates folder sizes of the list view options ¬
of the front window is true then
set calculates folder sizes of the list view options ¬
of the front window to false
else
set calculates folder sizes of the list view options ¬
of the front window to true
end if
end tell
There are many ways to enhance this script:
- Add a nice looking icons (anyone? ;-)
- Implement it as a Finder script somehow, to circumvent starting the Applescript as an application
- switch to list view if view is not selected yet
[
robg adds: I tested it, and it works as described.]