Sahaj Kashyap · tools for classrooms and offices
A folder for every name on a list, made in one step, in your own Google Drive. And if you like, documents sorted into them by what they say.
Every school year starts with lists. A class list, a bus list, a list of who still owes a permission slip. Sooner or later someone needs a folder for every name on one of them, and types them in one at a time.
Folder Maker is a Google Sheet that does it in one step. Paste the list, type a name for the big folder, and click Make the folders. A box shows how many folders will be made and the first few names, so you can check before anything happens. Then a folder appears in Google Drive for every name.
Make your own copy (free) Read the code
| Name for the big folder | Emergency forms 2026-27 | |
| Name (or first name) | Last name (only if in its own column) | Class or group (optional) |
|---|---|---|
| Ada | Marsh | Room 4 |
| Ben | Okafor | Room 4 |
| Pippa | Fenwick | Room 5 |
And what it makes in Google Drive:
The names are invented, for the example.
Once the folders exist, the same Sheet can file documents into them. Drop scans, photos, PDFs, Word files or Google Docs into a folder called Arrivals, and each one goes where its words say it belongs.
| If the document says | Look at | Put it in this folder | Then by name |
|---|---|---|---|
| Permission slip | Top of the page | Permission slips | ☐ |
| Live Scan | Anywhere | Live Scan | ☑ |
Google reads the words in each document, scans and phone photos included. Rows are checked from the top, and the first one that matches decides. If no row matches, a full name from the list decides. A document that matches nothing, or names two people, goes to Unsorted for a person to look at. It never guesses. Every document gets a line on a Sorting log tab saying where it went and why.
One more use I keep thinking about: a folder for every child, made on the first day, ready to hold a year of their work. A portfolio of each child's work can start the same day the class list does.
I directed Claude to write the code, then tested it with made-up names in two separate Google accounts before anyone used it with a real list. Sorting was tested the same way: a grid of 116 practice documents on the Mac, every one in the right place, then a real run in Google Drive with scans, photos, a PDF and a Word file. The code is a short Google Apps Script attached to the Sheet: Code.js makes the folders, Sorter.js sorts, and appsscript.json, in the same folder, holds its settings. Google will ask you to allow it into your Drive, because that is where the folders go, and, for sorting, to read your documents and run on a timer. What it does there is in the code for anyone to read.