Based on the answer here by Cameron Roberts, you can use the eval() function on the appscript UrlFetchApp function.
eval(UrlFetchApp.fetch('http://path.to/external/javascript.js').getContentText());
More Related Contents:
- Convert column index into corresponding column letter
- Google Spreadsheet Script – How to Transpose / Rotate Multi-dimensional Array?
- How to copy a row from one google spreadsheet to another google spreadsheet using google apps script?
- Emailing Google Sheet range (with or without formatting) as a HTML table in a Gmail message
- Uploading Multiple Files to Google Drive with Google App Script
- Google Sheets add-on: Set anonymous/dynamic functions to Menu using Google App Script
- UrlFetchApp request fails in Menu Functions but not in Custom Functions (connecting to external REST API)
- How to load javascript from external source and execute it in Google Apps Script
- Synchronize independent spreadsheet rows, filled by IMPORTRANGE()
- How to speed up the search data in sheet
- How to Autofill last row with formula, when data is received from IFTTT on the last row?
- How to go about debugging JavaScript in the HtmlService in Google Scripts
- How to fix ‘TypeError: Cannot call method “getRange” of null’ in Google Apps Script
- How to run certain scripts under the authority of a specific user?
- Set anonymous/dynamic functions to Menu
- To exceed the ImportXML limit on Google Spreadsheet
- What does “[Ljava.lang.Object;@” mean?
- GmailApp – Add label to specific message, not the thread
- Using Google Apps Script to scrape Dynamic Web Pages
- What is the best way to parse html in google apps script
- Add content of showModalDialog() to the clipboard Google Script
- Is google apps script synchronous?
- Call Library function from html with google.script.run
- Google Script: Play Sound when a specific cell change the Value
- Failure of calling Google App Script onEdit function many times in a second
- How do I dynamically adjust css stylesheet based on browser width?
- Get today date in Google Apps Script
- Google Apps Script HTML Form
- Display Spreadsheet Data to HTML Table
- Display Spreadsheet Data to HTML Table