Zhiyuan Yao
About
- Username
- Zhiyuan Yao
- Joined
- Roles
- Member
Comments
-
I tested the following code snippet and it works. ``` var selectedItems = ZoteroPane.getSelectedItems(); var item = selectedItems[0]; var filePath = await item.getFilePathAsync(); await Zotero.Utilities.Internal.exec('/usr/bin/open', ['-a', "Previeā¦
-
Awesome, that solves the problem! Thanks a lot!
-
Thanks for the prompt reply and kind reminder where to post! I'm new to javascript and Zotero. When I select an attachment in Zotero, open `Tools -> Developer -> Run Javascript` and copy the following code ``` var selectedItems = ZoteroPanā¦