How do I create a "ps." file containing my hand written code on a mac?
I want to draw mathematical pictures by writing postscript code. I've done this on my windows machine. The text editors on my mac will not let me save a file as a ".ps" file. I tried the advice given by apple support, of selecting "save to .ps" in the print menu, but this does not produce a ".ps" file containing my code. It produces a ".ps" file that contains code for producing a page containing my code, so when I view it I just see my code "200 200 moveto", etc., instead of the picture the code is supposed to draw. Any help?
iMac, iOS 9.3.2