You could use this script to go to the next page in sync, and a
similar script to go to the previous page. You could save it in
Library/Scripts/Applications/Skim/ and you can define shortcuts for
them in the system prefs.
tell application "Skim"
if (count of documents) < 2 then
beep
return
end if
tell document 1
set p1 to index of current page
set n1 to count of pages
end tell
tell document 2
set p2 to index of current page
set n2 to count of pages
end tell
if p1 < n1 and p2 < n2 then
tell document 1 to go to page (p1 + 1)
tell document 2 to go to page (p2 + 1)
else
beep
end if
end tell
Christiaan
On 17 Aug 2007, at 5:35 PM, Marc H. Scholl wrote:
I wonder how it is possible to navigate through two Skim windows
with a single keystroke. Probably that can be achieved via
AppleScript and some tweaking, however, I'm mostly ignorant of
AppleScript'ing; so maybe somebody has a quick solution...
Background: I'm doing a lot of presentations prepared with LaTeX
(mostly beamer class) as PDF documents. What I want to achieve is a
"presentation mode" setup, such as the ones available in MS
PowerPoint, Apple's Keynote or OpenOffice's Impress:
with two displays (typically built-in TFT and a projector), you show
a single page on one of them (projector), and a "pre-/postview" of
the current plus some (configurable number) next and/or previous
pages
on the other (built-in) display; sometimes the latter can also
contain
speaker's notes.
The material to be displayed in the "speaker's view" window can be
produced rather easily using LaTeX (e.g., beamer) and some tweaking
via pdfnup.
I would then fire up 2 Skim windows, one on each display, turn them
both into presentation mode (I can come as far as that); then I
need one keystroke (e.g., cursor up/down) to be "forwarded" to both
windows, so that they scroll "in sync".
The functionality could be usefull for other purposes as well,
e.g., for an intellectual "visual diff" of two almost identical PDF
documents.
Anybody out there who is fluent with AppleScript and willing to help?
Thanks
--Marc
--
| Prof. Dr. Marc H. Scholl
|
| Universitaet Konstanz
| FB Informatik & Informationswissenschaft
| D-78457 Konstanz, Germany
| Tel: +49 (0)7531/88-4432, Fax: +49 (0)7531/88-3577
| http://www.inf.uni-konstanz.de/~scholl
----------------------------------------------------------------------
---
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a
browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-users mailing list
Skim-app-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-users
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-users mailing list
Skim-app-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-users