Journey

the first script that changed everything

|

written in

2025
|

reading time

7 min

key insight

"i didn't just write code. i changed how an entire workflow functioned."

author

Tea Nguyen

full-stack problem-solver

"insights from real conversations and real problems"

EN: The First Script That Changed Everything

Almost a year ago, I built my first proper automation. It started as a small Google Form fix for messy photo uploads but became a full workflow change. That moment was when I realized what it really means to solve problems with code.

The issue looked simple: photos for auction lots were being dumped into one folder with random names, making it impossible to match them to items. Before that, people even sent photos via WhatsApp, which compressed them and ruined quality.

I wrote a script that sorted photos into folders by lot number automatically. For the first time, everything was where it should be, saving hours of manual sorting. But there was still a problem: filenames needed a strict format like 6_1.jpg, 6_2.jpg.

Apps Script could rename files but painfully slowly. So I switched to a local batch script. It renamed hundreds of photos in seconds. Suddenly, uploading was faster and cleaner. The only manual task left was choosing the best cover photo.

That small script became Version 2 of our photo workflow, saving hours per auction and supporting six-figure sales. It wasn’t fancy code, but it made a real impact.

What I learned was bigger than just automation:

  • Sometimes you don’t just improve a process — you have to rebuild it.
  • Real-world automation isn’t about big, complex systems. Tiny scripts can save weeks of work.
  • People resist change, but with compromise (like asking them to pick just one cover photo), adoption is possible.

That first script was my turning point. It wasn’t just about code; it was about changing how people work.


VI: Đoạn mã đầu tiên đã thay đổi tất cả

Gần một năm trước, mình đã tạo ra đoạn tự động hóa đầu tiên thực sự. Ban đầu nó chỉ là một chỉnh sửa nhỏ trên Google Form để xử lý ảnh bị lộn xộn, nhưng rồi đã trở thành một thay đổi hoàn toàn cho cả quy trình. Đó chính là khoảnh khắc mình nhận ra thế nào là giải quyết vấn đề bằng code.

Vấn đề nhìn bề ngoài có vẻ đơn giản: ảnh các lô hàng bị dồn hết vào một thư mục, tên file thì ngẫu nhiên, khiến việc ghép ảnh với từng món gần như bất khả thi. Trước đó, mọi người còn gửi ảnh qua WhatsApp, làm chất lượng giảm tới 80%.

Mình viết một đoạn script để tự động phân loại ảnh theo số lô. Lần đầu tiên, mọi thứ được sắp xếp đúng vị trí, tiết kiệm hàng giờ làm việc thủ công. Nhưng vẫn còn một vấn đề: tên file phải tuân theo định dạng chặt chẽ như 6_1.jpg, 6_2.jpg.

Google Apps Script có thể đổi tên file nhưng quá chậm. Vì thế mình chuyển sang viết một script chạy trực tiếp trên máy tính. Nó đổi tên hàng trăm file chỉ trong vài giây. Ngay lập tức việc tải lên trở nên nhanh và gọn hơn. Nhiệm vụ thủ công duy nhất còn lại chỉ là chọn ảnh bìa đẹp nhất.

Đoạn script nhỏ đó trở thành phiên bản 2 của quy trình xử lý ảnh, tiết kiệm hàng giờ cho mỗi phiên đấu giá và hỗ trợ doanh số hàng trăm nghìn bảng. Code không phức tạp, nhưng tác động thì rõ ràng.

Điều mình học được lớn hơn nhiều so với chuyện tự động hóa:

  • Đôi khi không chỉ cải tiến một quy trình, mà phải xây lại từ đầu.
  • Tự động hóa thực tế không cần hệ thống khổng lồ. Những đoạn script nhỏ vẫn có thể tiết kiệm hàng tuần công việc.
  • Con người luôn ngại thay đổi, nhưng nếu tìm được sự thỏa hiệp (như chỉ yêu cầu chọn ảnh bìa), thì họ vẫn chấp nhận được.

Đoạn script đầu tiên đó chính là bước ngoặt của mình. Không chỉ là viết code, mà là thay đổi cách mọi người làm việc.

what do you think?

this article might've started as a scribble on the back of a receipt during a bus ride, a spark of something real after a conversation over a pint of leffe, or notes from a sunday afternoon client call that left me buzzing with ideas. however it came to be, i hope it found you at just the right moment.

if it stirred something in you, or if you're just curious about anything from automating the boring bits of your business to capturing your quiet magic in a coffee shop shoot. shall we pencil something into the diary?

i'd love to be on the other end of the conversation.