They'll learn just enough to pass the entry test and that'll be the end of it. It's very hard to learn a language, it's even harder to force people to learn it if they don't want to.
Integrating yourself into your country of adoption is very hard, forcing immigrants to learn a minority language would make it even harder. Can you imagine if, say, France asked Syrians refugees to learn Breton instead of French? That would be insane.
But is Scotland really attracting enough immigrants to make that a requirement? If a country isn’t already an attractive spot for immigration, such requirements would effectively bring immigration to a complete and utter stop.
That being said, I find it highly unlikely that there is a country that both has a country with a dying language with enough demand for immigration that immigrants would be willing to revitalize the local language. That combination seems possible, but highly improbable.
Gaelic is only really spoken on the west coast, and even then very sparsely and mainly by older people. I don't like the idea of a language dieing out, but realistically I don't see Gaelic going any other way; any opportunity for a Gaelic renaissance has long since past.
Disclaimer: I'm Scottish
There are a couple of languages that have or are going through this process on mainland Europe, including Occitan, Bavarian, and Franconian. The creation of the modern nation state and globalization have been very hard on non-major languages.
Realistically, it would be a very tough sell to try to cling on any longer - as you mentioned, globalisation has taken a toll on languages. Personally, my father spoke basic Gaelic, and his parents spoke it as a second language to English, so I don't feel particularly sentimental about it.
But that ... is a much bigger ball of wax than just Gaelic.