Guide
Using Multiple Scripts Together
Use this checklist when adding multiple generated Apps Scripts to the same Google Sheets or Google Slides project.
Back up existing code
Copy existing Code.gs and HTML files before adding another script. For important business files, make a copy of the Google file itself first.
Organize project and file names
Use clear Apps Script project names and file names so that Code.gs, HTML files, and generated guides are easy to match later.
Check duplicate function names
Functions such as setup helpers, run functions, onOpen, onEdit, and onFormSubmit can conflict when multiple scripts are pasted into one project. KOKOCAL_ prefixed functions are generated for safer integration.
Merge shared entry points
If an existing onOpen already exists, keep one onOpen function and add calls such as KOKOCAL_IncrementalSync_onOpen(e) or KOKOCAL_DuplicateFinder_onOpen(e) inside it.
Review menus and triggers
Check custom menu names and the Apps Script trigger list so the same trigger is not registered more than once.
Test one script at a time
Add, save, authorize, reload, and test each script before adding the next one. Use a copied file for the first verification.