 Between 1967 and 1970, Farm took charge of Dunfermline, with whom he won 51 out of 107 league games, in addition to winning the Scottish Cup in 1968 and guiding them to the semi-finals of the resulting 1969 UEFA Cup Winners' Cup campaign.Dunfermline lost by one goal on aggregate to eventual winners Slovan Bratislava (Slovan beat FC Barcelona in the final).This is the greatest achievement in Dunfermline's history, surpassing even that of Jock Stein's time at the club.