Skip to content

Instantly share code, notes, and snippets.

@rtrouton
Created November 22, 2016 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtrouton/9d30ac8038fc6de0e924179f1087fd36 to your computer and use it in GitHub Desktop.
Save rtrouton/9d30ac8038fc6de0e924179f1087fd36 to your computer and use it in GitHub Desktop.
Generic EndNote 8 site license installer script
#!/bin/bash
# The EndNote 8 site license is stored in /Applications/EndNote X8/.license.dat
# and has a format that looks like this:
#
# Company Name
# 1234567890
# V2ZMQT6556P8WMH38MTQ6YSM8UXCCRYQ5MDS4WJGLKMP7RGSWECBCMT77556P8WCE8KMTQ6YSMNXJCCRYQ59MD9WJGLKMCSESSWECBCMB76556P8WCU3NMTQ6YSMLUYCCRYQ5MET8WJGLKMPSMJSWECBCM57F556P8WCU3CMTQ6YSM9DECCRYQ59XSCWJGLKMPNE9SWECBCMB79556P8WCH8KMTQ6YSMDXECCRYQ5MTSMWJGLKMPYRMSWECBCB7W7556P8W
#
# To use this script, copy what’s in your existing site license file to the "$endnote_license" value and add "\n" (no quotes) where you need line breaks.
# The current "$endnote_license" values correspond to the example above.
#
# Note: The "Company Name" value may show up twice in your .license.dat file. If it does, make sure to add it twice to the "$endnote_license" value
# or your license may not work properly with EndNote.
endnote_license="Company Name\n1234567890\nV2ZMQT6556P8WMH38MTQ6YSM8UXCCRYQ5MDS4WJGLKMP7RGSWECBCMT77556P8WCE8KMTQ6YSMNXJCCRYQ59MD9WJGLKMCSESSWECBCMB76556P8WCU3NMTQ6YSMLUYCCRYQ5MET8WJGLKMPSMJSWECBCM57F556P8WCU3CMTQ6YSM9DECCRYQ59XSCWJGLKMPNE9SWECBCMB79556P8WCH8KMTQ6YSMDXECCRYQ5MTSMWJGLKMPYRMSWECBCB7W7556P8W"
endnote_license_file="/Applications/EndNote X8/.license.dat"
if [[ -e "$endnote_license_file" ]]; then
rm -rf "$endnote_license_file"
fi
if [[ ! -e "$endnote_license_file" ]]; then
printf "$endnote_license" > "$endnote_license_file"
chmod 755 "$endnote_license_file"
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment