KOKOCAL SCRIPT

Guide

Using Multiple Scripts Together

Use this checklist when adding multiple generated Apps Scripts to the same Google Sheets or Google Slides project.

1

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.

2

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.

3

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.

4

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.

5

Review menus and triggers

Check custom menu names and the Apps Script trigger list so the same trigger is not registered more than once.

6

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.