Thanks for the idea - this has prompted some progress!

I can't believe I didn't do this before, but when I run this command from
the terminal, it DOES work!

/Applications/Skim.app/Contents/SharedSupport/displayline -b -g 890
Example.pdf Example.tex

Changing the line number changes the displayed view in Skim *in exactly the
way it's supposed to work from Emacs!*

So, why doesn't it work in Emacs? Following your thought, I looked at the
Secury & Privacy prefs. Under Automation, I find:

[image: Screen Shot 2020-12-29 at 13.57.11.png]
Unchecking Skim.app from this list, and the displayline command incurs the
following error when run from the terminal:

613:675: execution error: Not authorized to send Apple events to Skim.
(-1743)

The displayed view no longer changes. So, I am guessing the same error
occurs from Emacs.

Maddeningly, there is no obvious way to add Emacs to the Automation pane
and grant it permission to control Skim. Emacs is already granted full
permissions in the Accessibility pane, and that does not help. Sheesh!

Any more ideas? Anyone with a better handle on macOS sandboxing than me? By
which I mean, any handle at all? Help would be much appreciated!!

Best,

John

On Tue, Dec 29, 2020 at 12:39 PM Dr Eberhard W Lisse <e...@lisse.na> wrote:

> Maybe give displayline and/or Skim (full) disk access?
>
> el
>
> —
> Sent from Dr Lisse’s iPhone
> On 29 Dec 2020, 14:32 +0200, John Huerta <john.hue...@gmail.com>, wrote:
>
> Hi all,
>
> I am running macOS 10.15.7 (Catalina) and Skim 1.5.13. I use Emacs 27.1 +
> AucTeX for writing LaTeX.
>
> Possibly since the upgrade to Catalina, displayline has ceased to go to
> the line requested. AucTeX is using the correct command:
>
> /Applications/Skim.app/Contents/SharedSupport/displayline -b -g 890
> Example.pdf Example.tex
>
> When Skim is not opened, it opens, but opens on the first page and does
> not go to the line. When Skim is already open, the displayed view doesn't
> change.
>
> Another point of interest: my work computer is pre-Catalina, and
> displayline works as expected. Is this a Catalina issue? Permissions,
> perhaps?
>
> This is getting very frustrating. Help!
>
> Best,
>
> John
> _______________________________________________
> Skim-app-users mailing list
> Skim-app-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/skim-app-users
>
> _______________________________________________
> Skim-app-users mailing list
> Skim-app-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/skim-app-users
>
_______________________________________________
Skim-app-users mailing list
Skim-app-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to