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

Current Track

tell application "iTunes"
	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", "Change"} ¬
	   default button 1
	copy the result as list to {sel_}
	if sel_ is "Change" then
	   set X to choose from list ¬
	       {"Repeat", "Previous", "Next"}
	   if X is false then
	       set a to 5
	   else
	       if "Repeat" is (item 1 of X) then
	           back track
	       else if "Previous" is (item 1 of X) then
	           previous track
	       else
	           next track
	       end if
	   end if
	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