v10 () Stop setting the publication’s ✻ibTeX string« property and use the »import« command instead to work in BibDesk 1.3.22. v11 () Attempt to remove affiliation from author names. v12 () Remove dependency on ‘URL Access Scripting’ (which Apple removed in X.7) and use ‘curl’ instead. v13 () Load data from arXiv API instead of using regular expressions on the web page. This avoids the failing to handle the 301 redirect given for non-encrypted connections. More information about older versions » v14 () Use https to download PDFs from the arXiv. Requires macOS version with python3 in the path. In case this script improves your life significantly, please consider donating to either of those projects.Ĭurrent: v15 () Switch internal script to Python3. Additional credit goes to Christiaan Hofman who wrote the download function the script uses. Go to both the preprint arXiv and the BibDesk team for their great service and software respectively. You will probably want to adapt the setup instructions to be more Chrome-centric in that case as well. To use them, you will need to open the script in AppleScript Editor, comment out the block relating to Safari at the beginning and uncomment the lines relating to Google Chrome. the PDF as well as the arXiv URL referenced from the preprint’s entry.Ĭurrently the script contains commands which should work with Google Chrome as well.the PDF for the preprint downloaded to your papers folder,.the preprint’s abstract added to that entry,.An entry for the preprint in your frontmost bibliography file,.If everything goes well you will end up with: Run the script by selecting it in the script menu.Navigate to a preprint’s abstract page on the arXiv in Safari’s frontmost tab and window.Make sure you have a bibliography file open in BibDesk and your papers folder is set in BibDesk’s Auto File preferences. It will then become available in BibDesk’s own script menu only. The system’s script menu should be visible at the right hand side of the menu bar now and it should offer the ‘arXiv → BibDesk’ command in both Safari and BibDesk:Īlternatively you can place the downloaded script in the subfolder ‘Scripts’ of the folder ‘BibDesk’ of the folder ‘Application Support’ of the folder ‘Library’ of your home folder. Starting with Mac OS X.7, the ‘Library’ folder is hidden by default You can get into it anyway by using the ‘Go To Folder…’ command (⌘⇧G) in the Finder and typing in the name.Ĭreate a ‘BibDesk’ folder next to the ‘Safari’ folder you placed the script in and put an alias to the script in there. You may need to create some of these folders yourself. Place the downloaded script in the subfolder ‘Safari’ of the folder ‘Applications’ of the folder ‘Scripts’ of the folder ‘Library’ inside your home folder. We recommend setting the script up in the following way:Īctivate the Script Menu: In Mac OS X.6 and above this is done in the General pane of the Preferences in the ‘AppleScript Editor’ application. macOS will then ask you whether you want to trust the script which is required to make it work. Do that by opening it using the contextual menu’s “Open“ command and then running the script with an arXiv paper page opened in Safari. Before running the script the first time, you need to make macOS trust it.
0 Comments
Leave a Reply. |