I'd like to enhance the pdflatexmk engine to delete the files afterwards. I'm coming from Automatically "Trash Aux Files" after successful typesetting in TeXShop, where the instruction is to write a Python file that does execute "pdftex", and then delete every other file ex-post.
However, I'm unaware in how I may call different texshop "engines". That is, instead of doing
command = '/usr/texbin/pdflatex ' + '--output-driver=/usr/texbin/xdvipdfmx ' + OUTPUT_ARGUMENT + '"' + output_dir + '"' + ' ' + '"' + pdf_path + os.path.sep + tex_file + '"'
Since I'm saving my file in the
/Engine folder, I thought I could simply
instead - But this gives
Traceback (most recent call last): File "/Volumes/Stuff/user/Library/TeXShop/Engines/pdflatexmk_del.py", line 43, in <module> execfile("pdflatexmk.engine") IOError: [Errno 2] No such file or directory: 'pdflatexmk.engine'