As Simon Pegg remembers, J.J. Abrams just casually offered the comedy actor the role in a straight-forward email. No audition, or fancy schmoozing to get him onboard the Star Trek films, just a simple question. He admits he was “irked” by Abrams methods, but of course he couldn’t say no. After waiting a few days to think it over, Pegg answered and the rest is history! It was a bit of a different story for Star Wars. As he said:
Article source: https://www.cinemablend.com/news/2548108/why-simon-pegg-was-irked-to-be-offered-scotty-in-star-trek