applescript `duration of current track` returns missing value on iTunes Radio

Originator:demosdemon
Number:rdar://15071688 Date Originated:2013-09-24
Status:Closed Resolved:30-Oct-2013 03:22 PM
Product:iTunes Product Version:11.1 (126)
Classification:Other Bug Reproducible:Always
 
Summary:
Refer to rdar://14909973 and https://github.com/lastfm/lastfm-desktop/issues/37

`duration of current track` returns 'missing value' after a new iTunes Radio track starts. Pausing and playing will cause the duration property to be correct.

Steps to Reproduce:
1. Start playing an iTunes Radio station.

2. AppleScript: `tell application "iTunes" to get duration of current track` (Should return missing value unless current track is an advertisement)

3. Press Pause

4. Press Play

5. AppleScript: `tell application "iTunes" to get duration of current track` (should return the correct floating point number)

6. Wait till new track starts

7. repeat 2 through 7

Expected Results:
the duration property of an iTunes Radio current track should return the track length if known

Actual Results:
without the pause/play hack, duration property is missing value

Version:
iTunes 11.1 (126)
OS X 10.9 (13A584)

Notes:
No relevant Console logs.

Configuration:
Always
iTunes 11.1 (126)
OS X 10.9 (13A584)

Attachments:

Duplicates

Number Status Originator Product Title
rdar://15071688 Closed demosdemon iTunes applescript `duration of current track` returns missing value on iTunes Radio

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!