Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
kb:exporting_from_endnote_with_pdfs [2009/08/14 15:06] – Code to perform the find/replace karnesky | kb:exporting_from_endnote_with_pdfs [2017/11/12 19:53] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | === How do I import my EndNote library, complete with attached PDFs? === | + | < |
+ | in the process of updating the documentation for | ||
+ | <a href=" | ||
+ | may be outdated in the meantime. Thanks for your understanding.</ | ||
+ | |||
+ | |||
+ | === [deprecated] | ||
+ | |||
+ | **//This procedure is no longer necessary for Zotero 3.0.9. Please refer to [[importing_records_from_endnote|this article]] for help//** | ||
Obviously, manually adding every PDF from a large EndNote library would be rather labor intensive. There is a trick to automating it, though. | Obviously, manually adding every PDF from a large EndNote library would be rather labor intensive. There is a trick to automating it, though. | ||
Line 9: | Line 17: | ||
In it, you will want to replace the ' | In it, you will want to replace the ' | ||
- | Os OS X and Linux, you may run:< | + | On Mac OS X and Linux, you may run:< |
- | </ | + | </ |
+ | |||
+ | On Windows, you may copy the following and paste it into notepad. Save as " | ||
' RIS link fixer for windows | ' RIS link fixer for windows | ||
' transforms Endnote internal-pdf:// | ' transforms Endnote internal-pdf:// | ||
Line 36: | Line 46: | ||
' | ' | ||
set objShell = CreateObject(" | set objShell = CreateObject(" | ||
- | set pdfFolder = objShell.BrowseForFolder(0, | + | set pdfFolder = objShell.BrowseForFolder(0, |
If (not pdfFolder is nothing) then | If (not pdfFolder is nothing) then | ||
ReplaceWith | ReplaceWith | ||
+ | If (Right(ReplaceWith, | ||
+ | ReplaceWith = ReplaceWith & " | ||
+ | End If | ||
+ | regEx.Global = True | ||
modFileContents = regEx.replace(FileContents, | modFileContents = regEx.replace(FileContents, | ||
If modFileContents <> FileContents Then | If modFileContents <> FileContents Then | ||
WriteFile FileName, modFileContents | WriteFile FileName, modFileContents | ||
- | Wscript.Echo "Finished chaning internal-pdf:// | + | Wscript.Echo "The RIS file has successfully been modified." |
Else | Else | ||
- | Wscript.Echo "nope" | + | Wscript.Echo "No EndNote attachments have been detected in the RIS file." |
End If | End If | ||
End If | End If | ||
Line 66: | Line 80: | ||
End Function | End Function | ||
</ | </ | ||
- | {{tag> | + | |
+ | == Remark on sed statement == | ||
+ | |||
+ | Thanks for the tip. If the previous sed statement doen't work for you, try | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | Explanation: | ||
+ | |||
+ | Example: Your Endnote library called Literatur (i. e. Literatur.enl and Literatur.Data), | ||
+ | |||
+ | |||
+ | {{tag> |