You can do this:
eval(UrlFetchApp.fetch("my url").getContentText())
Although it would be a lot faster/more efficient to cache the code in ScriptDb or CacheService and only fetch it fresh every 15 minutes or so.
Related Contents:
- TypeError: Cannot call method “getRange” of null. (line 9, file “Code”)
- Long processing time likely due to getValue and cell inserts
- Why do we use SpreadsheetApp.flush();?
- Convert column index into corresponding column letter
- Merging or Combining two onEdit trigger functions
- How to poll a Google Doc from an add-on
- onclick function runs automatically
- What is the best way to parse html in google apps script
- Which Edition of ECMA-262 Does Google Apps Script Support?
- How to read the correct time/duration values from Google Spreadsheet
- Global variables in Google Script (spreadsheet)
- Google Spreadsheet Script – How to Transpose / Rotate Multi-dimensional Array?
- Uploading Multiple Files to Google Drive with Google App Script
- How to Transpose / Rotate Multi-dimensional Array?
- How to go about debugging JavaScript in the HtmlService in Google Scripts
- How to allow access for importrange function via apps script?
- How to fix ‘TypeError: Cannot call method “getRange” of null’ in Google Apps Script
- How to copy a row from one google spreadsheet to another google spreadsheet using google apps script?
- How to update DocsList to DriveApp in my code
- UrlFetchApp request fails in Menu Functions but not in Custom Functions (connecting to external REST API)
- Google Apps Script toast messages don’t appear for anonymous editors
- How to Autofill last row with formula, when data is received from IFTTT on the last row?
- importing external javascript to google apps script [duplicate]
- Scraping data to google sheets from a website that uses JavaScript
- Emailing Google Sheet range (with or without formatting) as a HTML table in a Gmail message
- Set anonymous/dynamic functions to Menu
- How to run certain scripts under the authority of a specific user?
- Unexpected error on UrlFetchApp.fetch in Google Apps Script using basic authentication
- Generate PDF of only one sheet of my spreadsheet
- Embedding Google Apps Script in an iFrame
- How do I dynamically adjust css stylesheet based on browser width?
- How to upload a file via POST (doPost) to a Google Script’s Web App?
- When passing variable to function I get ‘Invalid argument’, but when I hard code it works in Apps Script
- Get today date in Google Apps Script
- Cross-domain requests stopped working due to no `Access-Control-Allow-Origin` header present in the response
- To exceed the ImportXML limit on Google Spreadsheet
- Upload file to my google drive with Google Apps Script (NO FORM IN GOOGLE)
- Normalize Array methods and return values
- Synchronize independent spreadsheet rows, filled by IMPORTRANGE()
- google script detect empty cell after edit or delete
- GmailApp – Add label to specific message, not the thread
- Handling multiple files from an input element in an array with Google Apps Script
- Display Spreadsheet Data to HTML Table
- What are some use cases for SpreadsheetApp.flush()?
- “Thinking in AngularJS” if I have a jQuery background? [closed]
- How can I parse a CSV string with JavaScript, which contains comma in data?
- Get a range’s start and end offset’s relative to its parent container
- Calling setState in a loop only updates state 1 time
- Why is PassportJS in Node not removing session on logout
- Javascript oddness with array of objects and indexOf