ashugg at mac dot com :: sw :: iTunes-minmax

[ Home | Software ]



(*

Possibly my dumbest AppleScript yet. Tell iTunes to switch between
the 'big' and 'small' browser windows, ie equivalent of clicking the
green button.

    $Id$

Andrew Shugg <ashugg@mac.com> 28/07/2003

*)

set itunes_running to ""

tell application "Finder"
    get (name of processes where name contains "iTunes")
    if the result contains "iTunes" then
        set itunes_running to true
    else
        set itunes_running to false
    end if
end tell

if itunes_running is true then
    tell application "iTunes"
        set theWindow to the front browser window
        get minimized of theWindow
        if result = false then
            set minimized of theWindow to true
        else
            set minimized of theWindow to false
        end if
    end tell
end if





[ Home | Software ]




Valid HTML 4.01!

http://homepage.mac.com/ashugg/sw/iTunes-minmax.html
Last modified: Tue Aug 31 20:49:45 WST 2004