⚙️ Automation 📖 Official

Automation Script Generation

Generate Shell scripts with Cowork to automate daily repetitive tasks

★★☆ Intermediate 10-20 min January 11, 2025
📋

Scenario

Why not let your computer automatically handle repetitive daily tasks? Even if you don't know how to code, Cowork can help you generate automation scripts to eliminate repetitive work once and for all.

💬

Prompt

I want to create an automation script that:
- Automatically backs up the ~/Documents/ folder every day at 11 PM
- Backs up to external hard drive /Volumes/Backup/
- Only keeps the last 7 days of backups
- Sends a notification when backup is complete

Expected Result

Claude will: 1. Design automation solution 2. Create backup script (using rsync for incremental backup) 3. Set up scheduled task (cron/launchd) 4. Add notification feature

💡

Tips

  • Automation scripts will perform operations on your computer - make sure you understand the script contents or test first
  • You can combine multiple small scripts into a 'morning startup' or 'end of day' script
  • No programming knowledge required - just describe what you need in natural language