Langsung ke konten
Skillpedia
Pemrograman umum40k Β· #7040

adobe-illustrator-scripting

Fungsinya

Tool ini membantu membuat dan memperbaiki kode (script) yang mengotomatiskan tugas di Adobe Illustrator. Tool ini menggunakan bahasa bernama ExtendScript (mirip JavaScript) agar Illustrator bisa melakukan hal-hal seperti membuat atau memodifikasi desain, layer, dan teks secara otomatis.

Kapan dipakai

  • βœ“Saat Anda ingin Illustrator membuat atau mengubah desain secara otomatis.
  • βœ“Jika script otomatisasi Illustrator tidak berjalan dan Anda perlu memperbaikinya.
  • βœ“Untuk membuat Illustrator mengekspor banyak desain dalam berbagai format sekaligus.

Link skill

https://github.com/github/awesome-copilot/blob/main/skills/adobe-illustrator-scripting/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/github/awesome-copilot/blob/main/skills/adobe-illustrator-scripting/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuatkan script yang mengubah warna semua objek biru menjadi merah di dokumen saya saat ini.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Anda menulis kode dalam ExtendScript yang memberi tahu Illustrator dengan tepat apa yang harus dilakukan, langkah demi langkah. AI dapat membantu menulis kode ini atau mencari kesalahan pada kode yang sudah Anda miliki.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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 (.jsx or .js files)
  • 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 .jsx files

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 .jsx file
  • Startup Scripts: Place scripts in the Startup Scripts folder to run automatically on launch
  • Target directive: Begin scripts with #target illustrator when running from ESTK or external tools
  • #targetengine directive: 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), or BridgeTalk messages from other Adobe apps. See External Invocation & Argument Passing.

Naming Conventions (JavaScript)

  • Objects and properties use camelCase: activeDocument, pathItems, textFrames
  • The app global references the Application object
  • Collection indices are zero-based: documents[0] is the frontmost document
  • Use typename property 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.

…

Pertanyaan umum

Apakah saya harus menjadi programmer ahli untuk menggunakan ini?

Akan membantu jika Anda punya pengetahuan dasar JavaScript, tetapi AI tetap bisa membantu meskipun Anda sedikit tahu, dengan menjelaskan perintah dan logikanya.

Apa itu 'ExtendScript'?

Itu adalah bahasa pemrograman berbasis JavaScript yang digunakan Adobe untuk mengotomatiskan perangkatnya, seperti Illustrator.

Apakah ini bisa dipakai untuk membuat otomatisasi apa pun di Illustrator?

Bisa, selama tugas tersebut dapat dijelaskan dalam langkah-langkah logis yang dipahami Illustrator. Ini mencakup sebagian besar fungsi program.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
40k
Peringkat
#7040
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa