Much better handling of individual publications.
Prettier applescript code, use logging for prints.
No need of applescript.