22 Şubat 2011 Salı

Open Two Instances of Preview at Once

The open command line program accepts a parameter -n that allows it to launch the application again, even if it's already running. So, if you're currently viewing file.pdf in Preview, enter open -n file.pdf in Terminal. (You'll need to supply the full and complete path to the file, of course; the easiest way to do that is to type in open -n, then drag the file from the Finder to the Terminal command line.) Another instance of Preview will launch, complete with its own Dock icon, with the PDF document open. Unfortunately, some applications (such as iTunes) resist even this technique, so you cannot launch a second iTunes instance--to, say, have multiple iTunes libraries open at the same time.

If you wish, you can put this command into an Automator service, making it that much easier to launch. Open Automator and select Service from the template list. In the bar near the top of the editing pane, configure the new service to receive PDF files in the Finder. Open the Utilities section in the Library on the left, then double-click the Run Shell Script action from it. In the editing pane, select As Arguments from the Pass Input drop-down menu. Replace the contents of the action's text area with:

for f in "$@"

do

open -n "$f"

done

Save and name the service--Open Selected PDFs in New Preview, for example. Now, when you want to open a Preview document the second time, you can select it in Finder, and then select your new service from the Finder -> Services submenu (or from the context menu that appears when you right-click on the file).

You can, of course, adapt this service to work with other apps and file-types. Just remember that some applications cannot handle multiple open instances of the same document; generally, use this only for viewing, not for editing.


For more Macintosh computing news, visit Macworld. Story copyright © 2010 Mac Publishing LLC. All rights reserved.

Would you recommend this story? YES NO

$("li.print").pcw_rolloverad({trackingPixel: 'http://ad.doubleclick.net/ad/pcw.main.trackingpixel/XeroxIcon;sz=1x1',divId: 'xeroxColorQube'});

View the original article here


This post was made using the Auto Blogging Software from WebMagnates.org This line will not appear when posts are made after activating the software to full version.

Hiç yorum yok:

Yorum Gönder