Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.apps > #19293 > unrolled thread

Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks)

Started byDaveC <invalid@invalid.net>
First post2013-11-06 20:51 -0800
Last post2013-11-08 05:05 +0000
Articles 8 on this page of 28 — 12 participants

Back to article view | Back to comp.sys.mac.apps


Contents

  Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) DaveC <invalid@invalid.net> - 2013-11-06 20:51 -0800
    Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) Michael Vilain <vilain@NOspamcop.net> - 2013-11-06 23:17 -0800
      Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) Barry Margolin <barmar@alum.mit.edu> - 2013-11-07 08:30 -0500
        Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) Michael Vilain <vilain@NOspamcop.net> - 2013-11-07 07:25 -0800
          Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) DaveC <invalid@invalid.net> - 2013-11-07 10:54 -0800
            Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) Barry Margolin <barmar@alum.mit.edu> - 2013-11-07 14:07 -0500
              Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) notme <notme@notme.org> - 2013-11-07 11:13 -0800
                Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) Barry Margolin <barmar@alum.mit.edu> - 2013-11-07 14:35 -0500
                  Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) DaveC <invalid@invalid.net> - 2013-11-07 11:54 -0800
                Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) dorayme <dorayme@optusnet.com.au> - 2013-11-08 08:34 +1100
            Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) Michael Vilain <vilain@NOspamcop.net> - 2013-11-07 15:10 -0800
      Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) Lewis <g.kreme@gmail.com.dontsendmecopies> - 2013-11-07 19:36 +0000
        Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) DaveC <invalid@invalid.net> - 2013-11-07 11:56 -0800
    Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) Doc O'Leary <droleary@6usenet2013.subsume.com> - 2013-11-07 10:44 -0600
      Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) Paul Sture <nospam@sture.ch> - 2013-11-07 18:43 +0100
      Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) Lewis <g.kreme@gmail.com.dontsendmecopies> - 2013-11-07 20:20 +0000
    Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) dempson@actrix.gen.nz (David Empson) - 2013-11-08 08:58 +1300
      Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) DaveC <invalid@invalid.net> - 2013-11-07 12:05 -0800
        Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) Barry Margolin <barmar@alum.mit.edu> - 2013-11-07 15:17 -0500
          Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) dorayme <dorayme@optusnet.com.au> - 2013-11-08 08:40 +1100
            Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) Your Name <YourName@YourISP.com> - 2013-11-08 18:37 +1300
        Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) dempson@actrix.gen.nz (David Empson) - 2013-11-08 12:21 +1300
          Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) Barry Margolin <barmar@alum.mit.edu> - 2013-11-07 19:53 -0500
            Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) Michael Vilain <vilain@NOspamcop.net> - 2013-11-07 23:00 -0800
              Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) Barry Margolin <barmar@alum.mit.edu> - 2013-11-08 10:57 -0500
    Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) nmassello@yahoo.com (Neill Massello) - 2013-11-07 13:04 -0700
    Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) Wes Groleau <Groleau+news@FreeShell.org> - 2013-11-07 18:13 -0500
      Re: Getting Safari to open PDF files in Preview, NOT Safari (under Mavericks) Lewis <g.kreme@gmail.com.dontsendmecopies> - 2013-11-08 05:05 +0000

Page 2 of 2 — ← Prev page 1 [2]


#19342

FromYour Name <YourName@YourISP.com>
Date2013-11-08 18:37 +1300
Message-ID<081120131837036313%YourName@YourISP.com>
In reply to#19328
In article <dorayme-4203B8.08400008112013@news.albasani.net>, dorayme
<dorayme@optusnet.com.au> wrote:
> In article <barmar-964ED1.15170207112013@news.eternal-september.org>,
>  Barry Margolin <barmar@alum.mit.edu> wrote:
> >
> > it seems like there are different kinds of PDF files, and some of the 
> > contents may render them "unsafe". When they're not safe, you have to 
> > open them manually.
> 
> Interestingly, there are *some* PDFs that will happily open in iCab in 
> Schubert's PDF plugin but will give an error when the Open in External 
> Viewer button (in that plugin) is pressed. I don't think in this case 
> it is about safety, but I don't know this. On Snow Leopard.

The PDF standard comes in different versions, so it depends on what
version the reader application can understand. It also depends on how
close to the standards the application making the PDF was.

Some PDF documents open fine on my Mac OS X 10.2 PowerMac, some throw
up an error saying "some things may not display properly" but still
show up on-screen, and others refuse to open at all. Some will not work
in Preview, but work fine in full Acrobat. If I copy them across to the
Mac OS X 10.5 MacBook, then most of them open fine on that, but some
still cause errors.

[toc] | [prev] | [next] | [standalone]


#19331

