Open demosdemon opened 10 years ago
rdar://14909973 (not on openradar because radar was filed before 11.1 was public)
Hello. Thanks for this! There's also an AppleScript script baked into the binary that has problems. I've changed it as per your suggestion, but it's still not working. Here it is:
tell application "iTunes"
try
set L to location of current track
set L to POSIX path of L
on error
set L to ""
end try
return artist of current track & "
" & album artist of current track & "
" & album of current track & "
" & name of current track & "
" & ((duration of current track) as integer) & "
" & L & "
" & persistent ID of current track & "
" & podcast of current track & "
" & video kind of current track
end tell
It's been noted that the problem goes away after pausing and resuming the current track, which seems odd. Anyway, any help you have on this would be great.
There are also problems in the Windows version of the Last.fm app when iTunes Radio tracks play. The Last.fm app is crashing for some users, which is of course a Last.fm problem (and AppleScript is not used there), but perhaps it has the same root cause on the iTunes side.
it seems duration of current track
returns missing value
on iTunes Radio (but funnily enough, not on an advertisement) which causes AppleScript to throw an error on conversion to an integer. duration of current track
is not missing value
after the pause/play hack.
As for windows, I'll need to dust off my windows vm and check out the COM interface
applescript duration property rdar://15071688
I received an update from Apple. I will test myself later this evening when I get home unless someone confirms its fix before then.
This is a follow-up regarding Bug ID# 15071688.
Engineering has provided the following:
We believe this issue has been addressed in iTunes 11.1.2.
Please test with this release, and update your bug report with the results.
iTunes 11.1.2 Posted Date: October 22, 2013 http://www.apple.com/itunes/download/
I'm also unable to scrobble my itunes radio tracks.
Using itunes version: 11.1.3.8
Am surprised that this bug has not been fixed till now.
Does this also apply to other radio streams manually entered in iTunes? Would love to have this also scrobbled. I get a notification of song change in Notification Center.
iTunes 11.1 GM was released last week. I've been holding out on reporting this to verify if it still doesn't work.
The applescript for OSX to get the current track on iTunes Radio doesn't work. For some reason, and this may need to be filed as a radar,
current track
cannot be dereferenced when stored in a variable.So, as written currently in
/plugins/iTunes/scripts/currentTrack.scpt
, theset t to current track
is fine under normal circumstances, but when current track is an iTunes Radio, theget <property> of <variable>
fails. Replacing<variable>
in all the get statements withcurrent track
returns the expected results.