Skip to content

CoachBirgit/adobe-illustrator-scripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

日本語の README はこちらです。

Adobe Illustrator Scripts

Download AllScripts.zip

This is a collection of scripts for Adobe Illustrator. I created it with simplicity and ease of use in mind.
Click the script name to jump to learn more about the script.
If you find a script that interests you, please download it from Download.

Artboard

Download Artboard.zip

Color

Download Color.zip

Layer

Download Layer.zip

Link

Download Link.zip

Path

Download Path.zip

Text

Download Text.zip

Utility

Download Utility.zip

Installation

Download the zip archive from Download or Releases and unzip it.
The scripts can be placed anywhere on your computer.
To run the scripts, from File > Scripts > Other Script... ( / Ctrl + F12 )

Note
In rare cases, the script may not work if you continue to use it.
In this case, restart Illustrator and try again.

Extensions, software

The following extensions or software make it easy to run scripts.

UI

ScriptUI Dialog Builder (SDB) was used to design the UI.
See also: ScriptUI-Dialog-Builder-Joonas.

Development Environment

OS: macOS Ventura 13.4
Test: Adobe Illustrator 2020-2023

License

All scripts are licensed under the MIT license.
See the included LICENSE file for more details.


Download Path.zip
This script adds any number of anchor points evenly spaced.
It is a slightly more user-friendly improvement to Object > Path > Add Anchor Points.

Add Anchor Points

Usage

  1. Select two or more anchor points with Direct Selection Tool, and run this script.
  2. Enter the number of anchor points to add.

Requirements

Illustrator CS4 or higher


Download Text.zip
This script changes a number to a 3-digit comma delimited string.

Add Numeric Separators

Usage

Select the text objects, and run this script.
Or, run this script in the text editing state.

Requirements

Illustrator CS or higher


Download Color.zip
This script adds selected gradients to Swatches.

Add Selected Gradients To Swatch

Usage

Select the path objects, and run this script.

Note
Text object and stroke color are not supported.

Requirements

Illustrator CS or higher


Download Path.zip
This script aligns objects in the center of space.

For example, alignInCenterOfSpace(Vertical).js: Align In Center Of Space

Usage

Select objects, and run this script.
The position of alignment depends on the reference point.

Note
The space excludes the stroke width.
Select at least three objects.

Requirements

Illustrator CS3 or higher


Download Utility.zip
This script splits and arranges all open windows.

Note
It has been implemented in the Application Bar since version 2022.

Arrange Windows

Usage

Just run this script.

Requirements

Illustrator CS6 or higher


Download Utility.zip
This script checks the day of the week.

Check Day Of Week

Usage

Select a date with the cursor, and run this script.

Note
If there is no year, it is considered as this year.
If the date is incorrect, a warning is issued.
The following formats are supported.

Format
YYYY/MM/DD, MM/DD/YYYY, DD/MM/YYYY,
YYYY-MM-DD, MM-DD-YYYY, DD-MM-YYYY,
YYYY.MM.DD, MM.DD.YYYY, DD.MM.YYYY,
YYYY MM DD,
YYYY年MM月DD日,
Jan(uary) (the) DD(st|nd|rd|th)(,) YYYY, MM DD(st|nd|rd|th)(,) YYYY,
DD(st|nd|rd|th) (of) Jan(uary)(,) YYYY, DD(st|nd|rd|th) MM(,) YYYY

Requirements

Illustrator CS4 or higher


Download Utility.zip
This script closes all documents.

Note
It has been implemented in the File menu since version 2021.

Usage

Just run this script. If there are unsaved documents, choose to save them or not.

Requirements

Illustrator CS4 or higher


Download Path.zip
This script closes the path objects.

Close Path

Usage

Select the path objects, and run this script.

Requirements

Illustrator CS or higher


Download Utility.zip
This script compares the scales of two objects.

Compare Scale

Usage

Select two objects, and run this script.

Note
The dimension units depend on the ruler units.

