Quick Command
tell application "iTunes"
display dialog "Pause/Resume" buttons {"OK", "Other"} ¬
default button 1
copy the result as list to {sel_}
if sel_ is "Other" then
set X to choose from list ¬
{"Stop", "Previous", "Next", "Infos"}
if X is false then
set a to 5
else
if "Previous" is (item 1 of X) then
previous track
else if "Next" is (item 1 of X) then
next track
else if "Stop" is (item 1 of X) then
stop
else
try
set current_ to current track
end try
set str_ to "Artist:" & ¬
artist of current_ & "
Title: " & name of current_ & "
Album: " & album of current_
display dialog str_ buttons {"OK"} ¬
default button 1
end if
end if
else
playpause
end if
end tell
back
All documentation is under FDL and all source code is under BSD,
unless differently stated.
Copyright Enrico Franchi © 2005
24-mar-06