I Built Three Desktop Automations in an Hour. I Still Can't Write a For Loop.
A copy-and-paste AI prompt that generates lightweight Python and AppleScript automations for repetitive file management, image resizing, and text formatting. Built for solopreneurs who refuse to learn code but love owning their workflow.
There is a category of work that no app store fills. It is too small for a SaaS product and too specific for a generic tool. It is the weird, repetitive task that lives on your own computer: renaming four hundred client photos, resizing screenshots before uploading, stripping formatting out of pasted text, or moving files into folders based on what is in their name. You know the work. You have been doing it by hand. And every time you do it, some part of you whispers: there has to be a faster way.
There is. But until recently, the faster way required you to become a programmer. Not anymore. A well-structured AI prompt can generate a lightweight script — Python on Windows, AppleScript or Shortcuts on Mac — that solves your exact problem in under a minute. The script runs on your machine, owes nothing to a subscription service, and works until your operating system changes so dramatically that you buy a new laptop anyway. This is what I mean by code-as-an-asset. You are not becoming a developer. You are commissioning one, one thirty-second prompt at a time.
The Dirty Secret About No-Code
No-code tools are brilliant for web apps, CRMs, and integrations. But they have a blind spot: your actual desktop. Zapier can not peek inside a folder on your hard drive and intelligently rename files based on their contents. Make.com can not resize every image in a directory and append -thumbnail to the filename. These are local, file-level operations that live outside the API economy. That is exactly where a tiny script shines. It lives on your machine, costs zero dollars per month, and executes in milliseconds.
Why Desktop Scripts Beat Another Subscription
The average solopreneur is already paying for seven software subscriptions. Adding an eighth for a file-renaming utility feels absurd. A script, by contrast, is a one-time creation event. You generate it, you save it, you run it forever. If you are already using AI to streamline marketing workflows or bookkeeping categorization, adding desktop scripts is the logical next layer. It moves automation from the cloud down to the metal of your own machine.
The Generation Prompt
This is the core asset. Not the script itself — the prompt that produces it. A good generation prompt tells the AI exactly what you want done, what your operating system is, and how the script should behave when edge cases appear. Save this prompt in your notes app. Reuse it with different variables for an entire family of tools.
You are an expert automation scripter for solo business owners.
I need a script to automate this task:
{{DESCRIBE THE TASK IN PLAIN ENGLISH}}
My operating system: {{macOS / Windows}}
My comfort level: I do not know how to code. The script must be copy-and-paste ready.
Requirements:
1. Ask me for the target folder path before doing anything destructive.
2. Process files one by one and print a status line for each one.
3. If a file is locked, in use, or unreadable, skip it and keep going.
4. Create a log file named automation-log.txt in the same folder listing every action taken.
5. Do NOT delete original files unless I explicitly asked for it. Default to leaving originals alone.
6. Add comments explaining what each section does so I can tweak it later.
7. If this is macOS, prefer Python 3 (built-in) or AppleScript. If Windows, prefer PowerShell or Python.
8. Include a one-line test at the bottom I can run to verify it works on a dummy file.
Return ONLY the script and a 3-line explanation of how to run it.Three Scripts Worth Building This Weekend
1. The Smart File Renamer
You download two hundred mixed-case screenshots from a client call. Some have spaces, some have underscores, some are named Screenshot-2026-01-15-at-10.30.12-AM.png. You need them all lowercase, hyphenated, and prefixed with the client code. A script walks the folder, normalizes every filename, and logs the changes. What used to be forty-five minutes of clicking is now a double-click.
2. The Batch Image Resizer
Your blog images are six megabytes each and your site speed is suffering. You need every image in a folder scaled to twelve hundred pixels wide, saved as eighty-percent quality JPEG, with -web appended to the filename. A Python script using the built-in PIL library does this in seconds. No Photoshop. No online converter harvesting your files. Just a local tool that lives in your Utilities folder.
3. The Clipboard Text Scrubber
You paste text from PDFs and it arrives with broken line breaks, random hyphens, and weird unicode bullets. A tiny AppleScript or AutoHotkey utility watches your clipboard, cleans the text automatically, and beeps when it is ready to paste. It sounds niche until you realize you do this twenty times a day.
How to Actually Run These Things
| Platform / Method | Best For | Learning Curve | Nuance |
|---|---|---|---|
| macOS Shortcuts | Visual learners, simple file ops | Low — drag-and-drop | Powerful but slow for bulk operations. Good for image resizing, bad for regex. |
| Python 3 | Cross-platform, complex logic | Low if AI writes it | Already installed on Mac. Windows users install once. The most future-proof option. |
| AppleScript | Deep Mac integration | Medium — reads like English until it doesn't | Can control Finder, Mail, and Preview directly. Brittle after OS updates. |
| PowerShell | Windows power users | Medium | Extremely capable for file ops. Overkill for simple renames but scales forever. |
| AutoHotkey | Windows hotkeys & clipboard | Medium | The clipboard scrubber example is trivial in AHK. Steeper syntax than it looks. |
Debugging Like a Pro (Without Being One)
Scripts break. Usually because a filename has an accent mark, or a folder path has a space the AI forgot to quote. The trick is not learning to debug code. The trick is learning to debug with AI. When a script throws an error, paste the error message and the script back into the model with this follow-up prompt.
The script below threw this error:
ERROR MESSAGE: {{PASTE_ERROR_HERE}}
SCRIPT:
{{PASTE_SCRIPT_HERE}}
Fix it. Requirements:
1. Do not change the overall behavior — only fix what caused the error.
2. If the error is a "file not found" issue, add a check that verifies the path exists before using it.
3. If the error is a permissions issue, print a friendly message telling me which file was skipped and why.
4. Return the full corrected script.Most errors fall into three categories: paths with spaces need quotes, special characters in filenames need handling, and the script tried to open a file that was locked by another app. The debugging prompt above handles all three by default. You are not fixing the script. You are just describing the symptom and letting the model prescribe the cure. Same as you would with a client onboarding workflow or a marketing copy draft.
When to Stop Prompting and Start Hiring
There is a ceiling. If your script needs to talk to a database, authenticate with an API, or run on a schedule across five machines, you have graduated from prompt-generated scripts to actual software engineering. That is fine. The goal of code-as-an-asset is not to avoid developers forever. It is to handle the eighty percent of small, annoying automations without pulling out a credit card or opening a job posting. Save your engineering budget for the problems that genuinely require it.
If you are already building AI Automation workflows for your business, desktop scripts are the missing middle layer. They bridge the gap between cloud tools and the actual files sitting on your hard drive. Own the prompt. Own the script. Own the workflow.
This is the desktop counterpart to the self-hosted n8n guide — same prompt-engineering muscle, different runtime. If you'd rather start with a hosted app, the no-code Lovable app guide covers that path. More in the automation guides.
Frequently asked questions
- AppleScript is the most fragile — major macOS releases can deprecate commands. Python 3 and Shortcuts are remarkably stable. PowerShell on Windows barely changes. If you want insurance, generate your scripts in Python and keep the generation prompt saved. Re-running the prompt on a new OS takes thirty seconds.
Written by
Dani
AI Workflow Explorer
Dani writes SoloPrompt AI — a working notebook of copy-paste prompts, low-code automations, and field-tested workflows for solo operators. Equal parts skeptic and tinkerer, Dani road-tests every prompt against real micro-business problems before it ships.