Requirements

Illustrator CS4 or higher


Download Path.zip
This script converts all anchor points to the corner.
The anchor point conversion options in the Control panel require the anchor point to be selected, but this script selects the entire object.

Convert All Anchor Points To Corner

Usage

Select the entire path with selection tool, and run this script.

Note
It is not necessary to select anchor points with Direct Selection Tool.

Requirements

Illustrator CS or higher


Download Color.zip
This script converts any colors in the Swatches panel to global or spot colors.

convertToGlobalColor.js: Convert To Global Color

convertToSpotColor.js: Convert To Spot Color

Usage

Select colors in the Swatches panel, and run this script.
If you don't select them, all colors will target.

Note
If there is a swatch with the same name, it will not convert.
When converting a process color to a global or spot color, the order in which the colors display changes because they reregister in the swatch.

Requirements

Illustrator CS or higher


Download Text.zip
This script converts types on a path to point types.

Convert Type On A Path To Point Type

Usage

Select type on a path object, and run this script.

Warning
The original type objects will delete.
Any effects applied in the appearance will be lost.

Requirements

Illustrator CS or higher


Download Text.zip
This script is equivalent to Visual Studio Code's Selection menu "Copy Line Down"( Option / Alt + Shift + ) & "Copy Line Up"( Option / Alt + Shift + ).
If you assign shortcuts using Keyboard Maestro, AutoHotkey or similar, you will be able to achieve more of a Visual Studio Code feel.
Both point and area types are supported.

Vscode Copy Line

For example, copyLineDown.js: Copy Line

Usage

Move the cursor to the line you want to copy, and run this script.
It is not necessary to select a line.

Warning
Since using copy and paste functions inside the script, it will lose if you have copied the content in advance.
Area type with wrapping may not work well.
In the case of copyLineDown.js, when copying the last line, a new line is added to work around a bug.

Note
Only one line can be copied. Multiple lines are not supported.
If you are using version 2020 or earlier, you will not be able to enter keyboard input after running the script.
If you want to enter text, you must click with the mouse.

Requirements

Illustrator CC 2018 or higher


Download Text.zip
This script is equivalent to Visual Studio Code's keyboard shortcut "Copy line (empty selection)"( / Ctrl + C ) & "Cut line (empty selection)"( / Ctrl + X ).
If you assign shortcuts using Keyboard Maestro, AutoHotkey or similar, you will be able to achieve more of a Visual Studio Code feel.
Both point and area types are supported.

For example, cutLine(emptySelection).js: Empty Selection

Usage

Move the cursor to the line you want to copy or cut, and run this script.
It is not necessary to select a line.

Warning
Linefeed are not included to work around a bug in Illustrator.
Area type with wrapping may not work well.

Note
If you are using version 2020 or earlier, you will not be able to enter keyboard input after running the script.
If you want to enter text, you must click with the mouse.

Requirements

Illustrator CC 2018 or higher


Download Color.zip
This script creates a color chart. Both CMYK and RGB colors are supported.

Create Color Chart

Usage

  1. Run this script.
  2. Select CMYK or RGB mode.
  3. Enter the target color values.
    If select a path or text object, its fill color value is used as the initial value.
  4. Select colors for the vertical and horizontal axis.
  5. Enter the increase or decrease value as a percentage.
  6. Select Addition or Intensity.
    • Addition the value of the steps is added as is.
    • Intensity the percentage of the target color is added. It is equivalent to Edit > Edit Colors > Saturate.
    Color Chart Settings
  7. Set the artboard size, color chip size, and units according to your preference.

Note
Spot color, gradient, and pattern are not supported.
Create a color chart in a new document.

Requirements

Illustrator CS6 or higher


Download Path.zip
This script creates grid lines on artboards.

Create Grid Lines

Usage

Just run this script.

Note
Grid spacing is determined by the Guides & Grid in Preferences.

Requirements

Illustrator CS or higher