Fromdempson@actrix.gen.nz (David Empson)
Date2013-11-08 12:21 +1300
Message-ID<1lc0n89.6ku80m11m0rl9N%dempson@actrix.gen.nz>
In reply to#19321
DaveC <invalid@invalid.net> wrote:

> > Alternatively, I can secondary click on the link and choose Download
> > Linked File, but this is a nuisance as some web sites don't make it
> > clear that the link you are about to click on is a PDF rather than
> > another web page.
> 
> So there is currently no known way to automatically download & open PDF files
> in Preview with 1 click?

Not as far as I can tell.

I have the 'Open "safe" files after downloading' preference disabled,
but that preference is only relevant once Safari has downloaded a file.
If Safari shows you the PDF content (or the raw text of the PDF) in its
own window/tab, then it isn't downloaded and isn't opened in Preview.

-- 
David Empson
dempson@actrix.gen.nz

[toc] | [prev] | [next] | [standalone]


#19333

FromBarry Margolin <barmar@alum.mit.edu>
Date2013-11-07 19:53 -0500
Message-ID<barmar-D887AF.19535507112013@news.eternal-september.org>
In reply to#19331
In article <1lc0n89.6ku80m11m0rl9N%dempson@actrix.gen.nz>,
 dempson@actrix.gen.nz (David Empson) wrote:

> DaveC <invalid@invalid.net> wrote:
> 
> > > Alternatively, I can secondary click on the link and choose Download
> > > Linked File, but this is a nuisance as some web sites don't make it
> > > clear that the link you are about to click on is a PDF rather than
> > > another web page.
> > 
> > So there is currently no known way to automatically download & open PDF 
> > files
> > in Preview with 1 click?
> 
> Not as far as I can tell.
> 
> I have the 'Open "safe" files after downloading' preference disabled,
> but that preference is only relevant once Safari has downloaded a file.
> If Safari shows you the PDF content (or the raw text of the PDF) in its
> own window/tab, then it isn't downloaded and isn't opened in Preview.

