I just tried to start understanding viewtopic.php?f=107&t=13889&start=15 and, well, I failed. Is it even the right direction to go in order to duplicate this typical functionality?
- Code: Select all
tell application "iTunes"
if player state = playing then
--copy (get rating of current track) to trackRating
-- repeat with theTrack in (get selection)
set the rating of current track to ((rating of current track) - 20)
set trackRating to (rating of current track)
tell application "IndigoServer"
set value of variable "iTunesStars" to trackRating / 20
end tell
-- end repeat
end if
end tell
Short version of that code: It's an example of one of several things about iTunes that the iTunes integration doesn't cover. So now I'm wondering how to get and manipulate these values with Python. I get that it's the last "tell" that is the part that has to move to Python. But can I do it all in Python?