SageTeX, TeXShop, and Sage.app
I'm trying to get SageTeX to work with TeXShop, but there seems to be a conflict about the name of the application.
TeXShop is able to see sagemath.sty, and Sage was working fine, and then I did the following things:
(0) Quit Sagemath.
(1) Rename Sagemath7.6.app to Sage.app
(2) Followed instructions in Ron Bannon's Embedding Sage in LATEX with SageTEX for TEXShop Users, as follows:
(a) Went to ~/Library/TeXShop/Engines/Inactive/Sage and copied the file sage.engine to ~/Library/TeXShop/Engines/
(b) in Terminal, executed
cd /usr/local/texlive/texmf-local/tex/latex
sudo ln -s /Applications/Sage.app/Contents/Resources/sage/data/texmf/tex/generic/sagetex/sagetex.sty sagetex.sty
sudo mktexlsr
(3) Tried to compile an example of SageTex and seemingly nothing happened. I remembered I was not running Sage, so I started Sage.
(4) Got a pile of python errors in Terminal. Oh no!
(5) Looked at the TeXShop console and discovered an error message saying that Sage had gone missing and it looked like I'd tried to rename the Sage application and that this would Not Work.
(6) Renamed Sage.app to Sagemath-7.6.app.
Now Sage runs fine, but TeXShop says it can't find Sage! Help?