Rename a messy folder of job photos, PDFs and receipts by date and customer, and sort them into folders, after you approve the plan.
Who it is for
Owners with a downloads or camera folder full of IMG_4821.jpg and scan(3).pdf who need to find a job's files fast.
Tools
The ChatGPT desktop app with Codex (macOS, Windows or Linux)
A copy of the folder you want to sort
Your naming pattern, for example 2026-11-04_Delgado_furnace_photo-1.jpg
Steps
Copy the messy folder. Work only on the copy.
Open the ChatGPT desktop app, open the copied folder, and select Codex from the ChatGPT dropdown. Keep permissions on Ask for approval.
Paste the prompt below with your naming pattern and any customer names you want it to look for.
Read the plan Codex writes (old name, new name, folder). Fix anything wrong in chat before you say go.
Tell it to go. Spot-check 10 files, then delete the original only when you are happy.
The prompt
This folder is a copy of my job files: photos, PDFs and receipts. Help me rename and sort them.
Naming pattern: [e.g. YYYY-MM-DD_Customer_job_type-number.ext]
Customers to look for in file names or PDF text: [LIST, or "none"]
Folders to sort into: [e.g. one folder per customer, plus "receipts" and "unsorted"]
Step 1: Do not change anything yet. Write plan.csv with: old name, new name, folder, and how you got the date and customer (file date, name, or text inside). Put anything you are unsure of in "unsorted".
Step 2: Show me a summary and wait for me to say go.
Step 3: After I say go, rename and move the files exactly as in the plan, and write undo.csv so every change can be reversed.
Rules: never delete a file. Never overwrite a file with the same name; add a number instead. Stay inside this folder.
Tips
Start with one month of files to see if you like the names.
Photo dates come from the file, which can be the day you copied it. Check a few against your calendar.
Keep the same pattern every month so files sort in date order.