diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 46b6c7586..feff5a115 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -3940,8 +3940,9 @@ var ZoteroPane = new function() this.showAttachmentInFilesystem = Zotero.Promise.coroutine(function* (itemID, noLocateOnMissing) { var attachment = yield Zotero.Items.getAsync(itemID) if (attachment.attachmentLinkMode != Zotero.Attachments.LINK_MODE_LINKED_URL) { - var file = attachment.getFile(); - if (file) { + var path = yield attachment.getFilePathAsync(); + if (path) { + let file = Zotero.File.pathToFile(path); try { file.reveal(); }