The way to a TeX's heart is through TeXShop.
One of these lines may be inserted as the first line of the program to instruct TeXShop to chose a specific typesetting mode.
%!TEX TS-program = xetex %!TEX TS-program = latex %!TEX TS-program = pdftex
Older command generic setting:
%&latex