Download Text.zip
This script is equivalent to InDesign's Type menu > Insert Special Character > Markers > Current Page Number.
Places a page number at a specified location on the artboards.

Create Page Numbers

Usage

  1. Run this script.
  2. Set up each parameter in the dialog that appears.
    • Position Position of the page number relative to the artboard.
    • Facing Pages If true, the facing page.
    • Start Page Number A start page number.
    • Section Prefix Add a Section Prefix in front of the page number. If facing page, in back of the page number.
    • Font Size Font size of the page number.
    • Margin Distance from the artboard. Switch the units according to the ruler units.

Note
The page numbering style is numeric only.
Assign page numbers in artboard order.

Requirements

Illustrator CS4 or higher


Download Text.zip
This script creates a threaded text. It can also be made from a mixture of point types and path objects.
Vertical text is also supported.

Create Threaded Text

Usage

  1. Select two or more text and/or path objects, and run this script. There is no need to convert to the area types in advance.
  2. Select an order of concatenation.
  3. Enter a value of the alignment position tolerance. (0 or higher number) Threaded Text Settings
  4. To convert the paths to the texts, check the Convert Path to Type checkbox and select either the Area Type or Type on a Path.

Note
The stacking order of objects and layers has no bearing on the order of concatenation.
When converting the path to the area type, ignore anchor points with fewer than two anchor points.
The units of the alignment position tolerance depend on the ruler units.

Requirements

Illustrator CC or higher


Download Path.zip
This script decreases selected anchor points clockwise or counterclockwise.

For example, decreaseSelectedAnchorPointsCW.js: Decrease Selected Anchor Points

Usage

Select any anchor points with Direct Selection Tool, and run this script.

Requirements

Illustrator CS or higher


Download Text.zip
This script is equivalent to Visual Studio Code's keyboard shortcut "Delete All Left"( + Backspace ) & "Delete All Right"( + Delete ).
If you assign shortcuts using Keyboard Maestro, AutoHotkey or similar, you will be able to achieve more of a Visual Studio Code feel.
Both point and area types are supported.

For example, deleteAllRight.js: Delete All Right

Usage

Move the cursor to the position of the character you want to delete and run this script.
It is not necessary to select a string to be deleted.

Warning
Since using copy and paste functions inside the script, it will lose if you have copied the content in advance.

Note
Only one line can be deleted. Multiple lines are not supported.
If you are using version 2020 or earlier, you will not be able to enter keyboard input after running the script.
If you want to enter text, you must click with the mouse.

Requirements

Illustrator CC 2018 or higher


Download Color.zip
This script deletes all swatches except None and Registration.

Delete All Swatches

Usage

Just run this script.

Note
Delete any swatches in use for the objects as well.

Requirements

Illustrator CS or higher


Download Layer.zip
This script deletes hidden layers.

Note
It has been implemented in the Layers panel menu since version 2021.

Delete Hidden Layers

Usage

Just run this script.

Requirements

Illustrator CS or higher


Download Layer.zip
This script deletes locked layers.

Delete Locked Layers

Usage

Just run this script.

Requirements

Illustrator CS or higher


Download Text.zip
This script deletes trailing spaces. Both point and area types are supported.

Delete Trailing Spaces

Usage

Select the text objects, and run this script.
It is not necessary to select a line.

Warning
Area type with wrapping may not work well.

Note
Delete tabs as well.

Requirements

Illustrator CS or higher


Download Layer.zip
This script deletes unused layers.

Delete Unused Layers

Usage

Just run this script.

Requirements

Illustrator CS or higher


Download Text.zip
This script deletes a word under the cursor. Both point and area types are supported.

Delete Word

Usage

Move the cursor to the position of the word you want to delete and run this script.
It is not necessary to select a word.

Warning
Since using copy and paste functions inside the script, it will lose if you have copied the content in advance.
Area type with wrapping may not work well.

Note
If you are using version 2020 or earlier, you will not be able to enter keyboard input after running the script.
If you want to enter text, you must click with the mouse.

