adobe-illustrator-scripting
What it does
This tool helps create and fix code (scripts) that automate tasks in Adobe Illustrator. It uses a language called ExtendScript (similar to JavaScript) to make Illustrator do things like automatically create or modify designs, layers, and text.
When to use it
- βWhen you want Illustrator to create or change designs automatically.
- βIf an Illustrator automation script isn't working and you need to fix it.
- βTo make Illustrator export many designs in different formats at once.
Skill link
https://github.com/github/awesome-copilot/blob/main/skills/adobe-illustrator-scripting/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCreate a script that changes the color of all blue objects to red in my current document.β
5 new skills a week. 1 minute to read.
How it works
You write code in ExtendScript that tells Illustrator exactly what to do, step by step. The AI can help you write this code or find errors in code you already have.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Adobe Illustrator Scripting
Expert guidance for automating Adobe Illustrator through ExtendScript (JavaScript/JSX). This skill covers the Illustrator scripting object model, all major API objects, code patterns, and best practices for writing production-quality .jsx scripts.
Bundled Assets
references/object-model-quick-reference.md: Use this as a quick lookup for the Illustrator scripting object model, common document and page item types, and related DOM concepts while writing or debugging scripts.scripts/: Contains example Illustrator automation scripts you can use as starting points or implementation patterns for common tasks such as document manipulation, exports, batch processing, and DOM usage. Review and adapt these examples when you need working JSX patterns or want to compare behavior while debugging.
When to Use This Skill
- Writing new Illustrator automation scripts (
.jsxor.jsfiles) - Debugging or fixing existing Illustrator ExtendScript code
- Manipulating documents, layers, page items, paths, text, or colors programmatically
- Batch-processing Illustrator files or generating artwork from data
- Exporting documents to various formats (PDF, SVG, PNG, EPS, etc.)
- Working with the Illustrator DOM (Application, Document, Layer, PathItem, TextFrame, etc.)
- Creating data-driven graphics using variables and datasets
- Automating print workflows with scripted print options
Prerequisites
- Adobe Illustrator CC or later installed
- Basic JavaScript knowledge (ExtendScript is ES3-based with Adobe extensions)
- Scripts are executed via File > Scripts > Other Scripts, the Scripts menu, or placed in the Startup Scripts folder
- The ExtendScript Toolkit (ESTK) or any text editor can be used to write
.jsxfiles
Scripting Environment
Language and File Extensions
| Language | Extension | Platform |
|---|---|---|
| ExtendScript/JavaScript | .jsx, .js |
Windows, macOS |
| AppleScript | .scpt |
macOS only |
| VBScript | .vbs |
Windows only |
This skill focuses on ExtendScript/JavaScript as the cross-platform, most widely used option.
Executing Scripts
- Scripts menu: File > Scripts lists scripts from the application scripts folder
- Other Scripts: File > Scripts > Other Scripts to browse and run any
.jsxfile - Startup Scripts: Place scripts in the Startup Scripts folder to run automatically on launch
- Target directive: Begin scripts with
#target illustratorwhen running from ESTK or external tools #targetenginedirective: Use#targetengine "session"to persist variables across script executions- External invocation: Scripts are frequently launched from outside Illustrator β by shell scripts, task runners, CI jobs, ExtendScript Toolkit (
ExtendScript Toolkit.exe -run script.jsx), orBridgeTalkmessages from other Adobe apps. See External Invocation & Argument Passing.
Naming Conventions (JavaScript)
- Objects and properties use camelCase:
activeDocument,pathItems,textFrames - The
appglobal references theApplicationobject - Collection indices are zero-based:
documents[0]is the frontmost document - Use
typenameproperty to identify object types at runtime
Object Model Overview
The Illustrator DOM follows a strict containment hierarchy:
Application (app)
βββ activeDocument / documents[]
β βββ layers[]
β β βββ pageItems[] (all artwork)
β β βββ pathItems[]
β β βββ compoundPathItems[]
β β βββ textFrames[]
β β βββ placedItems[]
β β βββ rasterItems[]
β β βββ meshItems[]
β β βββ pluginItems[]
β β βββ graphItems[]
β β βββ symbolItems[]
β β βββ nonNativeItems[]
β β βββ legacyTextItems[]
β β βββ groupItems[]
β βββ artboards[]
β βββ views[]
β βββ selection (array of selected items)
β βββ swatches[], spots[], gradients[], patterns[]
β βββ graphicStyles[], brushes[], symbols[]
β βββ textFonts[] (via app.textFonts)
β βββ stories[], characterStyles[], paragraphStyles[]
β βββ variables[], datasets[]
β βββ inkList[], printOptions
βββ preferences
βββ printerList[]
βββ textFonts[]
Top-Level Objects
- Application (
app): The root object. Provides access to documents, preferences, fonts, and printers. Key properties:activeDocument,documents,textFonts,printerList,userInteractionLevel,version.
β¦
FAQ
Do I need to be an expert programmer to use this?
It's helpful to have basic JavaScript knowledge, but the AI can assist even if you know little, by explaining commands and logic.
What is 'ExtendScript'?
It's a programming language based on JavaScript that Adobe uses to automate its software, like Illustrator.
Can I use this to create any kind of automation in Illustrator?
Yes, as long as the task can be described in logical steps that Illustrator understands. It covers most of the program's functions.
Details
Original description by the author
Write, debug, and optimize Adobe Illustrator automation scripts using ExtendScript (JavaScript/JSX). Use when creating or modifying scripts that manipulate documents, layers, paths, text frames, colors, symbols, artboards, or any Illustrator DOM objects. Covers the complete JavaScript object model, coordinate system, measurement units, export workflows, and scripting best practices.
repo: github/awesome-copilot
Popularity
- GitHub stars
- 40k
- Ranking position
- #7040
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
acquire-codebase-knowledge
40kHelps your agent understand and document an existing code project. It's useful for onboarding new people or getting an overview of the architecture.
acreadiness-assess
40kEnables your agent to assess a project's readiness for AI and generate a report. It's useful for understanding how well a project is prepared to use AI tools.
acreadiness-generate-instructions
40kHelps your agent create instructions for AI tools based on an assessment. It's useful for improving how AI interacts with code and closing identified gaps.
acreadiness-policy
40kEnables your agent to help define or apply policies for AI project assessment. It's useful for standardizing how projects are evaluated and ensuring compliance.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.