I test a little OSX app based on this example which use a bridge to AppleScript to get simple infos from iTunes.
Like I said in the ComboDrums's comment (it's me), I have a script to get all my iTunes playlists in a tree but as soon as the return is more complex than a simple string, it fails.
So I'm looking for the way to convert the AppleScript's list returned to a Swift friendly object.
Any idea ?
Thx.
Script:
to getStaticPlaylistsTree()
tell application "iTunes"
set theList to {{theName:"Bibliothèque", theID:"66270731FDBE2C50", isFolder:false, theClass:library playlist, isSmart:false, theCount:37581}, {theName:"Clips vidéo", theID:"07D5032B96891D67", isFolder:false, theClass:user playlist, isSmart:true, theCount:283}}
end tell
return theList
end getStaticPlaylistsTree