Tell application next track inside repeat
This format will work:

set apps to {"Spotify", "iTunes"}
repeat with thisApp in apps
    if (thisApp's contents = "Spotify") then
        tell application "Spotify" to next track
    else if (thisApp's contents = "iTunes") then
        tell application "iTunes" to next track
    end if
end repeat