Can't open a PDF from Terminal on Mac because it ‘couldn't get a file descriptor referring to the console’

2018-08-13 19:49:48

I tried to use the command:

open

but the message I got was

Couldn't get a file descriptor referring to the console

What can I do?

Use this:

open /Users/yourid/subfolder1/subfolder2/your filename.pdf

This will work because Preview is the default handler for PDF files. If there is no default handler, OR you wish to open with a different app, use the -a option, and spec the handler/app you want to use. And read man open... or just type open on the command line by itself.

  • Use this:

    open /Users/yourid/subfolder1/subfolder2/your filename.pdf

    This will work because Preview is the default handler for PDF files. If there is no default handler, OR you wish to open with a different app, use the -a option, and spec the handler/app you want to use. And read man open... or just type open on the command line by itself.

    2018-08-13 22:02:03