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?

link|improve this question

80% accept rate
feedback

2 Answers

up vote 3 down vote accepted

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.

link|improve this answer
Thanks, open -n did it! – Milosz Jan 15 '11 at 15:26
@mewoshh Then please click the checkmark next to my post to accept it as answer to your question. – Daniel Beck Jan 15 '11 at 15:27
I will; there's a delay before I can accept an answer. My low rep here @superuser doesn't mean I have no experience with stackexchange :) – Milosz Jan 15 '11 at 15:34
@mewoshh Thanks. I didn't check to see if you had accounts linked, I'm used to seeing users with the +100 rep bonus from other SE sites. – Daniel Beck Jan 15 '11 at 15:42
feedback

Rather than open a whole new instance of Preview (which would then prevent you from toggling which document is in front with command+`), the easiest thing I can think to do for this is copy the pages you want in a new window and use "New from Clipboard" in the file menu. No command line required:

  1. Open the document
  2. Select desired pages from sidebar, or use command+a for select all.
  3. command+c followed by command+n — copy pages from clipboard and create a new document containing those pages.
link|improve this answer
Alternatively, Drag&drop pages to the desktop, thereby creating a new file. – Daniel Beck Jan 15 '11 at 21:05
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.