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.
More Related Contents:
- Convert column index into corresponding column letter
- onclick function runs automatically
- How to read the correct time/duration values from Google Spreadsheet
- Google Spreadsheet Script – How to Transpose / Rotate Multi-dimensional Array?
- Global variables in Google Script (spreadsheet)
- How much faster are arrays than accessing Google Sheets cells within Google Scripts?
- Unexpected error on UrlFetchApp.fetch in Google Apps Script using basic authentication
- Google Apps Script toast messages don’t appear for anonymous editors
- Cross-domain requests stopped working due to no `Access-Control-Allow-Origin` header present in the response
- Synchronize independent spreadsheet rows, filled by IMPORTRANGE()
- How to upload a file via POST (doPost) to a Google Script’s Web App?
- How to Autofill last row with formula, when data is received from IFTTT on the last row?
- How to Transpose / Rotate Multi-dimensional Array?
- How to fix ‘TypeError: Cannot call method “getRange” of null’ in Google Apps Script
- How to update DocsList to DriveApp in my code
- How to run certain scripts under the authority of a specific user?
- Set anonymous/dynamic functions to Menu
- Embedding Google Apps Script in an iFrame
- What does “[Ljava.lang.Object;@” mean?
- Upload file to my google drive with Google Apps Script (NO FORM IN GOOGLE)
- Handling multiple files from an input element in an array with Google Apps Script
- Google apps script – iterate folder and subfolder
- What is the best way to parse html in google apps script
- Google Script HTML form from Library throws error Uncaught
- Add content of showModalDialog() to the clipboard Google Script
- How to Call Google Apps Script from Web Page
- Google apps script: how to persist data in spreadsheet between different function calls?
- Using base64-encoded images with HtmlService in Apps Script
- Add timestamp to named column in Google Spreadsheet onEdit script
- Converting Google spreadsheet date into a JS Date object?