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

Minimize windows in slow motion via hot screen corner Desktop
Do you like the slow motion effect on minimization, but do not like to hold the Shift key every time you do it -- and you dislike double-clicking the title bar when you want to minimize a window? If so, then take a look at the following AppleScript. I use this AppleScript with CornerClick, which is a (free) utility that lets you assign actions, including running AppleScripts, to the corners of your screen.

With the following Applescript, you can trigger a "Minimize with slow motion effect." Assign it to a corner using CornerClick, and you can minimize a window in slow motion with a flick of the mouse. Here's the script:
tell application "System Events"
  keystroke "m" using command down
  key down shift
  delay 0.3
  key up shift
end tell

tell application "System Events"
  set proc to name of the first process whose frontmost is true
  tell process proc
    -- add error trapping here
    tell its window 1
      set w to its name
      if get value of attribute "AXMinimized" is false then
        tell application "System Events"
          keystroke "m" using command down
          key down shift
          delay 0.3
          key up shift
        end tell
      end if
    end tell
    --
  end tell
end tell

say "Collapse" using "Alex"
You'll see the script tries to minimize twice, as sometimes OS X does not react on the first try with CornerClick. It also provides audio feedback when it's done. Try it out if you like; it's just a visual effect, nothing more.

[robg adds: I haven't tested this one.]
    •    
  • Currently 2.56 / 5
  You rated: 2 / 5 (18 votes cast)
 
[6,058 views]  

Minimize windows in slow motion via hot screen corner | 1 comments | Create New Account
Click here to return to the 'Minimize windows in slow motion via hot screen corner' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Minimize windows in slow motion via hot screen corner
Authored by: cliveports on Dec 10, '09 07:09:46AM

Nice idea but according to Cornerclick's site; it's Mac OS X 10.5 only, so no snow leopard support?



[ Reply to This | # ]