Browse local PDFs in Safari

Feb 07, '03 09:11:00AM

Contributed by: Anonymous

Mad that Preview.app is turtle slow with PDFs? Well, I have a fix for you, using Safari. First, install Safari and the PDF browser plugin from schubert-it.com. Now, this will let you see PDFs on the web, but what about ones on your hard drive? Safari doesn't know it can open them. Here's how to teach it...

Right click and show package contents in Safari. Then open Info.plist in TextEdit. Find the first document type (the second overall) and paste this right before it; you're essentially adding a document type key:

<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>pdf</string>
<string>PDF</string>
</array>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>application/pdf</string>
</array>
<key>CFBundleTypeName</key>
<string>NSPDFPboardType</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>PDF </string>
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>NSDocumentClass</key>
<string>BrowserDocument</string>
</dict>
Save, run Safari, quit Safari, and then enjoy drag and drop PDFs in Safari.

[Editor's note: I have not tested this one...]

Comments (21)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20030207061100897