在OSX上使用AppleScript从iTunes资料库中删除歌曲(URL)

时间:2012-11-30 22:27:04

标签: streaming applescript itunes

我通过AppleScript控制iTunes,并且正在向主库添加URL(通过open location "http://...")。

有没有办法使用AppleScript从库中删除该条目?该URL非常独特,因此我不担心删除用户的其他条目。

1 个答案:

答案 0 :(得分:0)

尝试:

tell application "iTunes"
    set myUrls to get every URL track
    repeat with aUrl in myUrls
        if (aUrl's address as text) starts with "http://shiva.6o4.net:" then delete aUrl
    end repeat
end tell
相关问题