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. TeXshop's previewer is scriptable, and I was able to write a small script that opens and reloads the file while keeping the view when a document got typeset with texexec. Yeah, I was happy, because this is a nice feature. Then I found out that TeXshop already has this feature built in (same with TeXniscope), and there is no need for --autopdf on the Mac. Patrick -- ConTeXt wiki: http://contextgarden.net
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?
Taco Hoekwater wrote:
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?
sure, done Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Patrick Gundlach wrote:
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.
well, at least we now have a *documented* missing feature -) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
h h extern
-
Patrick Gundlach
-
Taco Hoekwater