(*
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
NOTE: While this site was written with the intent of being readable on pretty much any browser or other Internet device, if you can see this message then your browser is missing cascading style sheets (CSS) and/or has poor support for HTML4, which are established web standards.
Please consider upgrading your browser to a standards-compliant version. More information is available at The Web Standards Project's BROWSER UPGRADE initiative.
But if you won't, or can't, sort this little problem out: don't come whinging to me about how the site looks!