Find data directory location programatically [macOS]
Hi! I am looking for a way to find out the data directory location (as well as the linked attachment base directory) programmatically on macOS. No luck with ~/Library/Preferences/org.zotero.zotero.plist.
Zotero.DataDirectory.dir
It's just the
extensions.zotero.dataDir
line in prefs.js in the Zotero profile directory. If not set, it's ~/Zotero.LABD is
extensions.zotero.baseAttachmentPath