Home > Mac administration, Mac OS X, Scripting > Installing Endnote X7.5’s Cite While You Write plug-ins for Office 2008, 2011 and 2016

Installing Endnote X7.5’s Cite While You Write plug-ins for Office 2008, 2011 and 2016

Thomson Reuters has released Endnote X7.5, an updated version of their Endnote bibliography software. This updated version had been long-awaited by a number of folks because it added support for Word 2016.

I have an existing process for deploying and licensing Endnote X7.x and I found that the site license which I’ve been using with previous versions of Endnote X7.x also worked fine with 7.5. One thing that did not work was Endnote X7.5 automatically deploying its Cite While You Write (CWYW) plug-ins for Word 2008, 2011 and 2016.

Screen Shot 2016 02 02 at 3 02 20 PM

In previous versions of Endnote, Endnote’s first launch triggered an assistant which installed the CWYW plug-ins to their correct location. Endnote X7.5, or at least Endnote X7.5’s trial version, appeared to lack this functionality. In addition, the CWYW plug-ins for Word 2016 need to be installed into a completely different location than for previous versions of Word:

  • Word 2008: /Applications/Microsoft Office 2008/Office/Startup/Word
  • Word 2011: /Applications/Microsoft Office 2011/Office/Startup/Word
  • Word 2016: /Library/Application Support/Microsoft/Office365/User Content.localized/Startup.localized/Word

Unlike previous versions of Microsoft Office, the Word 2016 support directories were also not created by Office 2016 by default, so they were not likely to exist unless a third-party plug-in for Word had previously been installed.

Screen Shot 2016 02 02 at 3 01 23 PM

To address the various issues identified, I wrote a script. For more details, see below the jump.

The script is designed to do the following:

  1. Remove existing Endnote CWYW plug-ins for Word 2008, Word 2011 and Word 2016
  2. Detect if Word 2016 is installed and add the appropriate support directories if needed.
  3. Detect which version(s) of Microsoft Office are installed and install new copies of the appropriate Endnote CWYW plug-ins


