[OS X TeX] macOS Monterey - broken BBEdit/Skim integration scripts

Richard Seguin riseguin at earthlink.net
Mon Aug 1 17:55:46 EDT 2022


Michael,

I downloaded python3 from https://www.python.org <https://www.python.org/> , 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.

I also tried the "Open pdf” script and that works normally.

The error message is coming from typeset-lib.scpt:

> try
>        set shell_result to do shell script quoted form of (resource_path & "parse_log.py") & parse_options &  (quoted form of log_file)
> on error
> 		error "Error parsing the log file. It may not exist (parse_log.py)" number 5033
> end try


Richard

> On Jul 31, 2022, at 6:02 PM, Michael Sharpe via MacOSX-TeX <macosx-tex at email.esm.psu.edu> wrote:
> 
> For my python 3 setup, I was able to correct parse_log.py and directives.py by changing the first line to
> 
> #!/usr/bin/env python3
> 
> and changing each print statement to enclose the argument in parentheses.
> 
> 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.
> 
> 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.
> 
> Michael
> 
>> On Jul 31, 2022, at 3:27 PM, Richard Seguin <riseguin at earthlink.net> wrote:
>> 
>> [This message from Adam did come through directly to my Mail, so maybe my ISP finally got the message that this is not spam.]
>> 
>> Adam,
>> 
>> 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. 
>> 
>> 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.
>> 
>> Richard
>> 
>>> On Jul 31, 2022, at 4:12 PM, Adam R. Maxwell via MacOSX-TeX <macosx-tex at email.esm.psu.edu> wrote:
>>> 
>>> 
>>>> On Jul 31, 2022, at 10:49 , Richard Seguin <riseguin at earthlink.net> wrote:
>>>> 
>>>> 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:
>>> 
>>> 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:
>>> 
>>> https://www.python.org/downloads/release/python-2718/
>>> 
>>> 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.
>>> 
>>> Adam
>>> 
>>> ----------- Please Consult the Following Before Posting -----------
>>> TeX FAQ: http://www.tex.ac.uk/faq
>>> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/
>>> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
>>>               https://email.esm.psu.edu/pipermail/macosx-tex/
>>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>>> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
>> 
>> ----------- Please Consult the Following Before Posting -----------
>> TeX FAQ: https://urldefense.com/v3/__http://www.tex.ac.uk/faq__;!!Mih3wA!HiVpFrpiObnEyfNjGKfCXouCYyFRSW2Fgo7AHNqXbtk44pI_-PEW_VGqZy65pwm7OZTIOLCG3LfGUZtdL2s$ 
>> List Reminders and Etiquette: https://urldefense.com/v3/__https://sites.esm.psu.edu/*gray/TeX/__;fg!!Mih3wA!HiVpFrpiObnEyfNjGKfCXouCYyFRSW2Fgo7AHNqXbtk44pI_-PEW_VGqZy65pwm7OZTIOLCG3LfG_4gdtO0$ 
>> List Archives: https://urldefense.com/v3/__http://dir.gmane.org/gmane.comp.tex.macosx__;!!Mih3wA!HiVpFrpiObnEyfNjGKfCXouCYyFRSW2Fgo7AHNqXbtk44pI_-PEW_VGqZy65pwm7OZTIOLCG3LfGb0dE7vA$ 
>>               https://urldefense.com/v3/__https://email.esm.psu.edu/pipermail/macosx-tex/__;!!Mih3wA!HiVpFrpiObnEyfNjGKfCXouCYyFRSW2Fgo7AHNqXbtk44pI_-PEW_VGqZy65pwm7OZTIOLCG3LfG2huBcc4$ 
>> TeX on Mac OS X Website: https://urldefense.com/v3/__http://mactex-wiki.tug.org/__;!!Mih3wA!HiVpFrpiObnEyfNjGKfCXouCYyFRSW2Fgo7AHNqXbtk44pI_-PEW_VGqZy65pwm7OZTIOLCG3LfGH09yfzA$ 
>> List Info: https://urldefense.com/v3/__https://email.esm.psu.edu/mailman/listinfo/macosx-tex__;!!Mih3wA!HiVpFrpiObnEyfNjGKfCXouCYyFRSW2Fgo7AHNqXbtk44pI_-PEW_VGqZy65pwm7OZTIOLCG3LfGDgu5aQo$ 
> 
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
>                https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20220801/63270ff8/attachment.htm>


More information about the MacOSX-TeX mailing list