That's why I suggested Option-click. That forces Safari to download 
instead of show -- it works for any type of file (if you Option-click on 
a regular link, you'll get the HTML file in your download location).

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***

[toc] | [prev] | [next] | [standalone]


#19343

FromMichael Vilain <vilain@NOspamcop.net>
Date2013-11-07 23:00 -0800
Message-ID<vilain-4F643E.23002807112013@news.individual.net>
In reply to#19333
In article <barmar-D887AF.19535507112013@news.eternal-september.org>,
 Barry Margolin <barmar@alum.mit.edu> wrote:

> In article <1lc0n89.6ku80m11m0rl9N%dempson@actrix.gen.nz>,
>  dempson@actrix.gen.nz (David Empson) wrote:
> 
> > DaveC <invalid@invalid.net> wrote:
> > 
> > > > Alternatively, I can secondary click on the link and choose Download
> > > > Linked File, but this is a nuisance as some web sites don't make it
> > > > clear that the link you are about to click on is a PDF rather than
> > > > another web page.
> > > 
> > > So there is currently no known way to automatically download & open PDF 
> > > files
> > > in Preview with 1 click?
> > 
> > Not as far as I can tell.
> > 
> > I have the 'Open "safe" files after downloading' preference disabled,
> > but that preference is only relevant once Safari has downloaded a file.
> > If Safari shows you the PDF content (or the raw text of the PDF) in its
> > own window/tab, then it isn't downloaded and isn't opened in Preview.
> 
> That's why I suggested Option-click. That forces Safari to download 
> instead of show -- it works for any type of file (if you Option-click on 
> a regular link, you'll get the HTML file in your download location).

If Safari is accessing the file via a link, I think there's a way to 
send MIME headers that tell Safari to download the file rather than 
display it.  But it's not something you set on Safari, it's what the 
server sends to Safari.  No way to change that behavior, AFAIK.

-- 
DeeDee, don't press that button!  DeeDee!  NO!  Dee...
[I filter all Goggle Groups posts, so any reply may be automatically ignored]

[toc] | [prev] | [next] | [standalone]


#19349

FromBarry Margolin <barmar@alum.mit.edu>
Date2013-11-08 10:57 -0500
Message-ID<barmar-9261C6.10574908112013@news.eternal-september.org>
In reply to#19343
In article <vilain-4F643E.23002807112013@news.individual.net>,
 Michael Vilain <vilain@NOspamcop.net> wrote:

> In article <barmar-D887AF.19535507112013@news.eternal-september.org>,
>  Barry Margolin <barmar@alum.mit.edu> wrote:
> 
> > In article <1lc0n89.6ku80m11m0rl9N%dempson@actrix.gen.nz>,
> >  dempson@actrix.gen.nz (David Empson) wrote:
> > 
> > > DaveC <invalid@invalid.net> wrote:
> > > 
> > > > > Alternatively, I can secondary click on the link and choose Download
> > > > > Linked File, but this is a nuisance as some web sites don't make it
> > > > > clear that the link you are about to click on is a PDF rather than
> > > > > another web page.
> > > > 
> > > > So there is currently no known way to automatically download & open PDF 
> > > > files
> > > > in Preview with 1 click?
> > > 
> > > Not as far as I can tell.
> > > 
> > > I have the 'Open "safe" files after downloading' preference disabled,
> > > but that preference is only relevant once Safari has downloaded a file.
> > > If Safari shows you the PDF content (or the raw text of the PDF) in its
> > > own window/tab, then it isn't downloaded and isn't opened in Preview.
> > 
> > That's why I suggested Option-click. That forces Safari to download 
> > instead of show -- it works for any type of file (if you Option-click on 
> > a regular link, you'll get the HTML file in your download location).
> 
> If Safari is accessing the file via a link, I think there's a way to 
> send MIME headers that tell Safari to download the file rather than 
> display it.  But it's not something you set on Safari, it's what the 
> server sends to Safari.  No way to change that behavior, AFAIK.

That's true, a server can say "This is an attachment, download it 
instead of displaying it". That can be done with any type of file.

But when the server *doesn't* say that, you can still force a download 
with the Option key, or Right-click and select "Save Link As...".

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***

[toc] | [prev] | [next] | [standalone]


#19320

Fromnmassello@yahoo.com (Neill Massello)
Date2013-11-07 13:04 -0700
Message-ID<1lbyte9.1egg6awdasohsN%nmassello@yahoo.com>
In reply to#19293
DaveC <invalid@invalid.net> wrote:

> In past OS X versions I've used a Terminal command to set my PDF viewer
> preference to Preview rather than Safari. This is the method for Mavericks,
> supposedly:
> 
> <http://apple.stackexchange.com/questions/106660/how-make-safari-7-open-pdf-
> files-in-preview-instead-of-opening-them-in-page>
> 
> The desired result is that after clicking on a link that is the URL to a PDF
> file, Preview launches and the PDF file displays in that application. 
> 
> For me this does not happen. Instead, a new web page opens in Safari and
> garbage fills the page.
> 
> Any idea how I can get a PDF file on the web to download and open in Preview

The setting in TinkerTool that used to do this is also now gone,
presumably because the current version of Safari no longer supports it.
The only way to do this now seems to be "Download Linked File" on the
contextual menu. 

[toc] | [prev] | [next] | [standalone]


#19330

FromWes Groleau <Groleau+news@FreeShell.org>
Date2013-11-07 18:13 -0500
Message-ID<l5h6r7$bbs$1@dont-email.me>
In reply to#19293
On 11-06-2013, 23:51, DaveC wrote:
> The desired result is that after clicking on a link that is the URL to a PDF
> file, Preview launches and the PDF file displays in that application.
>
> For me this does not happen. Instead, a new web page opens in Safari and
> garbage fills the page.

I do not know how to change the choice from in-line viewer to Preview.

But I suspect that seeing "garbage" instead of what you are supposed to 
see is because the web server identified the item as something other 
than PDF, i.e., as 'test' or 'html'

As others asked, can you provide the URI?

If not, turn on your Develop menu and see if that will help you 
troubleshoot.

Or just change browsers permanently or temporarily.

-- 
Wes Groleau

   Pat's Polemics
   http://Ideas.Lang-Learn.us/barrett

[toc] | [prev] | [next] | [standalone]


#19339

FromLewis <g.kreme@gmail.com.dontsendmecopies>
Date2013-11-08 05:05 +0000
Message-ID<slrnl7os82.1lue.g.kreme@mbp55.local>
In reply to#19330
In message <l5h6r7$bbs$1@dont-email.me> 
  Wes Groleau <Groleau+news@FreeShell.org> wrote:
> On 11-06-2013, 23:51, DaveC wrote:
>> The desired result is that after clicking on a link that is the URL to a PDF
>> file, Preview launches and the PDF file displays in that application.
>>
>> For me this does not happen. Instead, a new web page opens in Safari and
>> garbage fills the page.

> I do not know how to change the choice from in-line viewer to Preview.

> But I suspect that seeing "garbage" instead of what you are supposed to 
> see is because the web server identified the item as something other 
> than PDF, i.e., as 'test' or 'html'

No, the server is not at fault. This is a known bug which arrises if the
following conditions are met:

  1) 10.9
  2) Safari 7
  3) User at some point used defaults write to change Safari's display of PDFs

ALL conditions must be met. In this case, Safari will display the binary
of the PDF instead of the actual PDF. Resetting the defaults write back
'fixes' the problem.

-- 
"Back off, man. I'm a scientist."

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.sys.mac.apps


csiph-web