Skip to content

ventura – Use Applescript to set a Music app playlist’s View Options?

  • by

I’m trying to write an Applescript that lets me set up the view options for a playlist, instead of having to click “View (as songs) > Show View Options” and then clicking a bajillion checkboxes & sorting the columns.

I’m hoping for something like this, and I’m stuck:

tell application "Music"
    set thePlaylist to (get name of current playlist)
    set view options of thePlaylist to {show Grouping column:true, show Rating column:true, show Plays column:false}
end tell

I have a ton of playlists, so I’m trying to automate this with an Applescript rather than having to set each one up individually. Is this possible?

Leave a Reply

Your email address will not be published. Required fields are marked *