Requirements

Illustrator CC 2018 or higher


Download Path.zip
This script breaks apart the path object with anchor points.

Disjoin Path

Usage

Select the path objects, and run this script.

Warning
The original path object will be deleted.

Requirements

Illustrator CS or higher


Download Path.zip
This script distributes objects evenly spaced in space.

For example, distributeInSpace(Vertical).js: Distribute In Space

Usage

Select objects, and run this script.
The position of alignment depends on the reference point.

Note
The space excludes the stroke width.
Select at least three objects.

Requirements

Illustrator CS3 or higher


Download Path.zip
This script draws a circumscribed circle through 3 or 2 anchor points.

Draw Circumscribed Circle

Usage

Select 3 or 2 anchor points with Direct Selection Tool, and run this script.

Note
For two anchor points, it is the diameter.
Anchor points for type on a path and area types are also supported.

Requirements

Illustrator CS or higher


Download Path.zip
This script draws a rectangle on a selected object.

Draw Rectangle

Usage

  1. Select the path objects, and run this script.
  2. Enter a margin value.
    To include stroke width, check the Include stroke width checkbox.

Note
The rectangle is drawn with no fill and stroke width.
The units of margin value depend on the ruler units.

Requirements

Illustrator CS4 or higher


Download Path.zip
This script draws shapes on anchor points.

Draw Shape On Anchor Point

Usage

  1. Select the path objects, and run this script.
  2. Select a shape.
  3. Enter a shape size.
  4. Check the Draw Handle Position checkbox if you want to draw the shapes on the handle positions.

Note
If you select anchor points with Direct Selection Tool, the shape is drawn only for the selected anchor points.
The handle position is drawn with a stroke.
The units of shape size depend on the ruler units.

Requirements

Illustrator CS4 or higher


Download Text.zip
This script encloses words in parentheses.

Enclose Word In Parentheses

Usage

Move the cursor to the position of the word you want to enclose and run this script.
If you select text ranges, enclose them.

Warning
Since using cut and paste functions inside the script, it will lose if you have copied the content in advance.
Area type with wrapping may not work well.

Note
If you are using version 2020 or earlier, you will not be able to enter keyboard input after running the script.
If you want to enter text, you must click with the mouse.

If you want to enclose it with other characters, change lines 41 and 42 inside the script.
For example, if you enclose it in brackets:

var parentheses = {
    start: '[',
    end: ']'
};

Requirements

Illustrator CC 2018 or higher


Download Color.zip
This script exports color values of a path object or swatches to a CSV file.

Export Color Values To CSV

Usage

Select path objects or swatches, and run this script.
If you want to export all swatches, deselect path objects and swatches.

Note
If you want to get the swatch name, use a global color.
Export to the desktop.
Prioritize the path object over swatches.
Text object and gradient are not supported.

Requirements

Illustrator CS or higher


Download Path.zip
This script extends and shrinks handles. It also changes the angle.

Extend Handle

Usage

  1. Select one or two anchor points with Direct Selection Tool, and run this script.
  2. Enter a positive value in the Distance fields to extend or a negative value to shrink.
  3. Enter a positive value in the Angle fields will rotate counterclockwise. Enter a negative value clockwise.

Note
Handles cannot delete.
The angle increases or decreases based on the current value.
The units of distance depend on the ruler units.

Requirements

Illustrator CS4 or higher


Download Path.zip
This script extends and shrinks a path object.

Extend Line

Usage

  1. Select an anchor point with Direct Selection Tool, and run this script.
  2. Enter a positive value to extend or a negative value to shrink.

Warning
Closed paths and curves are not supported.

Note
The units of distance depend on the ruler units.

Requirements

Illustrator CS4 or higher


Download Color.zip
This script extracts colors as swatches from the gradient stops.

Extract Colors From Gradient

Usage

Select the path objects or swatches, and run this script.

