Built by Best ROI Media · First-Party IntegrationMITWave 4 · LiveBestRoiMedia/bestroi-game-tools
Adobe Bridge
Headless macOS ExtendScript bridge for Adobe Illustrator and Photoshop.
AI-facing CLI that drives locally installed Adobe Illustrator and Photoshop via osascript and ExtendScript JSX for batch brushes, vector tracing, path offsetting, filters, and layer exports.
View on GitHub ↗
Quick clone
git clone https://github.com/BestRoiMedia/bestroi-game-tools.gitWhy we built it
Programmatic SVG generators lack real artistic vector brushes and Photoshop raster filters. This bridge lets agents apply native Illustrator brush libraries or Photoshop layer ops safely without touching open user documents.
Architecture & how it works
Validates op lists offline, builds a temporary JSX job script, executes it via macOS osascript do javascript, closes documents without saving on completion or error, and maps AppleScript/ExtendScript errors to structured JSON diagnostics.
Key capabilities
- Illustrator ops: real brush library strokes (ai-brush), Image Trace (ai-trace), offset, outline_stroke, LiveEffects, SVG/PNG/AI export
- Photoshop ops: gaussian_blur, add_noise, unsharp, median, resize, recorded actions, flatten, and per-layer PNG export
- Non-destructive execution that refuses overwriting input files and always closes documents unsaved
- Mapped error diagnostics for macOS Automation permissions (-1743), modal timeouts, and JSX line errors
Usage example
Apply an Illustrator charcoal brush or export Photoshop layersPython
python3 adobe/adobe.py doctor
python3 adobe/adobe.py ai-brush ./in.svg --brush "Charcoal - Feather" --stroke-width 0.6 --out-svg ./out.svg --out-png ./out.png
python3 adobe/adobe.py ps ./in.png --ops '[{"op":"add_noise","amount":3},{"op":"export_layers","dir":"./layers"}]'Requires macOS Automation permission for the terminal/runner; includes an offline selftest.