使用Applescript在iTunes中获取流媒体曲目的歌曲名称

nac*_*o4d 9 macos applescript itunes

当此曲目是收音机时,如何在iTunes中获取当前曲目的歌曲名称?

我的意思是出现在收音机名称正下方的字符串:)

在此输入图像描述

在下面查询它的名字给了我radio(Trance Channel - DIGGITALLY IMPORTED - we can't define it!)的名字但不是歌曲的名字

tell application "iTunes"
    set thisTrack to current track
    set trackName to the name of thisTrack
    set trackTime to thisTrack's time
end tell
Run Code Online (Sandbox Code Playgroud)

这是预期的,因为我的库中的信息是: 在此输入图像描述 但有没有办法专门处理这些流媒体曲目?并像第一张图片中的iTunes一样正确获取他们的信息?我知道当前的音轨是一个收音机,因为它的时间将是,missing value而不是形式,MM:SS如果这有点帮助.

这可能吗?

reg*_*633 8

我查看了苹果脚本词典中的iTunes并搜索了"流"...

tell application "iTunes"
    current stream title
end tell
Run Code Online (Sandbox Code Playgroud)