Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

blackxacto

macrumors 65816
Original poster
Jun 15, 2009
1,165
124
Middle TN
I want to FORCE Mojave Books to open pdf's in my pdf editor, NOT PREVIEW. I have done the old select a pdf+Apple+I, then designate my editor to open all pdf's. DOES NOT work in Mojave.

Anyone know a way?
 

CopyChief

macrumors 6502
Oct 9, 2007
376
455
I was going to say, "I think this works the same way as it always has," but I just tried it and it throws an error. This has to be a bug, as it doesn't work to change defaults even to native Apple apps. I reported the error to Apple.
 

Feenician

macrumors 603
Jun 13, 2016
5,313
5,100
I want to FORCE Mojave Books to open pdf's in my pdf editor, NOT PREVIEW. I have done the old select a pdf+Apple+I, then designate my editor to open all pdf's. DOES NOT work in Mojave.

Anyone know a way?

I just tried reassigning .log to a text editor in the way you describe, changing from the default, Console. Visually, when I select "Open With" it indeed looks like the assignment hasn't worked but when I double click it does open in my selected text editor. The Info dialog does show the correct app assigned also.

I rebuilt launch services. Same behavior. The reassignment works but doesn't show correctly in the menu.

Screen Shot 2018-10-04 at 1.39.52 PM.png
 

blackxacto

macrumors 65816
Original poster
Jun 15, 2009
1,165
124
Middle TN
I just tried reassigning .log to a text editor in the way you describe, changing from the default, Console. Visually, when I select "Open With" it indeed looks like the assignment hasn't worked but when I double click it does open in my selected text editor. The Info dialog does show the correct app assigned also.

I rebuilt launch services. Same behavior. The reassignment works but doesn't show correctly in the menu.

View attachment 792129
[doublepost=1538691504][/doublepost]Sorry, I’m confused. R u saying you got it to work?
 

Feenician

macrumors 603
Jun 13, 2016
5,313
5,100
[doublepost=1538691504][/doublepost]
Sorry, I’m confused. R u saying you got it to work?

Basically, yes. When I reassign a file type and hit change all in the Info dialog, that filetype does indeed open in the nominated application when open it by double clicking.

The only real weirdness was that the right click -> open in menu didn't correctly reflect that
 

chscag

macrumors 601
Feb 17, 2008
4,622
1,946
Fort Worth, Texas
I want to FORCE Mojave Books to open pdf's in my pdf editor, NOT PREVIEW. I have done the old select a pdf+Apple+I, then designate my editor to open all pdf's. DOES NOT work in Mojave.

Anyone know a way?

I believe Mojave will not allow your PDF editor over Preview. This is due to the new security procedures and the way GateKeeper operates in Mojave. You will probably have to go to Recovery, open Terminal, and turn off SIP in order to make changes. Not recommended, however.
 

blackxacto

macrumors 65816
Original poster
Jun 15, 2009
1,165
124
Middle TN
Basically, yes. When I reassign a file type and hit change all in the Info dialog, that filetype does indeed open in the nominated application when open it by double clicking.

The only real weirdness was that the right click -> open in menu didn't correctly reflect that

It did not work in my Mojave iMac. I did the old select a pdf, Apple+I, assign the editor to open the pdf, then assign all PDFs to open with editor, Close. Does not work here. Double clicking opens Preview every time.
[doublepost=1538695374][/doublepost]
I believe Mojave will not allow your PDF editor over Preview. This is due to the new security procedures and the way GateKeeper operates in Mojave. You will probably have to go to Recovery, open Terminal, and turn off SIP in order to make changes. Not recommended, however.

I will try turning off SIP. Have done it before. Reassigning, then turn SIP back on. It’ll be brief. But not sure why this would effect reassignment.
 

Feenician

macrumors 603
Jun 13, 2016
5,313
5,100
It did not work in my Mojave iMac. I did the old select a pdf, Apple+I, assign the editor to open the pdf, then assign all PDFs to open with editor, Close. Does not work here. Double clicking opens Preview every time.

