Is there some way to automatically fire the "Trash Aux Files" command after successful typesetting in TeXShop, without manual action on the part of the user?
Though there may well be a cleaner method that I am not aware of, I have found that the following serves the same function. Note that the following will process the document using XeLaTeX, but can be customized to suit.
Next, instruct TeXShop to use this file. One way of doing so is, in the
Now, after processing a file using the
Lastly, as noted in the comments to the original question, this can cause problems if these files must be referred to again, and the script should not be used in such cases.
In addition to Кигава Енсеи's answer for typesetting with the xelatex engine, below minor alteration works perfectly in TeXShop using pdflatex for typesetting
You could add an alias to a script like this in you're on Mac or Linux: