iTunes 12.2 "current track" Apple Script property returns error when playing from Apple Music
| Originator: | davearter | ||
| Number: | rdar://21762436 | Date Originated: | 2015/07/10 |
| Status: | Duplicate of 21624287 (Open) | Resolved: | NO |
| Product: | iTunes | Product Version: | 12.2.0.145 |
| Classification: | Reproducible: | Always |
Summary:
When playing a track from Apple Music in iTunes 12.2, attempts to access the current track via Apple Script results in a -1728 error.
Smallest test case script to illustrate problem:
tell application "iTunes"
display alert "Current track name" message {get name of current track}
end tell
Steps to Reproduce:
1. Start playing a track from the 'For You' or 'New' sections of Apple Music in iTunes 12.2
2. Run provided script which should display an alert with the track's name
Expected Results:
An alert message should pop up that contains the name of the track being played.
Actual Results:
An Apple Script error is generated:
error "iTunes got an error: Can’t get name of current track." number -1728 from name of current track
Version:
iTunes 12.2.0.145 on OS X Yosemite 10.10.4 (14E46)
Notes:
Configuration:
This occurs on all configurations when using iTunes 12.2.
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!