Puoi eseguire uno script come questo in Script Editor per cambiare la modalità di visualizzazione di tutte le playlist esistenti:
tell application "iTunes"
user playlists whose special kind is none and smart is false
repeat with p in result
set view of browser window 1 to p
tell application "System Events" to tell process "iTunes"
click menu item "Songs" of menu 1 of menu item "View As" of menu 1 of menu bar item "View" of menu bar 1
end tell
end repeat
end tell
Non so come cambiare la modalità di visualizzazione predefinita per le nuove playlist, ma io uso uno script come quello qui sotto per creare la maggior parte delle nuove playlist. Richiede GNU xargs
e readlink
che puoi installare eseguendo brew install findutils coreutils
.
osascript -e'on run {a}
set l to {}
repeat with f in (get paragraphs of a)
set end of l to POSIX file f
end repeat
tell application "iTunes"
if number of l is 1 then
tell application "Finder" to set n to name of (item 1 of l as alias)
delete playlists whose name is n
set p to make new user playlist with properties {name:n}
else
set p to make new user playlist
end if
with timeout of 0 seconds -- don't exit with an error if the add command takes over 20 seconds
add l to p
end
set view of browser window 1 to p
tell application "System Events" to tell process "iTunes"
click menu item "Songs" of menu 1 of menu item "View As" of menu 1 of menu bar item "View" of menu bar 1
end tell
end tell
end run' "$(printf %s\n "${@-$(cat)}"|gxargs -rd\n greadlink -f)"