Posts

Post not yet marked as solved
0 Replies
607 Views
My app uses ScriptingBridge and "com.apple.iTunes.playerInfo" distributed notifications to show and play local user library and Apple Music tracks via iTunes and Music.app. Handling local library files works nicely but working with Apple Music tracks is a bit harder it seems. Unlikely for local tracks for the Apple Music items  getting the MusicApplication properties like currentTrack or currentPlaylist gives back the error "Scripting Bridge event error 'Error Domain=NSOSStatusErrorDomain Code=-1731 "errAEUnknownObjectType: available only in version 1.0.1 or greater " UserInfo={ErrorNumber=-1731}'"  luckily i can get at least the basic information of the currently played  track watching the "com.apple.iTunes.playerInfo" notification but that info does not contain the ArtWork reference of the track (yes, it has the persistentID but i cannot use it because of the frist problem, also, it has only an "internal" store reference URL like "Store URL" = "itmss://itunes.com/album?p=604770232&i=604771092"; that i also cannot use to get the artwork My questions are: how can i get the currently played Apple Music track  data directly (like by using currentTrack or currentPlaylist properties for the local library items)  how can i get the ArtWork data for the currently played Apple Music track (Please note, I'd like achive this without using Apple Music API.) TIA!
Posted
by Hofi.
Last updated
.