John Swinney also set his party the immediate task of "wining a majority of seats in the Scottish Parliament" in next May's Holyrood elections.