Ah. Sorry. You might try rebuilding launch services and see if that helps. Before you do this, be aware that it will reset all file associations to the defaults. You can either use an app like Onyx to do that or run the following command in Terminal.

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -v -apps u

It will take a few minutes for file associations to be rebuilt so things like the dropdown in the Info dialog, and the menu in the Open With menu will take a while to display at first. Also, there will be not insignificant CPU usage from the lsd process while it rebuilds.

I believe Mojave will not allow your PDF editor over Preview. This is due to the new security procedures and the way GateKeeper operates in Mojave. You will probably have to go to Recovery, open Terminal, and turn off SIP in order to make changes. Not recommended, however.

I was able to reassign PDF files just now and I have, and always have had SIP enabled.
 

blackxacto

macrumors 65816
Original poster
Jun 15, 2009
1,165
124
Middle TN
Ah. Sorry. You might try rebuilding launch services and see if that helps. Before you do this, be aware that it will reset all file associations to the defaults. You can either use an app like Onyx to do that or run the following command in Terminal.

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -v -apps u

It will take a few minutes for file associations to be rebuilt so things like the dropdown in the Info dialog, and the menu in the Open With menu will take a while to display at first. Also, there will be not insignificant CPU usage from the lsd process while it rebuilds.



I was able to reassign PDF files just now and I have, and always have had SIP enabled.

Thank you very very much. Will try that too tonite.
 

chscag

macrumors 601
Feb 17, 2008
4,622
1,946
Fort Worth, Texas
I was able to reassign PDF files just now and I have, and always have had SIP enabled.

Are you running Mojave or High Sierra? The new security changes were put in place in Mojave. Prior to that, you could turn GateKeeper off, however, in Mojave you can not without first turning off SIP.
 

Feenician

macrumors 603
Jun 13, 2016
5,313
5,100
Are you running Mojave or High Sierra? The new security changes were put in place in Mojave. Prior to that, you could turn GateKeeper off, however, in Mojave you can not without first turning off SIP.

Mojave. You don't need to disable Gatekeeper or SIP to change file associations though. It's still right there in Finder (for now at least)
 

chscag

macrumors 601
Feb 17, 2008
4,622
1,946
Fort Worth, Texas
Right. I wasn't referring to file associations though. It's new downloads that are affected or applications that have not been signed by Apple. Which PDF editor is our OP trying to use instead of Preview?
 

Feenician

macrumors 603
Jun 13, 2016
5,313
5,100
Right. I wasn't referring to file associations though. It's new downloads that are affected or applications that have not been signed by Apple. Which PDF editor is our OP trying to use instead of Preview?

Ah, I see your line of thinking now. That OP didn’t mention whether they could open the app, right? Though I think if that was the issue and he changed a file association on a file he’d see a Gatekeeper error, rather than the file opening in Preview.
 

blackxacto

macrumors 65816
Original poster
Jun 15, 2009
1,165
124
Middle TN
OP:
I opened Mojave Books, double click a pdf in Books, it opens in Preview.
Restarted holding apple+R, Terminal/ csrutil disable/ return/ restart/
Terminal/cleared launch services/few errors, see attached jpg/
Apple+I, a pdf, a jpeg, affinity photo doc, psd doc, individually changed the ALL SIMILAR Docs setting
Restarted holding apple+R/Terminal/csrutil enable/return/restart/
Opened Mojave Books, double-click a pdf in Books, it opens in Preview.

I only want pdf's to open in my pdf editor, ONLY. What else is there?
Anyone got a terminal command for Mojave in Terminal as I asked before?

What does it matter what brand pdf editor? I'm assigning default opening apps. PDFExpert

Addendum: I am now seeing (90%) MOST pdfs in Mojave Books double-click open in Mojave Preview, but some special long multipage pdfs open in PDFXpert as I want ALL pdfs to open. What the heck is going on?
 

