Friday 15 March 2019

macos - Open two instances of the same PDF in Mac OS X Preview


I have a file example.pdf, where the key to exercises in the top part of the document are posted at the end. Hence, I want to open two instances of this file, so that I can put the window with the answers next to the one with exercises.


A possible solution is of course to cp example.pdf example_copy.pdf, but I wonder if this be done without copying and renaming the file?



Answer



Open a document in a new instance of its associated application like this:


open -n path/to/file.pdf

Open also allows you to specify the application for the file, but if Preview is your default PDF viewer, you don't need to.




Another option is to bookmark relevant pages of the document, and jump between them by using the Back and Forward commands (Cmd-[ and Cmd-]).


alt text




The command above can be wrapped in a Service that can be assigned a keyboard shortcut in System Preferences » Keyboard using Automator:


alt text


Unfortunately, Preview cannot be scripted, and this Service cannot be launched from within Preview when viewing the document. You can, however, use it in Finder, either via its Finder » Services menu, or the context-menu of any file.


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...