In Practice: Organizing and Converting Files
On this page7 items
In 10 seconds
The first thing to try with Cowork is organizing files. You can see the result at a glance, and you can undo it if it goes wrong.
Getting a success under your belt first makes every later decision faster.
In No.27 we drew the boundaries. Now let’s actually run it.
Start with organizing files. There are three reasons: the result is obvious at a glance, mistakes can be undone, and it is the part of manual work that eats the most time.
Renaming#
This is the entry point for the quotes job. File names arriving from suppliers look like this:
見積書.pdf
mitsumori_final2.pdf
20260825_お見積り(修正).pdf
scan_0012.pdfLet’s make them consistent. Being able to look at the contents to decide the name is what sets this apart from a simple rename tool.
Rename the PDFs in this folder using the following rules.
・Format: "YYYY-MM-DD_CompanyName_Quote.pdf"
・Read the date and company name from the contents of the PDF
・Leave any file you can't read with its name unchanged, and report them in a list
・Write the original file names out to report.md as a rename listThe last two lines are what No.11 was about: how to handle what it couldn’t read, and a record you can trace later. With those two in place, you can recover even if something goes wrong.
Sorting#
Next is where things go.
Move the PDFs in this folder into a subfolder for each company.
Name each folder after the company. Anything whose company name can't be read goes to "_Unsorted".
Before moving anything, show me a list of which files will go where.The line “before moving anything, show me a list” is the safety device here. It corresponds to the “where should it stop” idea from No.19.
Converting#
Now change the format.
From the PDFs in this folder, extract the product name, quantity, unit price and delivery date,
and combine them into a single Excel file (quote_list.xlsx).
・One row per product. Put a company name column first
・Unit prices as numbers, displayed with comma separators
・Add a total row at the end, and use formulas
・Leave any item you can't read blank, and list them on a separate sheet as "Needs checking"Writing “use formulas” makes a difference. A table with pasted values and a table with formulas are useful in different ways afterwards. Cowork can build tables with working formulas.
How to check#
Always check the files it produces. Cowork’s results are easy to overlook, so turning the check into a routine is the reliable approach.
- Count the items. If there were 5 input PDFs, are there 5 companies?
- Look at the edges. Are the first and last rows correct?
- Open the “Needs checking” sheet. Do the reasons for the blanks make sense?
- Compare just one item against the original
Number 4 is the one that pays off. You can’t compare everything, but one item takes 30 seconds. That’s enough to reveal the quirks in how it extracts data.
Try it: Do a round trip in a folder you won’t miss (5 minutes)
Create a test folder and copy about five random files into it.
Prompt
“`
Rename the files in this folder using the following rules.・Format: “number_original file name” (numbers start at 01)
・Order by last modified date, oldest first
・Before running, show me a list of the changes
“`Check the list, then say “Go ahead.”
Expected result: The list appears first, and the files are actually renamed only after you approve.
If it doesn’t work: If it ran without asking, the approval mode is set to “skip all”. Go back to No.27 and check the setting.
Common pitfalls#
Having it move or delete things right away. Renames can be undone, but moved files are hard to find, and deletions can’t be undone. Get used to it in this order: read only → rename → move → delete.
Running without seeing the list first. With 5 items you can check by eye. That small extra step is what gives you peace of mind when it becomes 50.
Not saving instructions that worked. The renaming rules are the same next month. Save them and reuse them (No.14, No.25).
Summary#
- Start with organizing files. The results are visible and can be undone
- Always include how to handle what it couldn’t read, and a record you can trace later in your instructions
- Have it show you a list before running
- Check four things: count, edges, “Needs checking”, and one item against the original