Scriptary

← All AI-created software

This is AI-generated (aka vibe-coded) software. It is specific to my needs and my system and may not work for you or yours. Support is limited, but if you report a bug I'll certainly look into it. The code is provided in the zip file for you to review should you choose.
⬇️ Download Scriptary.zip7.2 MBLast Updated: November 27, 2026PythonWindowsPowerShell

A Windows library for your Python, PowerShell and batch scripts: it reads each script’s arguments into a form, remembers the values you use, and runs the scripts in a built-in terminal, alone, in chains, on schedules or from a keyboard shortcut.

Scriptary’s main window: the script list, a script’s parameters and the output of its last run
On this page

Features

  • One library for .py, .pyw, .ps1 and .bat scripts, in groups and folders, with tags, notes and search.
  • Argument forms read from argparse code, PowerShell’s param() block or a batch file’s %1–%9.
  • Saved values per script, a live preview of the command, aliases for parameters and {{variables}} for values.
  • Output tabs on a real terminal: colors, progress bars and typed input work, and the tabs reopen after a restart.
  • Chains of scripts, schedules and reminders, and keyboard shortcuts of your own.
  • Undo, redo and a full change history of the library, the saved values and the settings.
  • Runs as administrator, and launches apps with a window detached so they outlive Scriptary.
  • One library shared by several computers through OneDrive, with safe, atomic saves.

Usage

Scriptary needs Windows and Python 3.8 or later with Tkinter (python.org’s installer includes it).

python -m pip install pyte pystray pillow
pythonw scriptary.pyw

pyte is required (Scriptary offers to install it if it is missing). pystray and Pillow are optional: they add a tray icon, and closing the window then hides it in the tray.
pywinpty is needed only on Windows older than 10 (1809).
The interface uses the Archivo font when its .ttf files are in Resources\Fonts beside scriptary.pyw or installed, and Segoe UI otherwise. Only one copy runs at a time: starting it again brings the window to the front.

Adding scripts

+ Add registers one script and Scan every script in a folder tree (virtual environments, site-packages and hidden folders are skipped).
Refresh reads the scripts again. Python arguments are read from the source without running it; for a parser built at run time, right-click → Detect Arguments by Running Script….
Scripts that open a window (⧉) or need administrator rights (⛨) are detected and can be filtered on.

Running a script

Select a script, fill in its parameters and click Run. Fields are text boxes, ON/OFF switches, or a row of buttons for an option’s choices= (clicking the lit one again leaves the option out); path fields have browse and open buttons.
Save keeps the values; unsaved edits are kept as you switch scripts, and ● Unsaved counts them. The COMMAND box shows exactly what will run.
%USERPROFILE% and other environment variables are expanded at each run, and {{name}} is replaced by a variable from Manage → Variables….

Each run opens an output tab with the script’s colors and progress bars; type into STDIN to answer prompts. Tabs have Stop, Find (Ctrl+F), Copy output and Save output, can be pinned from their right-click menu, and reopen with their output the next time Scriptary starts.

Organizing the library

Scripts are listed under the folder they are in, or in groups you make with + Group. The right-click menu moves, clones, labels, tags, tucks away (behind a “+ N more” line) or archives a script. SORT sorts by name, date registered or last run; FILTER narrows the list by GUI, admin, last result, file type, tags and more. Ctrl+click and Shift+click select several scripts for one action.

Chains, schedules and shortcuts

  • Chains (Manage → Chains…) run scripts one after another on their saved values, stopping at the first that fails. Chains in the top strip runs one.
  • Schedules (right-click → Schedule) run a script or chain at set times while Scriptary runs (in the tray counts), or mark it ⏰ until you run it. A missed run is made up once.
  • Keyboard shortcuts (right-click → Keyboard Shortcut…): Ctrl+Shift or Ctrl+Shift+Alt with a letter, digit or F-key runs a script or chain on its saved values, or opens a Manage window or clicks a button. Keys another program has taken are refused.

Run as administrator, and detached launches

Run as admin asks Windows for administrator rights and still shows the output in a tab. Scripts with a window are launched detached (right-click → Launch Detached): no console and no tab, and they keep running when Scriptary closes. The run is still recorded, and its output is shown only if it fails or ends within five seconds.

Undo and history

Undo (Ctrl+Z) and Redo (Ctrl+Y) reverse changes to the library, saved values and settings.
History lists every change with what it did, to undo one change, roll back to a point in time, or restore one script.

Reports

Manage opens reports over the library: parameter names (to give many parameters one alias), parameters without help, unused saved values, saved paths, find and replace in saved values, a run report, archived scripts, tags, a script list to export as TSV for Excel, and scripts in a folder that aren’t registered yet. Click a heading to sort a table; drag a column’s edge to size it, or double-click the edge to fit the column to its contents. Windows reopen where you left them.

Where data is kept

The data files are beside scriptary.pyw, or in the folder given with --working-folder-path. Each starts with the computer’s name (OFFICE-PC_registry.json), so several computers can share one folder on OneDrive, and script paths are stored against %OneDrive%, %USERPROFILE% and the like so they work on each. Files are saved atomically; a damaged file is kept as .corrupt-DATE.json and the last good copy (.bak) is offered back.

Command line

Use python.exe for these, so the output appears; python scriptary.pyw --help lists every option.

  • --command add|remove|list|run: do this in the console instead of opening the window (blank: open the window).
  • --script-file-path FILE: the script to add.
  • --script-name NAME: the script to remove or run, by ID (or its first 6 characters), label or file name.
  • --working-folder-path FOLDER: where the data files are, created if needed; relative to Scriptary’s folder (blank: Scriptary’s folder).
  • --show-self-restart-option TRUE: add Restart Scriptary and Restart as Administrator to the menus.
  • --selftest TRUE: check Scriptary’s own functions without touching the library.

--command run uses the saved values and exits with the script’s own exit code. Scriptary exits with 1 when a command can’t be done (no such script, a name that matches several, a damaged file) and 2 for a command-line mistake.

Keyboard shortcuts

Key Action
Ctrl+F Go to the search box (in an output tab: find in its output)
Esc Clear the search; close Find
↑ / ↓ Move through the script list
Ctrl+Z, Ctrl+Y Undo, redo a library change (in a text field: its text)
Ctrl+Home, Ctrl+End Scroll an output tab to the top, the bottom
Enter Send typed input to the script; next match in Find
Delete Remove the selected row in a Manage window

Troubleshooting

  • No colors or progress bars: install pyte and restart Scriptary.
  • A PowerShell script is blocked: check Get-ExecutionPolicy -List in the PowerShell your PowerShell path uses, or add -ExecutionPolicy Bypass to it.
  • Accents are garbled in PowerShell 5.1: save the script as UTF-8 with BOM, or use pwsh.exe.
  • “Unknown variable {{name}}”: define it in Manage → Variables…, or change the value.
  • A detached script never showed its window: right-click it → Run in a Tab to see its output.
  • Undid something by mistake: press Ctrl+Y, or redo it from History.

Limitations

  • Windows only.
  • Arguments are read from the source; a parser built at run time needs Detect Arguments by Running Script….
  • Chains and scheduled runs skip scripts that need administrator rights, unless Scriptary itself runs as one.
  • Scheduled runs happen only while Scriptary is running.
  • Variable values show in commands and logs: don’t use them for passwords.
⬇️ Download Scriptary.zip7.2 MBLast Updated: November 27, 2026PythonWindowsPowerShell

← All AI-created software