Note
Prioritize the path object over swatches.
To extract color from swatches, deselect the path objects.
Text object and stroke color are not supported.

Requirements

Illustrator CS or higher


Download Path.zip
This script fits guide objects in an artboard.

Fit Guide In Artboard

Usage

Select guide objects, and run this script.

Note
Closed paths and curves are not supported.

Requirements

Illustrator CS or higher


Download Color.zip
This script generates the gradient color from fill colors or swatches.

Generate Gradient Color

Usage

Select the path objects or swatches, and run this script.

Note
Prioritize the path object over swatches.
To generate gradient color from swatches, deselect the path objects.
Text object and stroke color are not supported.

Requirements

Illustrator CS4 or higher


Download Text.zip
This script is equivalent to Visual Studio Code's Go menu > "Go to Line/Column..."( Ctrl + G ).
If you assign shortcuts using Keyboard Maestro, AutoHotkey or similar, you will be able to achieve more of a Visual Studio Code feel.
Both point and area types are supported.

Vscode Go to Line

Go to Line

Usage

  1. Run this script in the text editing state.
  2. Enter a line number or select a line from the list below that you want to move.

Warning
Since using copy and paste functions inside the script, it will be lost if you have copied the content in advance.

Note
Pan that the selected line is centered in the window.
If you are using version 2020 or earlier, you will not be able to enter keyboard input after running the script.
If you want to enter text, you must click with the mouse.

Requirements

Illustrator CC 2018 or higher


Download Text.zip
This script moves the cursor to the beginning of the next or previous text while in the text editing state.
Both point and area types are supported.

For example, goToNextText.js: Go to Text

Usage

Run this script in the text editing state.

Warning
Since using cut and paste functions inside the script, it will lose if you have copied the content in advance.
It will not move to locked, hidden, or threaded texts. The layer also as well.

Note
The cursor moving order is text stacking order.
Pan that the next or previous text is centered in the window.
If you are using version 2020 or earlier, you will not be able to enter keyboard input after running the script.
If you want to enter text, you must click with the mouse.

Requirements

Illustrator CC 2018 or higher


Download Color.zip
This script highlights the searched words with the fill color.
Both CMYK and RGB colors are supported.

Highlight Word

Usage

  1. Select any text objects, and run this script.
  2. Enter a word. Regular expressions are supported.
  3. Use the slider to specify the color if necessary.

Requirements

Illustrator CS4 or higher


Download Color.zip
This script imports a CSV file to the Swatches panel.

Import CSV To Swatch

Usage

  1. Run this script.
  2. Select a CSV file.

Note
Make sure the document color mode and CSV file format are the same.

Format

CSV files are available in the following 3 formats.

Note
Commas or tabs separate columns.
Line 1 is used as the title.
The swatch name is not required.

For CMYK:
Cyan Magenta Yellow Black Swatch name
100 0 0 0 Cyan
For RGB:
Red Green Blue Swatch name
255 0 0 Red
For HEX:
Hex Swatch name
FF0000 Red

