15

This is an improved version of my previous geeklet that displays the lyrics and updates your iTunes track if no lyrics were present before.

It now queries the three following lyrics providers in this order:

  • azlyrics.com
  • lyrics007.com
  • absolutelyrics.comĀ 

For more scripts to customize geektool, click here

Enjoy!

Geeklet files to download

Comments

User Avatar
scheme 539 days ago
I added some improvements to the script - instead of showing percentage now it shows elapsed vs. total in m:ss/m:ss format, pause is shown as "||" :) and also included remaining time if you would like to use it instead (remaintime).

-----

tell application "System Events"

set myList to (name of every process)

end tell

if myList contains "iTunes" then

tell application "iTunes"

set trackname to name of current track

set artistname to artist of current track

set albumname to album of current track



set trackduration to duration of current track

set trackposition to player position

set trackduration to round (trackduration)

set trackposition to round (trackposition)

set trackremaining to trackduration - trackposition



set tracksec to (trackduration mod 60)

set trackmin to round ((trackduration - tracksec) / 60)

set currentsec to (trackposition mod 60)

set currentmin to round ((trackposition - currentsec) / 60)

set remainsec to (trackremaining mod 60)

set remainmin to round ((trackremaining - remainsec) / 60)



if currentsec < 10 then

set currentsec to "0" & currentsec

else

set currentsec to "" & currentsec

end if



if tracksec < 10 then

set tracksec to "0" & tracksec

else

set tracksec to "" & tracksec

end if



if remainsec < 10 then

set remainsec to "0" & remainsec

else

set remainsec to "" & remainsec

end if



set currenttime to "" & currentmin & ":" & currentsec

set tracktime to "" & trackmin & ":" & tracksec

set remaintime to "" & remainmin & ":" & remainsec



if player state is paused then

set output to "" & artistname & " (" & albumname & ") - " & trackname & " | " & currenttime & "/" & tracktime & " ||"

else

set output to "" & artistname & " (" & albumname & ") - " & trackname & " | " & currenttime & "/" & tracktime

end if



end tell

else

set output to "(iTunes off)" #iTunes is closed



end if
User Avatar
castor_t 518 days ago
Wonderful geeklet, but it's not updating my itunes. I use the Itunes 10 version.
User Avatar
dead0 445 days ago
I love this Geeklet but yes.. it does not update unless I refresh the Geeklet window in System Preferences.. Also the Lyrics display with "" at the head and "" at the end.. is there a way to modify the script to not display these?
User Avatar
ifuxusux 314 days ago
Doesn't work.. Any help?
User Avatar
Luciferasi 310 days ago
Is there a way to split the lyrics into two (or more) columns? It might sound silly but some lyrics can be *really* long, and even with a very small font, some lines will go beyond the monitor height (check the screenshot). Having a way to split the lyrics would be great. Thanks!

&nbsp;

User Avatar
doublextremevil 164 days ago
I have to say, i agree, especially with widescreen monitors nowadays.
User Avatar
spidernet1979 240 days ago
Can anybody help me please. The script doesn't work. No text is displayed.

I also have saved the script as a .sh file and ran it in the shell -&gt; nothing appears. If I ran this script with the debugger extensions -xv I can see that the script found the album and artist, but it does not display it out.

&nbsp;
User Avatar
nBode 131 days ago
Okay... This is really stupid, but..

When I click to open the file, the window that pops up asking if I want to open it with GeekTool is too tall for my screen and the "Yes" option is off-screen to the bottom. I can't click it. How do I get around this?... :/

Log in to comment or register here.