Is it possible to configure TeXshop to automatically run a script on a document at the beginning of the typesetting process? I am interested in having the application run a python script on the document to perform a number of regular expression substitutions, and send the result to TeXShop to typeset.
Slightly more complicated, is it possible to configure TeXShop to do this after expanding any input or include files into the document?
inputandincludes you cannot configure this in texshop. But it shouldn't be too complicated to imitate the behaviour ofinputandincludewithin your python script or to make your script recognize and follow theinputlinks. – Benedikt Bauer Jan 1 at 19:50