Couldn't be bothered to read all the pages, but i saw some people in need of itunes codes
Itunes Ratings with Stars (Includes 1/2 ratings)
Song Name - Artist Name - Album
Itunes Rating with words, (easily changeable if you know simple applescript)
Enjoy
Itunes Ratings with Stars (Includes 1/2 ratings)
Code:
set newline to ASCII character 10
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)"
else
set trackPaused to ""
end if
if playerstate = stopped then
return "Stopped"
end if
set trackID to the current track
set stars to the rating of trackID
if stars = 0 then
set stars to "No Rating" as text
end if
if stars = 10 then
set stars to "☆" as text
end if
if stars = 20 then
set stars to "★" as text
end if
if stars = 30 then
set stars to "★☆" as text
end if
if stars = 40 then
set stars to "★★" as text
end if
if stars = 50 then
set stars to "★★☆" as text
end if
if stars = 60 then
set stars to "★★★" as text
end if
if stars = 70 then
set stars to "★★★☆" as text
end if
if stars = 80 then
set stars to "★★★★" as text
end if
if stars = 90 then
set stars to "★★★★☆" as text
end if
if stars = 100 then
set stars to "★★★★★" as text
end if
set totalData to stars & ""
return totalData
end tell
Song Name - Artist Name - Album
Code:
set the_string to ""
tell application "iTunes"
if player state is playing then
set the_string to "" & name of current track & ""
if artist of current track is not "" then
set the_string to the_string & " - " & artist of current track
end if
if album of current track is "" and year of current track is 0 then
set the_string to the_string
else if album of current track is not "" and year of current track is not 0 then
set the_string to the_string & " (" & album of current track & ", " & year of current track & ")"
else if year of current track is not 0 then
set the_string to the_string & " (" & year of current track & ")"
else if album of current track is not "" then
set the_string to the_string & " (" & album of current track & ")"
end if
else
set the_string to "Not Playing"
end if
end tell
return the_string
Itunes Rating with words, (easily changeable if you know simple applescript)
Code:
set newline to ASCII character 10
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)"
else
set trackPaused to ""
end if
if playerstate = stopped then
return "Stopped"
end if
set trackID to the current track
set stars to the rating of trackID
if stars = 0 then
set stars to "Rate Me Aye?" as text
end if
if stars = 10 then
set stars to "Pfft" as text
end if
if stars = 20 then
set stars to "Come On" as text
end if
if stars = 30 then
set stars to "Ehh" as text
end if
if stars = 40 then
set stars to "Average" as text
end if
if stars = 50 then
set stars to "Almost There" as text
end if
if stars = 60 then
set stars to "It's Alright Aye" as text
end if
if stars = 70 then
set stars to "Wow" as text
end if
if stars = 80 then
set stars to "Keep It Loud" as text
end if
if stars = 90 then
set stars to "Excellent" as text
end if
if stars = 100 then
set stars to "****en Ace" as text
end if
set totalData to stars & ""
return totalData
end tell
Enjoy