Enrico Franchi Homepage

Questo sito è obsoleto. La nuova versione di questa pagina è disponibile presso akropolix

This site is old. The new version of this page is available on akropolix

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
xhtml 1.1 CSS 2.1 RSS 2.0
Made with a Mac Made with BBEdit Made with Brain

All documentation is under FDL and all source code is under BSD, unless differently stated.

24-mar-06