Scripting: "music" value of new "media kind" property conflicts with "special kind"

Originator:thewevah
Number:rdar://26320785 Date Originated:17-May-2016 08:30 AM CDT
Status:Open Resolved:
Product:iTunes Product Version:iTunes 12.4.0.119
Classification:Other Bug Reproducible:Always
 
Summary:
Scripts similar to:

tell application "iTunes"
	set musicPlaylist to (get some playlist whose special kind is Music)
end tell

no longer work; "Music" is lowercased to "music" and matches a different enum value in the sdef (from the new "media kind" property on track objects).

See: http://dougscripts.com/itunes/2016/05/busted-special-kind-syntax/

Steps to Reproduce:
1. Use the "Music" playlist special kind in an AppleScript.
2. Run the script.

Expected Results:
The script shuould find the Music playlist.

Actual Results:
An error is thrown.

Version:
iTunes 12.4.0.119 (OS X 10.11.5 (15F34))

Notes:
A simple workaround is to use the enum value for the "Music" special kind in the script directly:

tell application "iTunes"
	set musicPlaylist to (get some playlist whose special kind is «class kSpZ»)
end tell

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!