<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Michael,<div class=""><br class=""></div><div class="">I downloaded python3 from <a href="https://www.python.org" class="">https://www.python.org</a> , I made your suggested changes to the two .py files and then I got a new message that command line tools were missing, so I downloaded and installed the tools. (It was supposedly only about 150 MB in size, but it took well over 30 minutes to download them on my fiber line and install them — really slow.) Now the Typeset script works properly assuming that there are no errors in the .tex file. However, if there is an error in the .tex file, instead of the scripts reporting my .tex error as usual, a dialogue box pops up with this message: "Error parsing the log file. It may not exist (parse_log.py)”. Did you have this problem as well? The Typeset script is essentially crippled if it can’t report .tex errors.</div><div class=""><br class=""></div><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">I also tried the "Open pdf” script and that works normally.</span></div><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class=""></span></div><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">The error message is coming from typeset-lib.scpt:</span></div><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class=""></span></div><div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""></span></font></div><blockquote type="cite" class=""><div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class="">try<br class=""> set shell_result to do shell script quoted form of (resource_path & "parse_log.py") & parse_options & </span></font><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">(</span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">quoted form</span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""> </span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">of</span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""> </span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">log_file</span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">)</span></div><div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class="">on error<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>error "Error parsing the log file. It may not exist (parse_log.py)" number 5033</span></font></div><div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class="">end try<br class=""></span></font></div></blockquote><div class=""><font color="#000000" class=""></font><br class=""></div><div class=""><br class=""></div><div class="">Richard<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jul 31, 2022, at 6:02 PM, Michael Sharpe via MacOSX-TeX <<a href="mailto:macosx-tex@email.esm.psu.edu" class="">macosx-tex@email.esm.psu.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">For my python 3 setup, I was able to correct parse_log.py and directives.py by changing the first line to<br class=""><br class="">#!/usr/bin/env python3<br class=""><br class="">and changing each print statement to enclose the argument in parentheses.<br class=""><br class="">I also stumbled over a problem with the Check LaTeX Semantics script which incorrectly parses error lines containing "User Regex". Perhaps that may be fixed with a different set of options.<br class=""><br class="">To answer your other question, the scripts that Herb referred to earlier do indeed provide full backward and forward synching between BBEdit and the TeXShop pdf previewer. Make sure to follow the setup directions with care.<br class=""><br class="">Michael<br class=""><br class=""><blockquote type="cite" class="">On Jul 31, 2022, at 3:27 PM, Richard Seguin <<a href="mailto:riseguin@earthlink.net" class="">riseguin@earthlink.net</a>> wrote:<br class=""><br class="">[This message from Adam did come through directly to my Mail, so maybe my ISP finally got the message that this is not spam.]<br class=""><br class="">Adam,<br class=""><br class="">Thanks for the link to the download! I might install it, at least on a temporary basis, while I’m looking into the migration issue. There is a unix executable in usr/bin called python3, although it’s only about 12 KB in size. I don’t know what this is — just a placeholder of sorts perhaps? I’m not sure if there used to be a file called python or python2 in that spot since I did not look before the upgrade to the operating system. <br class=""><br class="">The integration scripts by Nathan Grigg involves two python files, as far as I’ve discovered so far: parse_log.py and directives.py. Both of these files begin with "#!/usr/bin/python”. As an experiment, with BBEdit I temporarily changed both of these lines to "#!/usr/bin/python3” and I got beyond the original error message to yet another one.<br class=""><br class="">Richard<br class=""><br class=""><blockquote type="cite" class="">On Jul 31, 2022, at 4:12 PM, Adam R. Maxwell via MacOSX-TeX <<a href="mailto:macosx-tex@email.esm.psu.edu" class="">macosx-tex@email.esm.psu.edu</a>> wrote:<br class=""><br class=""><br class=""><blockquote type="cite" class="">On Jul 31, 2022, at 10:49 , Richard Seguin <<a href="mailto:riseguin@earthlink.net" class="">riseguin@earthlink.net</a>> wrote:<br class=""><br class="">The scripts are an interdependent mix of AppleScript and Python scripts. Apparently in 12.3, Apple removed Python 2 leaving the more secure Python 3, and the removal of Python 2 broke everything. On attempting to typeset I would get the following error message:<br class=""></blockquote><br class="">Correction: Apple never shipped Python 3, so there is no longer any version of Python shipped with OS X. Your easy button here is to install Python 2 using the installer package here:<br class=""><br class=""><a href="https://www.python.org/downloads/release/python-2718/" class="">https://www.python.org/downloads/release/python-2718/</a><br class=""><br class="">Caveats about Python 2 being unmaintained, less secure, etc apply, and migrating to Python 3 is probably a good idea. You can also find a binary installer for Python 3 at python.org. Apple ships a lobotomized Python 3 with its developer tools, but don't rely on it for general usage.<br class=""><br class="">Adam<br class=""><br class="">----------- Please Consult the Following Before Posting -----------<br class="">TeX FAQ: http://www.tex.ac.uk/faq<br class="">List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/<br class="">List Archives: http://dir.gmane.org/gmane.comp.tex.macosx<br class=""> https://email.esm.psu.edu/pipermail/macosx-tex/<br class="">TeX on Mac OS X Website: http://mactex-wiki.tug.org/<br class="">List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex<br class=""></blockquote><br class="">----------- Please Consult the Following Before Posting -----------<br class="">TeX FAQ: <a href="https://urldefense.com/v3/__http://www.tex.ac.uk/faq__;!!Mih3wA!HiVpFrpiObnEyfNjGKfCXouCYyFRSW2Fgo7AHNqXbtk44pI_-PEW_VGqZy65pwm7OZTIOLCG3LfGUZtdL2s$" class="">https://urldefense.com/v3/__http://www.tex.ac.uk/faq__;!!Mih3wA!HiVpFrpiObnEyfNjGKfCXouCYyFRSW2Fgo7AHNqXbtk44pI_-PEW_VGqZy65pwm7OZTIOLCG3LfGUZtdL2s$</a> <br class="">List Reminders and Etiquette: <a href="https://urldefense.com/v3/__https://sites.esm.psu.edu/*gray/TeX/__;fg!!Mih3wA!HiVpFrpiObnEyfNjGKfCXouCYyFRSW2Fgo7AHNqXbtk44pI_-PEW_VGqZy65pwm7OZTIOLCG3LfG_4gdtO0$" class="">https://urldefense.com/v3/__https://sites.esm.psu.edu/*gray/TeX/__;fg!!Mih3wA!HiVpFrpiObnEyfNjGKfCXouCYyFRSW2Fgo7AHNqXbtk44pI_-PEW_VGqZy65pwm7OZTIOLCG3LfG_4gdtO0$</a> <br class="">List Archives: <a href="https://urldefense.com/v3/__http://dir.gmane.org/gmane.comp.tex.macosx__;!!Mih3wA!HiVpFrpiObnEyfNjGKfCXouCYyFRSW2Fgo7AHNqXbtk44pI_-PEW_VGqZy65pwm7OZTIOLCG3LfGb0dE7vA$" class="">https://urldefense.com/v3/__http://dir.gmane.org/gmane.comp.tex.macosx__;!!Mih3wA!HiVpFrpiObnEyfNjGKfCXouCYyFRSW2Fgo7AHNqXbtk44pI_-PEW_VGqZy65pwm7OZTIOLCG3LfGb0dE7vA$</a> <br class=""> <a href="https://urldefense.com/v3/__https://email.esm.psu.edu/pipermail/macosx-tex/__;!!Mih3wA!HiVpFrpiObnEyfNjGKfCXouCYyFRSW2Fgo7AHNqXbtk44pI_-PEW_VGqZy65pwm7OZTIOLCG3LfG2huBcc4$" class="">https://urldefense.com/v3/__https://email.esm.psu.edu/pipermail/macosx-tex/__;!!Mih3wA!HiVpFrpiObnEyfNjGKfCXouCYyFRSW2Fgo7AHNqXbtk44pI_-PEW_VGqZy65pwm7OZTIOLCG3LfG2huBcc4$</a> <br class="">TeX on Mac OS X Website: <a href="https://urldefense.com/v3/__http://mactex-wiki.tug.org/__;!!Mih3wA!HiVpFrpiObnEyfNjGKfCXouCYyFRSW2Fgo7AHNqXbtk44pI_-PEW_VGqZy65pwm7OZTIOLCG3LfGH09yfzA$" class="">https://urldefense.com/v3/__http://mactex-wiki.tug.org/__;!!Mih3wA!HiVpFrpiObnEyfNjGKfCXouCYyFRSW2Fgo7AHNqXbtk44pI_-PEW_VGqZy65pwm7OZTIOLCG3LfGH09yfzA$</a> <br class="">List Info: <a href="https://urldefense.com/v3/__https://email.esm.psu.edu/mailman/listinfo/macosx-tex__;!!Mih3wA!HiVpFrpiObnEyfNjGKfCXouCYyFRSW2Fgo7AHNqXbtk44pI_-PEW_VGqZy65pwm7OZTIOLCG3LfGDgu5aQo$" class="">https://urldefense.com/v3/__https://email.esm.psu.edu/mailman/listinfo/macosx-tex__;!!Mih3wA!HiVpFrpiObnEyfNjGKfCXouCYyFRSW2Fgo7AHNqXbtk44pI_-PEW_VGqZy65pwm7OZTIOLCG3LfGDgu5aQo$</a> <br class=""></blockquote><br class="">----------- Please Consult the Following Before Posting -----------<br class="">TeX FAQ: <a href="http://www.tex.ac.uk/faq" class="">http://www.tex.ac.uk/faq</a><br class="">List Reminders and Etiquette: <a href="https://sites.esm.psu.edu/~gray/TeX/" class="">https://sites.esm.psu.edu/~gray/TeX/</a><br class="">List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx" class="">http://dir.gmane.org/gmane.comp.tex.macosx</a><br class=""> <a href="https://email.esm.psu.edu/pipermail/macosx-tex/" class="">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br class="">TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/" class="">http://mactex-wiki.tug.org/</a><br class="">List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex" class="">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br class=""></div></div></blockquote></div><br class=""></div></body></html>