Attachments

  • xx.jpg
    xx.jpg
    1 MB · Views: 239
Last edited:

chscag

macrumors 601
Feb 17, 2008
4,622
1,946
Fort Worth, Texas
I just checked. PDFExpert is offered in the Mac App Store so there should be no problem with it being an app which is signed by Apple and approved. IOW, no blocking by GateKeeper. Don't know if this will work but give it a try:

Open System Preferences, Security & Privacy. Select the Privacy tab. On the left, select Full Disk Access. Click on the small lock at the bottom and enter your admin password to open the lock. Click on the small + sign at the bottom and then enter PDFExpert. Click the lock to close it and exit System Preferences. Now, try to change the file association to PDFExpert from Preview. Let us know if that works for you.
 

blackxacto

macrumors 65816
Original poster
Jun 15, 2009
1,165
124
Middle TN
I just checked. PDFExpert is offered in the Mac App Store so there should be no problem with it being an app which is signed by Apple and approved. IOW, no blocking by GateKeeper. Don't know if this will work but give it a try:

Open System Preferences, Security & Privacy. Select the Privacy tab. On the left, select Full Disk Access. Click on the small lock at the bottom and enter your admin password to open the lock. Click on the small + sign at the bottom and then enter PDFExpert & Books. Click the lock to close it and exit System Preferences. Now, try to change the file association to PDFExpert from Preview. Let us know if that works for you.

Just added Books, PDFXpert, Preview to FULL DISK ACCESS/ Rebooted/ 90% pdfs open (from Books) in Preview, 10% PDFXpert.

A PDF - made after Mojave was installed. Double-Click opens from Book app in Preview
B PDF - was made before Mojave was installed: Double-Click opens from Book app in PDFXpert editor

A=macOS Version 10.14.1 (Build18B45d) Quartz PDF Context. 8.5x11
B=Mac OSX 10.13.6 Quartz PDF Context. 10x12.74

I have done this with SIP and without. I have done this with apps added to Full Disk Access and without.

Does anyone see a difference in the pdfs that is causing this issue?
Why would it matter if a pdf is made after Mojave, and before Mojave?

There must be some Terminal Command that will over-ride this issue. When I double click any pdf, anywhere on my iMac, I ONLY want it to open in PDFXpert app.


ab.jpg
 

Attachments

  • image.png
    image.png
    2.5 MB · Views: 233
Last edited:

blackxacto

macrumors 65816
Original poster
Jun 15, 2009
1,165
124
Middle TN
Did some more trouble shooting today. I have narrowed the situation.

I make multi page pdfs from textedit documents, then print to pdf. Various dimensions, but all made the same way. Before Mojave, When I placed a newly made pdf into iBooks, I could double click the pdf in iBooks and the pdf would always open in my pdf editor (As I had assigned all pdf's).

– Here comes Mojave –

If I make a pdf the same way as before Mojave and leave the pdf on my desktop, double clicking opens in my pdf editor, always.

–HOWEVER– If I move the newly made pdf into Mojave Books, double click the pdf in Books, the pdf always opens in PREVIEW. Even if the default app to open it is my editor.

What does this sound like to anyone? Does Mojave Books break the default settings?
 

blackxacto

macrumors 65816
Original poster
Jun 15, 2009
1,165
124
Middle TN
I have used terminal commands to clear the Mojave LaunchServices, I have wiped the hard drive and migrated back my data twice in the past four days. Called Apple Support and no one of them have an answer. Yes, I did the Apple+I to assign to all pdf's my editing app PDF Expert. All pdf's even in Books show a default to open in PDF Expert. But if I open a pdf stored in Mojave Books, and made after Mojave upgrade, it opens in PREVIEW. What the hell is happening in the app Mojave Books, to block the assigned app opening?

I'm going to start another thread w a different title, maybe I catch someone who hasn't seen this.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.