macOS URI-Schema registration with Zotero8 app installed fails to open Zotero links in Zotero7

edited 5 days ago
After using the Zotero7 beta for some time, Zotero8beta was installed automagically in place. I did not recognize it at once but found out that BetterBibTeX was not working anymore. Long story short: I fixed it and now have Zotero7 stable and Zotero8beta installed with different names in parallel, knowing what I do. At least thought it.

When trying to open PDF attachment s at a specific page using stored links, they stopped working.

Example: zotero://open-pdf/groups/1234/items/ABCDEFGH?page=2

I had similar issues with URI-Schemas for another project, refusing to open URIs with so called *.inetloc xml files on macOS. They share the same XML-Schema with *.webloc files, with the difference, that webloc files only open the current default browser, but inetloc files use every URI-Schmea that is registered on that particular machine.

Example XML webloc

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>URL</key>
<string>https://www.rubicode.com/Software/RCDefaultApp/</string>
</dict>
</plist>


Example inetloc

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>URL</key>
<string>zotero://open-pdf/groups/1234/items/ABCDEFGH?page=2</string>
</dict>
</plist>


I installed the `RCDefaultApp` from https://www.rubicode.com/Software/RCDefaultApp at my own risk.

We found out that a Zotero8.app schema was installed in parallel to a Zotero7.app schema.

The URLs in Zotero8.app Programm schema were activated except for rdf, txt, xml files.

We activated the same setup now for the Zotero7.app Programm schema and `Set as standard`. Now the selections for the Zotero8.app were gone.

The zotero://open-pdf/groups/1234/items/ABCDEFGH?page=2 link now works as expected.

Before when Zotero8.app is not open, but Zotero7, the link even refused to open Zotero8.

There is also a commandline tool to work with URI-Schemas but you need to compile it yourself. https://github.com/Grayson/defaultapp

If someone knows a simpler way to deal with the URI ssetup on macOS via commandline and defaultswrite, let me know.
Sign In or Register to comment.