iTunes 应用程序允许将曲目标记为“随机播放时跳过”,这意味着当 iPod 处于随机播放模式时,它将永远不会播放。
可以设置智能播放列表,按流派、播放次数、上次播放时间等查找所有曲目,但似乎没有简单的方法来查看哪些曲目被标记为“随机播放时跳过”。
有人知道我该如何查询这些信息吗?
答案1
如果你使用的是 Mac OS X,你可以尝试以下 AppleScript。它会找到你所选源的所有不可随机播放的曲目,并将它们放入一个新的“哑”播放列表中。
如果您使用的是 Windows,那么也许您可以将此脚本的“逻辑”调整为您手头上的任何 COM 语言。请参阅Windows 解决方案部分的Doug 的 iTunes AppleScript。
我没有 iPod,所以我无法使用 iPod 曲目进行测试,但它确实能在我的普通库中找到“不可随机播放”的曲目。
-- Pick a source (main library/iPod)
tell application "iTunes" to set allSources to sources
set possibleSources to {}
repeat with aSource in allSources
using terms from application "iTunes"
if kind of aSource is in {library, iPod, device} then -- shared library, unknown
set end of possibleSources to contents of aSource
end if
end using terms from
end repeat
set sourceStrs to {}
set n to 1
repeat with aSource in possibleSources
using terms from application "iTunes"
tell aSource to set end of sourceStrs to "" & n & ". " & name & " (" & id & "/" & persistent ID & ")"
end using terms from
end repeat
choose from list sourceStrs without multiple selections allowed
set theSourceStr to first item of result
text 1 through ((offset of "." in theSourceStr) - 1) of theSourceStr as integer
set theSource to item result of possibleSources
-- Make a new (dumb) playlist to hold the found tracks
tell (current date) to ¬
set playlistName to "Unshuffables on " & short date string & " at " & time string
using terms from application "iTunes"
tell theSource to set unshuffablesPlaylist to make new playlist with properties {name:playlistName}
end using terms from
-- Find all "unshuffable" tracks and add them to the new playlist.
using terms from application "iTunes"
repeat with aPlaylist in library playlists of theSource
duplicate (tracks of aPlaylist whose shufflable is false) to unshuffablesPlaylist
end repeat
end using terms from