Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An AppleScript to toggle 'Calculate folder sizes'' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to toggle 'Calculate folder sizes'
Authored by: macslut on May 13, '04 10:34:34PM
Ok, I answered my own question and updated the latest script:


tell application "Finder"
	set current view of Finder window 1 to list view
	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
		set sort column of list view options of the front window to name column		
	else
		set calculates folder sizes of the list view options ¬
			of the front window to true
		set sort column of list view options of the front window to size column
	end if
end tell
This now switches to list view and sorts by size and then toggles back to sorting by name.

[ Reply to This | # ]