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


Click here to return to the 'Minimize all Finder windows at login via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Minimize all Finder windows at login via AppleScript
Authored by: michelle_eris on Jan 02, '07 08:53:52AM

An even easier way to do this is this one-liner:
tell application "Finder" to set the collapsed of windows to true



[ Reply to This | # ]
Minimize all Finder windows at login via AppleScript
Authored by: Skeeve on Jan 02, '07 09:13:31AM

;-) Better than mine... I started before you posted but then was disturbed for quite a while.



[ Reply to This | # ]
Minimize all Finder windows at login via AppleScript
Authored by: meanbone on Jan 02, '07 12:30:13PM

Yea, this works!
When I was working on this script, I think I found a similar method. However, I didn't like how it closed one window at a time. I thought, that while closing each window, it could interfere with other startup processes or scripts that are firing.

So I settled on the posted solution (command-option-m) since it did all the windows at one time with one command, very quickly.

mb.



[ Reply to This | # ]
Minimize all Finder windows at login via AppleScript
Authored by: n1mie on Jan 02, '07 07:22:38PM

This is a much more elegant solution than the original. I am surprised that you don't need to use the word 'every' in the command somewhere, but it works flawlessly.

Thanks a lot!

---
--Chip



[ Reply to This | # ]
Minimize all Finder windows at login via AppleScript
Authored by: michelle_eris on Jan 03, '07 01:59:08PM

A little known feature of Applescript is that making a plural of something is the same as prepending "every" to it. Therefore, "windows" is the same as "every window". In fact, if you run my script and look in the log, "windows" in the scriopt will be expanded to "every window" in the log.



[ Reply to This | # ]