A Google Apps Script utility collection for working with Google Sheets, Drive, PDF export, and email delivery workflows.
Repository: https://github.com/Kraiany/KraianySheetsUtilities
appsscript.json— Apps Script project manifestexampleConfig.js— example configuration filecreateFullBackup.js— backup generation utilitiesdriveFiles.js— Google Drive file and folder helpersfindOrCreateFolder.js— folder lookup / creation helperexportPDFs.js— PDF generation and delivery orchestrationpdf.js— PDF export helper functionsrenderString.js— template string rendererrenderFiles.js— email/template renderer using HTML templatessendEmail.js— email sending helper with attachmentsgetBlobByRangeName.js— blob creation by named rangenameRanges.js— named range support utilitiesNamedRangesReport.js— named range reportinggetLibraryHtml.js— library HTML helperuiDelieveryProgress.js— delivery progress UI helperuiWarnBatchEmails.js— batch email warning dialogUI.js— general UI helpersProgressDialog.html— progress dialog HTML templateDoW_UK.js— utility for day-of-week formatting in UkrainianJapaneseYear.js— Japanese year formatting helper
This repository is designed for spreadsheet-driven workflows that need export, delivery, and reporting capabilities around Google Sheets data. It includes utilities for rendering templates, generating PDFs, managing Drive folders, emailing attachments, and showing UI dialogs during operations.
- Open the project in the Google Apps Script editor or use
claspfor local development. - Copy
exampleConfig.jsto a local configuration file if needed, then update IDs, email settings, and template references. - Grant required permissions for Drive, Spreadsheet, HTML service, and Mail services when prompted.
- Run
exportPDFsto generate PDFs and optionally deliver them by email or save them to Drive. - Use
sendEmailandrenderFilesto build HTML/text email content from templates. - Use
nameRangesandNamedRangesReportfor named range management and reporting. - Use UI helpers like
uiWarnBatchEmailsanduiDelieveryProgressto display prompts and progress during batch operations.
Optional clasp workflow:
npm install -g @google/clasp
clasp login
clasp clone <scriptId>Then push or pull files using the Apps Script project ID.
Clone this repository:
git clone https://github.com/Kraiany/KraianySheetsUtilities.git
cd KraianySheetsUtilitiesThis project is maintained by Kraiany. See LICENSE file for details.