Two scripts here. The first script, end_to_end.jsx, converts static endnotes to dynamic endnotes (MS Word's dynamic endnotes are placed in Indesign as static endnotes). The second one, foot_to_end.jsx, converts footnotes in an InDesign document to endnotes.
Both scripts implement a method outlined by Peter Gold (in InDesign's User-to-user forum) and described in detail by Bob Bringhurst (see his blog; see also IndesignSecrets.com). Apparently it's an old FrameMaker trick. The method is simple: create a paragraph style for the endnotes and enable numbering in it; create a character style that sets the format for the note references; and add a cross-reference format that defines just a paragraph's number. Then at the location of the note reference, create a cross-reference to the endnote.
The method outlined by Peter Gold is simple and elegant, but labour-intensive if you want to convert all footnotes in a document to dynamic endnotes, or when you've placed in InDesign an MS Word document that contains a lot of endnotes which you want to convert to dynamic endnotes. The scripts make this task easy.
Note that this cross-reference trick can be used to overcome other shortcomings of InDesign, namely, its inability to add notes to tables and its lack of support for sidenotes. Table notes can be handled in the same way as outlined on this page. Dynamic sidenotes, though they use in effect the same approach, require a different way a scripting. These scripts are illustrated here.
MS Words has dynamic footnotes and dynamic endnotes; InDesign has just dynamic footnotes. When you place a Word document with endnotes in InDesign, Word's dynamic endnotes are therefore converted to static endnotes. This means that if you add or remove notes, you have to change note numbers and references manually.
The first script described here converts the static endnotes to dynamic ones, so that footnote references can be updated automatically after adding and deleting footnotes.
Before you run the script, make sure that the endnote paragraph style has been applied to all endnotes. Then run the script.
The script shows a dialog with two dropdowns, one with the character styles defined in the active document, the other with the document's paragraph styles. If the script finds the MS Word style names Endnote text (a paragraph style) and Endnote Reference (a character style) in the document, these names (or a localised version) are preselected in the dialog:

Just press Enter/Return or click OK to start the script. If the script can't find any standard name, select the style names used in the document for the endnote text and the references.
The script converts static endnotes to dynamic endnotes by applying the method outlined by Peter Gold, mentioned earlier. It works as follows:
Click to show script -- to download, right click, then Save Link/Target As
The script converts InDesign footnotes to endnotes. It adds some rudimentary styles to the document: a paragraph style for the endnotes, a character style for the note references, and a cross-reference format -- you need to fine tune them later. The styles are called endnote___ by default; if you want to change that you need to change that in the script at line 7.
Open the document that contains the notes you want to convert, then run the script. It has no interface.
Click to show script -- to download, right click, then Save Link/Target As
Installing and running scripts
Questions, comments? Get in touch