Patrick Gundlach wrote:
Dear fellows,
it looks as if I have wasted my time again trying to make texexec --autopdf work on Panther (Mac OS X 10.3). I found out that Adobe Reader 7.0 and Apple's Preview.app are not (Apple-)scriptable, so reloading the pdffile don't work with these two.
Nothing is compatible with anything else, ever, is it? :-( I've just uploaded my first attempt of an X implementation of pdfclose/pdfopen (it may actually work under MacOsX's X server as well as under Linux). This probably needs to be announced on the normal context list to get decent exposure/testing from Linux users, but it also needs a minor texexec change so I thought I'd report it here first. http://tex.aanhet.net/utils/pdfopen-0.1.tar.gz The command lines do not behave precisely the same as under Windows, because the Linux Reader behaves somewhat different: it is not scriptable, but it *is* possible to fake keypresses under X. pdfclose ignores a possible --all argument pdfopen ignores a possible --page argument pdfopen can be called without argument ('go back') pdfopen --file <file> always tries to close an existing file first For this to be tested, texexec needs the "($dosish) && " removed from this bit of code (around line 1905 of texexec 9.2.4): if (($dosish) && (!$Problems) && ($PdfOpen)) { if ($Result ne '') { system("pdfopen --file $Result.pdf") if -f "$Result.pdf" } else { system("pdfopen --file $JobName.pdf") if -f "$JobName.pdf" } } Hans, can you do this?