#!/bin/bash
#################################################################
## Remove previous Endnote plug-ins from Office 2016 ##
#################################################################
if [[ -e "/Library/Application Support/Microsoft/Office365/User Content.localized/Startup.localized/Word/EndNote CWYW Word 2016.bundle" ]]; then
/bin/rm -rf "/Library/Application Support/Microsoft/Office365/User Content.localized/Startup.localized/Word/EndNote CWYW Word 2016.bundle"
fi
#################################################################
## Remove previous Endnote plug-ins from Office 2011 ##
#################################################################
if [[ -e "/Applications/Microsoft Office 2011/Office/Startup/Word/EndNote CWYW Word 2011.bundle" ]]; then
/bin/rm -rf "/Applications/Microsoft Office 2011/Office/Startup/Word/EndNote CWYW Word 2011.bundle"
fi
#################################################################
## Remove previous Endnote plug-ins from Office 2008 ##
#################################################################
if [[ -e "/Applications/Microsoft Office 2008/Office/Startup/Word/EndNote CWYW Word 2008.bundle" ]]; then
/bin/rm -rf "/Applications/Microsoft Office 2008/Office/Startup/Word/EndNote CWYW Word 2008.bundle"
fi
###################################################################################################################
## This checks for and creates if needed the directories for the Endnote X7 Plug-in for Office 2016 ##
###################################################################################################################
if [[ -e "/Applications/Microsoft Word.app" ]] && [[ ! -e "/Library/Application Support/Microsoft/Office365/User Content.localized/Startup.localized/Word" ]]; then
/bin/echo "Microsoft Word 2016 detected. Necessary support directories for Endnote X7 Cite While You Write plug-ins for Word 2016 not found."
/bin/mkdir -p "/Library/Application Support/Microsoft/Office365/User Content.localized/Startup.localized/Word"
/usr/sbin/chown root:admin "/Library/Application Support/Microsoft" && /bin/chmod 775 "/Library/Application Support/Microsoft"
/usr/sbin/chown root:admin "/Library/Application Support/Microsoft/Office365" && /bin/chmod 775 "/Library/Application Support/Microsoft/Office365"
/usr/sbin/chown root:admin "/Library/Application Support/Microsoft/Office365/User Content.localized" && /bin/chmod 775 "/Library/Application Support/Microsoft/Office365/User Content.localized"
/usr/sbin/chown root:admin "/Library/Application Support/Microsoft/Office365/User Content.localized/Startup.localized" && /bin/chmod 775 "/Library/Application Support/Microsoft/Office365/User Content.localized/Startup.localized"
/usr/sbin/chown root:admin "/Library/Application Support/Microsoft/Office365/User Content.localized/Startup.localized/Word" && /bin/chmod 775 "/Library/Application Support/Microsoft/Office365/User Content.localized/Startup.localized/Word"
/bin/echo "Creating necessary support directories for Endnote X7 Cite While You Write plug-ins for Word 2016."
fi
########################################################################
## This re-copies the Endnote X7 Plug-in for Office 2016 ##
########################################################################
if [[ -e "/Library/Application Support/Microsoft/Office365/User Content.localized/Startup.localized/Word/" ]]; then
/usr/bin/ditto "/Applications/EndNote X7/Cite While You Write/EndNote CWYW Word 2016.bundle" "/Library/Application Support/Microsoft/Office365/User Content.localized/Startup.localized/Word/EndNote CWYW Word 2016.bundle"
/usr/sbin/chown -R root:admin "/Library/Application Support/Microsoft/Office365/User Content.localized/Startup.localized/Word"
/bin/echo "Copying Endnote X7 Cite While You Write plug-ins for Word 2016."
fi
########################################################################
## This re-copies the Endnote X7 Plug-in for Office 2011 ##
########################################################################
if [[ -e "/Applications/Microsoft Office 2011/Office/Startup/Word" ]]; then
/usr/bin/ditto "/Applications/EndNote X7/Cite While You Write/EndNote CWYW Word 2011.bundle" "/Applications/Microsoft Office 2011/Office/Startup/Word/EndNote CWYW Word 2011.bundle"
/usr/sbin/chown -R root:admin "/Applications/Microsoft Office 2011/Office/Startup/Word"
/bin/echo "Copying Endnote X7 Cite While You Write plug-ins for Word 2011."
fi
########################################################################
## This re-copies the Endnote X7 Plug-in for Office 2008 ##
########################################################################
if [[ -e "/Applications/Microsoft Office 2008/Office/Startup/Word" ]]; then
/usr/bin/ditto "/Applications/EndNote X7/Cite While You Write/EndNote CWYW Word 2008.bundle" "/Applications/Microsoft Office 2008/Office/Startup/Word/EndNote CWYW Word 2008.bundle"
/usr/sbin/chown -R root:admin "/Applications/Microsoft Office 2008/Office/Startup/Word"
/bin/echo "Copying Endnote X7 Cite While You Write plug-ins for Word 2008."
fi

view raw

gistfile1.txt

hosted with ❤ by GitHub

The script is also available on Github at the following address:

https://github.com/rtrouton/rtrouton_scripts/tree/master/rtrouton_scripts/endnote_x7_plug-in_installation

  1. Mark
    February 2, 2016 at 10:07 pm

    Hi Rich – do you have a link to the 7.5 update? Thomson haven’t updated their downloads page it seems.

  2. February 3, 2016 at 3:38 pm

    http://endnote.com/kb/136020 has the patcher (I don’t know why they are bothering with a patch rather than a pkg)

    Per rich on slack, check autopkg for an endnote x7 installer, it’ll pull down 7.5

  3. Mark
    February 3, 2016 at 6:56 pm

    Thanks, John.

  4. Gur
    February 18, 2016 at 6:51 am

    Direct download link for Endnote X7 17.5
    http://download.endnote.com/downloads/X7/EndNoteX7Installer.dmg

  5. Mark
    February 18, 2016 at 6:30 pm

    Thanks, Gur.

  1. No trackbacks yet.

Leave a comment