Impossible to set media kind to TV show via AppleScript

Originator:hendrik.schreiber
Number:rdar://27636342 Date Originated:8/1/2016
Status:Closed Resolved:No
Product:iTunes Product Version:12.4.2.4
Classification:Bug Reproducible:Always
 
Summary:
When trying to set the property "media kind" to "TV show" via AppleScript, one always gets the error message:

error "iTunes got an error: That’s an incorrect enumerated value for that property." number -10023

Steps to Reproduce:
Run the script:

tell application "/Applications/iTunes.app"
	set media kind of file track id 35994 of library playlist id 30313 of source id 64 to TV show
end tell

Before running, replace the ids with the ids of some video file.

Expected Results:
The media kind should simply be changed to "TV show".

Actual Results:
Error message:

error "iTunes got an error: That’s an incorrect enumerated value for that property." number -10023

Version:
iTunes 12.4.2.4

Notes:


Configuration:
OS X 10.10.5, MacBook Pro (Retina, 15-inch, late 2013)


Duplicate of https://openradar.appspot.com/26552536

Comments

iTunes 12.4.3.1

The problem persists in iTunes 12.4.3.1 (OS X 10.10.5).

By hendrik.schreiber at Aug. 2, 2016, 6:33 a.m. (reply...)

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!