Note
The leading "#" may be omitted in the case of Hex color.
If the Hex color is 3-digit, it behaves like CSS. (e.g. #F0F becomes #FF00FF.)

Requirements

Illustrator CS or higher


Download Path.zip
This script increases selected anchor points clockwise or counterclockwise.

For example, increaseSelectedAnchorPointsCW.js: Increase Selected Anchor Points

Usage

Select any anchor points with Direct Selection Tool, and run this script.

Requirements

Illustrator CS or higher


Download Text.zip
This script is equivalent to Visual Studio Code's keyboard shortcut "Insert Line Above"( / Ctrl + Shift + Enter ) & "Insert Line Below" ( / Ctrl + Enter ).
If you assign shortcuts using Keyboard Maestro, AutoHotkey or similar, you will be able to achieve more of a Visual Studio Code feel.
Both point and area types are supported.

For example, insertLineBelow.js: Insert Line

Usage

Move the cursor to the line below or above you want to add a line, and run this script.
It is not necessary to move the cursor to the end of the line.

Warning
Area type with wrapping may not work well.

Note
If you are using version 2020 or earlier, you will not be able to enter keyboard input after running the script.
If you want to enter text, you must click with the mouse.

Requirements

Illustrator CC 2018 or higher


Download Layer.zip
This script inverts locked layers.

Invert Locked Layer

Usage

Just run this script.

Requirements

Illustrator CS or higher


Download Layer.zip
This script inverts visible layers.

Invert Visible Layer

Usage

Just run this script.

Requirements

Illustrator CS or higher


Download Text.zip
This script adjusts tracking to align point texts at both ends.
Vertical text is also supported.

Justify Content Space Between

Usage

Select point text objects and a reference path object, and run this script.
Text objects can also align with each other. In this case, select only the text objects.

Note
Different font sizes mixed within a single-line point text will not work well.
The text position does not change.
The object to use as a reference will be the longest one.

Requirements

Illustrator CS or higher


Download Color.zip
This script matches the location of the gradient stops and midpoints.

Match Location Of Gradient Stop

Usage

  1. Select two or more gradients in the Swatches panel, and run this script.
  2. Select a source gradient.

Note
Only gradients in the Swatches panel are supported.

Requirements

Illustrator CS4 or higher


Download Utility.zip
This script is an alternative to the Measure Tool and accurately measures the distance between two anchor points.

Measure the Distance

Usage

Select two anchor points with Direct Selection Tool, and run this script.

Note
Highlight the measurement points.
The angle is based on point #1. Range: -180.0 to 180.0
The dimension units depend on the ruler units.
Anchor points for type on a path and area types are also supported.
Due to the small font size, labels will not appear when enlarged above 15500%.

Requirements

Illustrator CS4 or higher


Download Path.zip
This script moves all guide objects to a specified layer, frontmost, and backmost.

Move Guides

Usage

  1. Run this script. There is no need to select any guide objects.
  2. Select a destination.
    Layer Move to the specified layer. If it does not exist, create a new layer.
    Bring to Front Move to the frontmost of each layer.
    Send to Back Move to the backmost of each layer.

Note
Guides in locked or hidden layers are not supported.

Requirements

Illustrator CS6 or higher


Download Text.zip
This script is equivalent to Visual Studio Code's Selection menu "Move Line Down"( Option / Alt + ) & "Move Line Up"( Option / Alt + ).
If you assign shortcuts using Keyboard Maestro, AutoHotkey or similar, you will be able to achieve more of a Visual Studio Code feel.
Both point and area types are supported.

Vscode Move Line

For example, moveLineDown.js: Move Line

Usage

Move the cursor to the line you want to move, and run this script.
It is not necessary to select a line.

Warning
Since using copy and paste functions inside the script, it will lose if you have copied the content in advance.
Area type with wrapping may not work well.
In the case of moveLineUp.js, when moving the last line, a new line is added to work around a bug.

Note
Only one line can be moved. Multiple lines are not supported.
If you are using version 2020 or earlier, you will not be able to enter keyboard input after running the script.
If you want to enter text, you must click with the mouse.

Requirements

Illustrator CC 2018 or higher


Download Layer.zip
This script moves sublayers to the main layer above.

Move Sublayer To Main Layer

Usage

Just run this script.

Requirements

Illustrator CS or higher


Download Color.zip
This script changes the text color randomly by word, character or sentence.
Both CMYK and RGB colors are supported.

Random Text Color

Usage

  1. Select the text objects, and run this script.
  2. Assign the threshold value with the slider.
  3. Click the Random button to assign a color according to the threshold value.

Note
If there are many characters, the conversion will take time.
Some characters, such as periods and commas, are not applied.

Requirements

Illustrator CS4 or higher


Download Link.zip
This script is equivalent to InDesign's Links panel menu "Relink File Extension...".

Relink File Extension

Usage

  1. Run this script.
    If you don't select linked files, all in the document replace.
  2. Enter an extension.

Warning
Missing linked files and embedded link files not replaced.
Place the relink files in the same place as the original files.

Note
When selecting linked files, select them in the document rather than the links panel.

Requirements

Illustrator CS4 or higher


Download Link.zip
This script is an enhanced version of relinkFileExtension.js.

Relink File Extension Extra

Usage

  1. Run this script.
    If you don't select linked files, all in the document replace.
  2. Choose to Replace or Add.
    To Replace, you can use regular expressions.
    To Add, enter a string to be added to the prefix, suffix, or both of the original file names.
  3. Enter an extension.
    If you don't enter an extension, it uses the original file extension.

Warning
Missing linked files and embedded link files not replaced.
Place the relink files in the same place as the original files.

Note
When selecting linked files, select them in the document rather than the links panel.

Requirements

Illustrator CS4 or higher


Download Link.zip
This script is equivalent to InDesign's Links panel menu "Relink to Folder...".
Replace linked files with a file of the same name in the selected folder.

InDesign's Relink To Folder

Usage

  1. Run this script.
    If you don't select linked files, all in the document replace.
  2. Select a folder in the dialog that appears.

Warning
Missing linked files and embedded link files not replaced.

Note
When selecting linked files, select them in the document rather than the links panel.

Requirements

Illustrator CS4 or higher


Download Path.zip
This script removes fill and stroke colors in all guide objects.

Remove Color In Guide Object

Usage

Just run this script. There is no need to select any guide objects.

Note
If you have added fill or stroke colors in the Appearance panel, they may not work properly.

Requirements

Illustrator CS6 or higher


Download Color.zip
This script deletes the Deleted Global Color displayed in the Separations Preview panel.

Remove Deleted Global Color

Usage

Just run this script.

Note
In rare cases, you may not be able to delete it.
If you save the file and reopen it, it may be restored.
In this case, there is no way to delete it.

Requirements

Illustrator CS or higher


Download Link.zip
This script resets the scale to 100% and the rotation angle to 0 degrees for the linked files.
Embedded link files are also supported.

Reset To Full Scale

Usage

Select linked files or embedded link files, and run this script.

Requirements

Illustrator CS6 or higher


Download Color.zip
This script rounds color values. Both fill and stroke colors are supported.

Round Color Value

Usage

Select the objects, and run this script.

Requirements

Illustrator CS or higher


Download Color.zip
This script rounds the location of the gradient color stops and midpoints.
Both fill and stroke colors are supported.

Round Location Of Gradient Stops

Usage

Select the objects, and run this script.

Requirements

Illustrator CS or higher


Download Link.zip
This script selects embedded link files.

Usage

Just run this script.

Warning
Locked or hidden embedded link files are not selected. The layer also as well.

Requirements

Illustrator CS or higher


Download Path.zip
This script selects all guide objects.

Usage

Just run this script.

Warning
Guides in locked or hidden layers are not supported.

Requirements

Illustrator CS6 or higher


Download Link.zip
This script selects the specified link files.

Select Link

Usage

  1. Run this script.
  2. Enter a file name. It can also be part of the file name. Or select it from the list below.
    If the text field is empty, all linked files are selected. Regular expressions are supported.

Note
Locked or hidden linked files are not selected. The layer also as well.
Missing linked files may not be selected.

Requirements

Illustrator CS4 or higher


Download Path.zip
This script shifts selected anchor points clockwise or counterclockwise.

For example, shiftSelectedAnchorPointsCW.js: Shift Selected Anchor Points

Usage

Select any anchor points with Direct Selection Tool, and run this script.

Requirements

Illustrator CS or higher


Download Artboard.zip
This script shows the artboard name and size in the document.

Show Artboard Name

Usage

Just run this script.

Note
The dimension units depend on the ruler units.

Requirements

Illustrator CS4 or higher


Download Color.zip
This script shows color values. Both fill and stroke colors are supported.

Show Color Values

Usage

Select path objects, and run this script.

Note
CMYK, RGB, HEX, grayscale, spot color, and pattern are supported.
Text object and gradient are not supported.

Requirements

Illustrator CS or higher


Download Path.zip
This script shows the dimension of the anchor point between two points of the path objects.

Show Dimensions

Usage

Select the path objects, and run this script.

Note
Supports curves.
Group and color dimensions by path object.
The dimension units depend on the ruler units.
In complex shapes, dimensions may be displayed overlapping each other.

Requirements

Illustrator CS6 or higher


Download Color.zip
This script shuffles the gradient color.

Shuffle Gradient Color

Usage

Select the path objects, and run this script.

Note
Only a fill color. A stroke color is not supported.
For compound path objects, select them with Direct Selection Tool.

Requirements

Illustrator CS or higher


Download Path.zip
This script shuffles the objects.

Shuffle Objects

Usage

Select the objects, and run this script.

Requirements

Illustrator CS or higher


Download Artboard.zip
This script sorts the artboards in the Artboards panel.

Sort Artboards

Usage

Just run this script.

Note
Only the Artboards panel. Artboards in the document are not sorted.

Requirements

Illustrator CS5 or higher


Download Text.zip
This script splits a point text by lines, words, or characters.
Vertical text is also supported.

Split Text

Usage

  1. Select any point text objects, and run this script.
  2. Select lines, words, or characters.

Note
Area types are not supported.
If there are many characters, it will take time to split them.
After splitting, the text position may move slightly.

Requirements

Illustrator CS4 or higher


Download Text.zip
This script splits a point text at the cursor position.
Vertical text is also supported.

Split Text at Cursor Position

Usage

Move the cursor to the position you want to split, and run this script.

Note
Area types are not supported.
In the case of multi-lines, the layout will break.
After splitting, the text position may move slightly.

Requirements

Illustrator CS6 or higher


Download Path.zip
This script is equivalent to InDesign's Edit menu "Step and Repeat...".

Step and Repeat

Usage

  1. Select any objects, and run this script.
  2. If you want to create as a grid, check the create as a grid.
  3. Enter the number of times to repeat.
  4. Enter the offset values.

Note
The units of the offset value depend on the ruler units.

Requirements

Illustrator CS4 or higher


Download Utility.zip
This script sums the numbers in text contents.

Sum Numbers

Usage

Select text objects, and run this script.
You can also recalculate using only selected items from the list.

Note
Ignore the units of value.
Only one-byte numbers are supported.

Requirements

Illustrator CS4 or higher


Download Text.zip
This script swap the text contents.

Swap Text Contents

Usage

Select two text objects, and run this script.

Requirements

Illustrator CS or higher


Download Utility.zip
This script synchronizes the scale ratio and the position of the current work area for all documents.

Sync View

Usage

Just run this script.

Note
Open at least two files.

Requirements

Illustrator CS or higher


Download Text.zip
This script changes the text alignment without moving the position.
Vertical text is also supported.

For example, textAlign_Center.js: Text Align

Usage

Select point text objects, and run this script.

Requirements

Illustrator CS or higher


Download Utility.zip
This script toggles the Align panel menu > Align to Glyph Bounds > Point Text and Area Text.

Toggle Align To Glyph Bounds

Usage

Just run this script.

Requirements

Illustrator 2020 or higher


Download Utility.zip
This script toggles the Preferences > Selection & Anchor Display > Anchor Points, Handle, and Bounding Box Display > Show handles when multiple anchors are selected.

Toggle Show Handles

Usage

Just run this script.

Requirements

Illustrator CC or higher


Download Layer.zip
This script unifies layer colors.

Unify Layer Colors

Usage

Select a target layer, and run this script.

Note
Sublayers are also supported.

Requirements

Illustrator CS or higher


License

All scripts are licensed under the MIT license.
See the included LICENSE file for more details.

About

This is a collection of scripts for Adobe Illustrator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%