Skip to content

Add local auto-print utility to watch folder and print new files#1

Open
netpoint2 wants to merge 1 commit into
mainfrom
codex/create-program-to-print-pages
Open

Add local auto-print utility to watch folder and print new files#1
netpoint2 wants to merge 1 commit into
mainfrom
codex/create-program-to-print-pages

Conversation

@netpoint2

Copy link
Copy Markdown
Owner

Motivation

  • Provide an opt-in local utility to automatically send newly added documents and images in a folder to the default printer to streamline printing workflows.

Description

  • Add print_every_page.py, a polling-based folder watcher that detects new files with extensions .pdf, .txt, .png, .jpg, and .jpeg and sends them to the default system printer.
  • Implement platform-aware printing commands using lp on macOS/Linux and PowerShell Start-Process ... -Verb Print on Windows, and include a --dry-run flag for safe previews.
  • Add CLI parsing for folder, --interval, and --dry-run and input validation to ensure the target is a directory.
  • Add README.md with usage examples, supported types, flags, and OS notes.

Testing

  • Ran python3 -m py_compile print_every_page.py and it completed successfully.
  • Ran python3 print_every_page.py --help and it printed the help text successfully.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant