Hey boys, i have gotten a cool script for itunes on ur desktop.
alright.
Copy and paste this into a text file (use text edit) and save it as "iTunesInfo.scpt" ( i edited it a bit :P )
---------------------------
tell application "System Events"
set powerCheck to ((application processes whose (name is equal to "iTunes")) count)
if powerCheck = 0 then
return ""
end if
end tell
tell application "iTunes"
try
set playerstate to (get player state)
end try
if playerstate = paused then
set trackPaused to " (paused, you must be watchin an edit)"
else
set trackPaused to ""
end if
if playerstate = stopped then
return "Why aint music playin?"
end if
set trackID to the current track
set trackName to the name of trackID
set artistName to the artist of trackID
set albumName to the album of trackID
set totalData to "Track : " & trackName & trackPaused & "
Artist : " & artistName & " " & albumName
return totalData
end tell
-------------------------
if you care about the album then use this script vvv
--------------------------------------------------------
tell application "System Events"
set powerCheck to ((application processes whose (name is equal to "iTunes")) count)
if powerCheck = 0 then
return ""
end if
end tell
tell application "iTunes"
try
set playerstate to (get player state)
end try
if playerstate = paused then
set trackPaused to " (paused, you must be watchin an edit)"
else
set trackPaused to ""
end if
if playerstate = stopped then
return "Why aint music playin?"
end if
set trackID to the current track
set trackName to the name of trackID
set artistName to the artist of trackID
set albumName to the album of trackID
set totalData to "Track : " & trackName & trackPaused & "
Artist : " & artistName & "
Album : " & albumName
return totalData
end tell
-----------------------------
(if they dont work, tell me, i kinda edited them here so i havent tesed them)
Then make a shell with this
osascript /Users/derekzigrossi/documents/geektool/iTunesInfo.scpt
You have to change the names and the directory to match where you saved the iTunesInfo.scpt as u can see my name is Derek and i saved it in a file named "geektool" in my documents folder. just edit that a bit and throw it into a shell
Good luck
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Lucida Grande}