Why is the if/then not being interpreted by Script Editor?
Can someone explain why the if/then isn't being recognized by Script Editor? The error I receive is "Expected “then”, etc. but found unknown token."
tell application "Music"
repeat with theTrack in selection
if artist of theTrack != 'Various Artists' then
set theArtist to (get artist of theTrack)
set comment of theTrack to theArtist
set artist of theTrack to "Various Artists"
set album artist of theTrack to "Various Artists"
end if
end repeat
end tell
TIA,
David
MacBook Pro 13”, macOS 10.15