Applescript to process latex file