This is a collection of scripts for Adobe Illustrator. I created it with simplicity and ease of use in mind.
Click the titles to jump to learn more about the script.
If you find a script that interests you, please download it from .
- Add Selected Gradients to Swatch
- Convert to Global / Spot Color
- Create Color Chart
- Delete All Swatches
- Export Color Values to CSV
- Extract Colors from Gradient
- Generate Gradient Color
Update
- Highlight Word
- Import CSV to Swatch
- Match Location of Gradient Stop
- Random Text Color
- Remove Deleted Global Color
- Round Color Value
- Round Location of Gradient Stop
- Show Color Values
- Shuffle Gradient Color
- Delete Hidden Layers
- Delete Locked Layers
- Delete Unused Layers
- Invert Locked Layer
- Invert Visible Layer
- Move Sublayer to Main Layer
- Rename Layer
- Unify Layer Colors
- Bulk Relink
- Relink File Extension
- Relink File Extension Extra
- Relink to Folder
- Rename Linked File
- Reset to Full Scale
- Select Embedded Link
- Select Link
- Add Anchor Points
- Align in Center of Space
- Align Objects
- Close Path
- Convert All Anchor Points to Corner
- Create Grid Lines
- Decrease Selected Anchor Points
- Disjoin Path
- Distribute in Space
- Draw Circumscribed Circle
- Draw Normal Line
- Draw Rectangle
- Draw Shape on Anchor Point
- Draw Shape Parallel to Path Segment
- Extend Handle
- Extend Line
- Fit Guide in Artboard
- Increase Selected Anchor Points
- Move Guides
- Rearrange Objects
- Remove Color in Guide Object
- Select Guides
- Shift Selected Anchor Points
- Show Dimensions
- Shuffle Objects
- Step and Repeat
- Add Numeric Separators
- Convert Type on a Path to Point Type
- Copy Line Up / Down
- Copy / Cut Line (empty selection)
- Create Page Numbers
- Create Text Parallel to Path Segment
- Create Threaded Text
- Delete All Left / Right
- Delete Trailing Spaces
- Delete Word
- Enclose Word in Parentheses
- Go to Line
- Go to Next / Previous Text
- Insert Line Above / Below
- Justify Content Space Between
- Move Line Up / Down
- Sort Lines
- Split Text
Update
- Split Text at Cursor Position
Update
- Swap Text Contents
- Text Align Left / Center / Right
- Arrange Windows
- Fit Selected Objects in Window
- Navigate to First / Last / Next / Previous Artboard
- Sync View
- Align to Glyph Bounds
Bug Fix
- Fill New Type Objects With Placeholder Text
New
- Paste Remembers Layers
- Select Same Tint Percentage
New
- Show Character Alternates
New
- Show Handles
- Transform Pattern Tiles
New
- Use Preview Bounds
New
- Zoom to Selection
New
- Zoom with Mouse Wheel
New
Download the zip archive from
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.
The following extensions or software make it easy to run scripts.
- SPAi (Mac / free software)
- Scripshon Trees (free extension)
- LAScripts (free extension)
- Keyboard Maestro (Mac / paid software)
- AutoHotkey (Windows / free software)
ScriptUI Dialog Builder (SDB) was used to design the UI.
See also: ScriptUI-Dialog-Builder-Joonas.
OS: macOS Ventura 13.4
Test: Adobe Illustrator 2020-2024
All scripts are licensed under the MIT license.
See the included LICENSE file for more details.
This script adds any number of anchor points evenly spaced.
It is a slightly more user-friendly improvement to Object > Path > Add Anchor Points.
- Select two or more anchor points with the Direct Selection Tool, and run this script.
- Enter the number of anchor points to add.
Note
Anchor points for type on a path and area type are also supported.
Illustrator CS4 or higher
This script changes a number to a 3-digit comma delimited string.
Select text objects or specify a text range in an editing state, and run this script.
Illustrator CS or higher
This script adds selected gradients to Swatches.
Select path objects, and run this script.
Note
Text object and stroke color are not supported.
Illustrator CS or higher
This script aligns objects in the center of space.
For example, alignInCenterOfSpace(Vertical).js:
Select three or more objects, and run this script.
The position of alignment depends on the reference point.
Note
Include or exclude the stroke width depends on the Align panel menu > Use Preview Bounds.
Select at least three objects.
Illustrator CS3 or higher
This script aligns objects horizontally and vertically at the same time.
- Select any objects, and run this script.
- Select the Distribute Objects or the Distribute Spacing.
If you don't want evenly spaced distribution, uncheck both checkboxes. - To include stroke width, check the Use Preview Bounds checkbox.
- Enter a value of the Alignment Position Tolerance. (0 or higher number)
- Click the Align icon button.
Note
The top row and the left-most column are the basis for alignment.
Compound paths, texts, linked files, and embedded files are also supported.
Point, Pixel, Pica, Inch, Feet, Yard, Millimeter, Centimeter, Meter.
These units depend on the ruler units.
Illustrator 2021 or higher
This script splits and arranges all open windows.
Tip
The Arrange document icon has been implemented in the Application Bar since version 2022.
Just run this script.
Note
Open at least two files.
Illustrator CS6 or higher
This script replaces missing links, linked and embedded files in bulk.
Important
Since version 2024, the Apply to All checkbox has been removed from the dialog that appears when there are missing link files. As a result, it is no longer possible to replace files in bulk using this dialog.
- Select any missing link, linked or embedded files, and run this script.
- Select a new file.
- For PDF, select a crop to option and enter a page number from the import options.
Note
When selecting linked files, select them in the document rather than the Links panel.
Illustrator CS6 or higher
This script checks the day of the week.
Select a date section in the text with the cursor, and run this script.
Note
If there is no year, it will considered as this year.
The following formats are supported.
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
, MM DD YYYY
, DD MM YYYY
,
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
,
YYYY年MM月DD日
, 令和YY年MM月DD日
, 平成YY年MM月DD日
, 昭和YY年MM月DD日
, 大正YY年MM月DD日
, 明治YY年MM月DD日
Illustrator CS4 or higher
This script closes all documents.
Tip
It has been implemented in the File menu since version 2021.
Just run this script. If there are unsaved documents, choose to save them or not.
Illustrator CS4 or higher
This script closes the path objects.
Select the path objects, and run this script.
Illustrator CS or higher
This script compares the scales of two objects.
- Select two objects, and run this script.
- To include stroke width, check the Use Preview Bounds checkbox.
Point, Pixel, Pica, Inch, Feet, Yard, Millimeter, Centimeter, Meter.
These units depend on the ruler units.
Illustrator CC or higher
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.
Select the entire path with the Selection Tool, and run this script.
If you select anchor points with the Direct Selection Tool, a dialog will show to convert all or only selected anchor points to corner points.
Note
Anchor points for type on a path and area type are also supported.
Illustrator CS4 or higher
This script converts any colors in the Swatches panel to global or spot colors.
Select colors in the Swatches panel, and run this script.
If not selected, all swatches are converted.
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.
Illustrator CS or higher
This script converts types on a path to point types.
Select type on a path object, and run this script.
Note
The original type objects will delete.
Any effects applied in the appearance will be lost.
Illustrator CS or higher
This script is equivalent to Visual Studio Code's Selection >
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.
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.
Note
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.
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.
Illustrator CC 2018 or higher
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:
Move the cursor to the line you want to copy or cut, and run this script.
It is not necessary to select a line.
Important
Linefeed are not included to work around a bug in Illustrator.
Note
Area type with wrapping may not work well.
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.
Illustrator CC 2018 or higher
This script creates a color chart. Both CMYK and RGB colors are supported.
- Run this script.
- Select CMYK or RGB mode.
- Enter the target color values.
If select a path or text object, its fill color value is used as the initial value. - Select colors for the vertical and horizontal axis.
- Enter the increase or decrease value as a percentage.
- 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.
- Set the units, artboard size, and color chip size according to your preference.
Note
Spot color, gradient, and pattern are not supported.
Create a color chart in a new document.
Illustrator CS6 or higher
This script creates grid lines on artboards.
Just run this script.
Note
Grid spacing is determined by the Guides & Grid in Preferences.
Illustrator CS or higher
This script is equivalent to InDesign's Type > Insert Special Character > Markers > Current Page Number.
Places a page number at a specified location on the artboards.
- Run this script.
- 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.
Illustrator CS4 or higher
This script creates a text parallel to a straight segment or a line connecting two anchor points.
- Select two anchor points with the Direct Selection Tool, and run this script.
- Enter any text. The default values are the distance and angle between two points.
- Select either Point Type or Area Type.
Point Type
Select left, center, or right align.
Area Type
Enter area width and height values. - Check the Flip checkbox reverses the drawing position.
- Check the Middle checkbox to draw in the middle of the path segment.
- Enter a value of the margin will space them from the path segment.
Note
Curves are not supported.
Anchor points for type on a path and area type are also supported.
Point, Pixel, Pica, Inch, Feet, Yard, Millimeter, Centimeter, Meter.
These units depend on the ruler units.
Illustrator 2021 or higher
This script creates a threaded text. It can also be made from a mixture of point types and path objects.
The vertical text is also supported.
- 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.
- Select an order of concatenation.
- Enter a value of the alignment position tolerance. (0 or higher number)
- 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.
Point, Pixel, Pica, Inch, Feet, Yard, Millimeter, Centimeter, Meter.
These units depend on the ruler units.
Illustrator CC or higher
This script decreases selected anchor points clockwise or counterclockwise.
For example, decreaseSelectedAnchorPointsCW.js:
Select any anchor points with Direct Selection Tool, and run this script.
Illustrator CS or higher
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:
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.
Illustrator CC 2018 or higher
This script deletes all swatches except None and Registration.
Just run this script.
Note
Delete any swatches in use for the objects as well.
Illustrator CS or higher
This script deletes hidden layers.
Tip
It has been implement in the Layers panel menu since version 2021.
Just run this script.
Illustrator CS or higher
This script deletes locked layers.
Just run this script.
Illustrator CS or higher
This script deletes trailing spaces and tabs.
Both point and area types are supported.
Select the text objects, and run this script.
It is not necessary to select a line.
Note
Area type with wrapping may not work well.
Illustrator CS or higher
This script deletes unused layers.
Just run this script. It is not necessary to select any layers.
Illustrator CS or higher
This script deletes a word under the cursor.
Both point and area types are supported.
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.
Note
Area type with wrapping may not work well.
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.
Illustrator CC 2018 or higher
This script breaks apart the path object with anchor points.
Select any path objects, and run this script.
Note
The original path object will deleted.
Illustrator CS or higher
This script distributes objects evenly spaced in space.
For example, distributeInSpace(Vertical).js:
Select three or more objects, and run this script.
The position of alignment depends on the reference point.
Note
Include or exclude the stroke width depends on the Align panel menu > Use Preview Bounds.
Select at least three objects.
Illustrator CS3 or higher
This script draws a circumscribed circle through 3 or 2 anchor points.
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 type are also supported.
Illustrator CS or higher
This script draws normal lines (line perpendicular to a tangent) to a curve or line between two anchor points.
- Select two or more anchor points with the Direct Selection Tool, and run this script.
- Enter the number of normal lines to draw.
- Enter the length of normal line to draw.
- Check the Draw on Selected Anchor Points checkbox if you want to draw on the selected anchor points.
- Check the Flip checkbox reverses the drawing position.
- Check the Middle checkbox to draw in the middle of the path segment.
- Enter a value of the margin will space them from the path segment.
Note
Anchor points for type on a path and area type are not supported.
Point, Pixel, Pica, Inch, Feet, Yard, Millimeter, Centimeter, Meter.
These units depend on the ruler units.
Illustrator CS4 or higher
This script draws rectangles around selected objects.
- Select any objects, and run this script.
- Enter a margin value.
- To draw a rectangle on each object in the group, check the Ignore Groups checkbox.
- To include stroke width, check the Use Preview Bounds checkbox.
Note
The rectangle is drawn with no fill and stroke width.
Point, Pixel, Pica, Inch, Feet, Yard, Millimeter, Centimeter, Meter.
These units depend on the ruler units.
Illustrator CS4 or higher
This script draws shapes on anchor points.
- Select any path objects, and run this script.
- Select a shape.
- Enter a shape size.
- If you select anchor points with the Direct Selection Tool, choose whether to draw the shape on all anchor points or only on the selected anchor points.
- Check the Draw Handle Position checkbox if you want to draw the shapes on the handle positions.
Point, Pixel, Pica, Inch, Feet, Yard, Millimeter, Centimeter, Meter.
These units depend on the ruler units.
Illustrator CS4 or higher
This script draws a shape parallel to a straight segment or a line connecting two anchor points.
- Select two anchor points with the Direct Selection Tool, and run this script.
- Select a Square, Rectangle or Ellipse.
- If you select the Rectangle or Ellipse, enter width and height values.
- Check the Flip checkbox reverses the drawing position.
- Check the Middle checkbox to draw in the middle of the path segment.
- Enter a value of the margin will space them from the path segment.
Note
Curves are not supported.
Anchor points for type on a path and area type are also supported.
Point, Pixel, Pica, Inch, Feet, Yard, Millimeter, Centimeter, Meter.
These units depend on the ruler units.
Illustrator CS4 or higher
This script encloses words in parentheses.
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.
Note
Area type with wrapping may not work well.
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: ']'
};
Illustrator CC 2018 or higher
This script exports color values of a path object or swatches to a CSV file.
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.
Illustrator CS or higher
This script extends and shrinks handles. It also changes the angle.
- Select one or two anchor points with the Direct Selection Tool, and run this script.
- Enter a positive value in the Distance fields to extend or a negative value to shrink.
- 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.
Point, Pixel, Pica, Inch, Feet, Yard, Millimeter, Centimeter, Meter.
These units depend on the ruler units.
Illustrator CS4 or higher
This script extends and shrinks path segments.
- Select any anchor points with the Direct Selection Tool, and run this script.
- Enter a positive value to extend or a negative value to shrink.
Note
Closed paths and curves are not supported.
Anchor points for type on a path are also supported.
Point, Pixel, Pica, Inch, Feet, Yard, Millimeter, Centimeter, Meter.
These units depend on the ruler units.
Illustrator CS4 or higher
This script extracts colors as swatches from the gradient stops.
Select any 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.
Illustrator CS or higher
This script fits guide objects in an artboard.
Select guide objects, and run this script.
Note
Closed paths and curves are not supported.
Illustrator CS or higher
This script changes the zoom factor that the selected object fills the display.
Select any objects, and run this script.
Note
If no objects are selected, all objects should fit in the window. Ignore guides.
Illustrator CS or higher
This script generates a gradient color from fill colors or swatches.
Tip
It has been implement in the Swatch panel menu since version 2025.
Select two or more 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.
Illustrator CS4 or higher
This script is equivalent to Visual Studio Code's Go > 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.
- Run this script in the text editing state.
- 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.
Illustrator CC 2018 or higher
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.
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.
Note
It will not move to locked, hidden, or threaded texts. The layer also as well.
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.
Illustrator CC 2018 or higher
This script highlights the searched string by fill color, swatch or character style.
Both CMYK and RGB colors are supported.
- Select any text objects, and run this script.
If no texts are selected, it highlights all texts in the document. - Enter a string. Regular expressions are supported.
- To specify a color, enter the color values or use the sliders
- To specify a swatch, select a swatch name from the list on the Swatches tab and check the Ignore Color Settings checkbox.
- To specify a character style, select a style name from the list on the Character Styles tab.
- To specify a paragraph style, select a style name from the list on the Paragraph Styles tab.
If you wish to color the character and paragraph styles, uncheck the Ignore Color Settings checkbox.
Note
Color and swatch cannot be applied at the same time.
Illustrator CS6 or higher
This script imports a CSV file to the Swatches panel.
- Run this script.
- Select a CSV file.
Important
Make sure the document color mode and CSV file format are the same.
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.
Cyan | Magenta | Yellow | Black | Swatch name |
---|---|---|---|---|
100 | 0 | 0 | 0 | Cyan |
Red | Green | Blue | Swatch name |
---|---|---|---|
255 | 0 | 0 | Red |
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.)
Illustrator CS or higher
This script increases selected anchor points clockwise or counterclockwise.
For example, increaseSelectedAnchorPointsCW.js:
Select any anchor points with Direct Selection Tool, and run this script.
Illustrator CS or higher
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:
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.
Note
Area type with wrapping may not work well.
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.
Illustrator CC 2018 or higher
This script inverts locked layers.
Just run this script.
Illustrator CS or higher
This script inverts visible layers.
Just run this script.
Illustrator CS or higher
This script adjusts tracking to align point texts at both ends. The vertical text is also supported.
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.
Illustrator CS or higher
This script matches the location of the gradient stops and midpoints.
- Select two or more gradients in the Swatches panel, and run this script.
- Select a source gradient.
Note
Only gradients in the Swatches panel are supported.
Illustrator CS4 or higher
This script is an alternative to the Measure Tool and accurately measures the distance between two anchor points.
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
Anchor points for type on a path and area type are also supported.
Due to the small font size, labels will not appear when enlarged above 15500%.
Point, Pixel, Pica, Inch, Feet, Yard, Millimeter, Centimeter, Meter.
These units depend on the ruler units.
Illustrator CS4 or higher
This script moves all guide objects to a specified layer, frontmost, and backmost.
- Run this script. There is no need to select any guide objects.
- 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.
Illustrator CS6 or higher
This script is equivalent to Visual Studio Code's Selection >
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.
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.
Note
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.
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.
Illustrator CC 2018 or higher
This script moves sublayers to the main layer above.
Just run this script. It is not necessary to select any sublayers.
Note
Force all layers to show and unlock.
Illustrator CS or higher
navigateToFirstArtboard.js
navigateToLastArtboard.js
navigateToNextArtboard.js
navigateToPreviousArtboard.js
This script navigates to the first, last, next, or previous artboard while maintaining the view position and zoom factor of the artboard.
Important
It can be done with the standard functions( shift + pagedown / pageup ), but it displays the entire artboard.
Just run this script.
Note
At least two artboards are required.
Tip
navigateToNextArtboard.js
will navigate to the first artboard if it is the last artboard.
navigateToPreviousArtboard.js
will navigate to the last artboard if it is the first artboard.
It is more effective if the artboards are the same size.
Illustrator CS4 or higher
This script changes the text color randomly by word, character or sentence.
Both CMYK and RGB colors are supported.
- Select any text objects, and run this script.
- Enter the color values or use the sliders to set the threshold.
- Click the Random button to change the 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.
Illustrator CS4 or higher
This script rearranges selected objects.
- Select any objects, and run this script.
- Select a new layout.
- Enter the number of objects to place in a line.
- Enter a value of the spacing between the objects.
- Select a current order of the objects. Check the Reverse checkbox to reverse the order.
- To include stroke width, check the Use Preview Bounds checkbox.
- Enter a value of the Alignment Position Tolerance. (0 or higher number)
- Check the Preview checkbox to confirm the rearranging.
Note
The object in the top-left is the basis for rearranging.
Compound paths, texts, linked files, and embedded link files are also supported.
Point, Pixel, Pica, Inch, Feet, Yard, Millimeter, Centimeter, Meter.
These units depend on the ruler units.
Illustrator 2021 or higher
This script replaces linked files with the specified file extension, equivalent to InDesign's Links panel menu > Relink File Extension.
For more advanced settings, use relinkFileExtensionExtra.js.
- Select any linked files, and run this script. If no files are selected, it replaces all files in the document.
- Enter an extension.
Warning
Missing linked files and embedded files are not replaced.
Note
Place the relink files in the same place as the original files.
When selecting linked files, select them in the document rather than the Links panel.
Illustrator CS4 or higher
This script is an enhanced version of relinkFileExtension.js with more advanced settings for relinking linked files.
- Select any linked files, and run this script. If no files are selected, it replaces all files in the document.
- Select either file renaming method.
Replace
Enter the current file name in the Find field and a new file name in the Replace field.
It can also be part of the file name. Regular expressions are supported in the Find field.Add
Enter a string to be added to the prefix, suffix, or both of the original file names.
- Enter an extension. If the file extension is the same, enter nothing.
- If you specify PDF as the extension, select the Crop to option and enter the page number.
See also: Import Adobe PDF files - To change the folder for the linked file, select a new folder.
If the folder is the same as the original file, select nothing.
To clear the new folder path, hold down the Option / Alt key and click the Clear button.
Warning
Missing linked files and embedded files are not replaced.
Note
When selecting linked files, select them in the document rather than the Links panel.
Illustrator CS6 or higher
This script replaces linked files with a file of the same name in the selected folder, equivalent to InDesign's Links panel menu > Relink to Folder.
- Select any linked files, and run this script.
If no files are selected, it replaces all files in the document. - Select a folder from the dialog that appears.
Warning
Missing linked files and embedded files are not replaced.
Note
When selecting linked files, select them in the document rather than the Links panel.
Illustrator CS4 or higher
This script removes fill and stroke colors in all guide objects.
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.
Illustrator CS6 or higher
This script deletes the Deleted Global Colors displayed in the Separations Preview panel.
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.
Illustrator CS or higher
This script renames all artboard names at once.
- Run this script.
- Edit the artboard name displayed in the text field.
Options are available for quickly editing artboard names.
Replace
Replace the number at the beginning or end of the artboard name.Add
Add a number to the beginning or end of the artboard name.-1
+1
Increase or decrease the number at the beginning or end of the artboard name.- Check the Descending Order checkbox to change to descending order.
- Add text to the beginning or end of the artboard name.
- Replace the artboard name with the specified string.
- Regular expressions support in the Find field.
Note
A warning is issued if the number of lines in a text field does not match the number of artboards.
Illustrator CS4 or higher
This script renames all layer names at once.
- Run this script.
- Edit the layer name displayed in the text field.
Options are available for quickly editing layer names.
Replace
Replace the number at the beginning or end of the layer name.Add
Add a number to the beginning or end of the layer name.-1
+1
Increase or decrease the number at the beginning or end of the layer name.- Check the Descending Order checkbox to change to descending order.
- Add text to the beginning or end of the layer name.
- Replace the layer name with the specified string.
- Regular expressions support in the Find field.
Note
Sublayers are not supported.
A warning is issued if the number of lines of the text field is less than the number of layers.
Add layers for the increased number of lines if the number of lines of the text field is greater than the number of layers.
Illustrator CS4 or higher
This script renames the name of the linked files and relink.
Caution
It is not possible to undo file names with Edit > Undo.( ⌘ / Ctrl + Z )
File manipulation is dangerous, so we recommend backing up your data before running the script.
- Select any linked files, and run this script.
If not selected, all files in the document are renamed. - Enter the current file name in the Find field and a new file name in the Replace field.
It can also be part of the file name. Regular expressions are supported in the Find field. - Clicking the Preview button shows the renamed file names in the list.
A check in the Already Exists column indicates that a file with the same name already exists.
Warning
Missing linked files and embedded files are not replaced.
If you are using linked files for other documents, the link will be missing.
Note
When selecting linked files, select them in the document rather than the Links panel.
If you wish to hide the alert that appears when the script is executed, delete or comment out line 50.
Illustrator CS4 or higher
This script resets the scale to 100% and the rotation angle to 0 degrees for the linked or embedded files.
Select any linked or embedded files, and run this script.
Illustrator CS6 or higher
This script rounds color values. Both fill and stroke colors are supported.
Select any objects, and run this script.
Illustrator CS or higher
This script rounds the location of the gradient color stops and midpoints.
Both fill and stroke colors are supported.
Select any objects, and run this script.
Illustrator CS or higher
This script selects all embedded files.
Just run this script.
Note
Locked and hidden embedded files are not selected. The layer also as well.
Illustrator CS or higher
This script selects all guide objects.
Just run this script.
Note
Guides in locked or hidden layers are not supported.
Illustrator CS6 or higher
This script selects the specified linked files.
- Run this script.
- Enter a file name in the Find field or select the file name from the list below. If the Find field is empty, all linked files are selected. Regular expressions support in the Find field.
Note
Locked and hidden linked files are not selected. The layer also as well.
Missing linked files may not be selected.
Illustrator CS4 or higher
This script shifts selected anchor points clockwise or counterclockwise.
For example, shiftSelectedAnchorPointsCW.js:
Select any anchor points with Direct Selection Tool, and run this script.
Illustrator CS or higher
This script shows the artboard name and size in the document.
Just run this script.
Point, Pixel, Pica, Inch, Feet, Yard, Millimeter, Centimeter, Meter.
These units depend on the ruler units.
Illustrator CS4 or higher
This script shows color values. Both fill and stroke colors are supported.
Select any path objects, and run this script.
Note
CMYK, RGB, HEX, grayscale, spot color, and pattern are supported.
Text object and gradient are not supported.
Illustrator CS or higher
This script shows the dimension of the anchor point between two points of the path objects.
Tip
The Dimension Tool has been implemented in the Toolbar since version 2024.
Select any path objects, and run this script.
If you select anchor points with the Direct Selection Tool, dimensions are displayed only at the selected. In this case, select at least two anchor points.
Note
Supports curves.
Group and color dimensions by path object.
In complex shapes, dimensions may be displayed overlapping each other.
Point, Pixel, Pica, Inch, Feet, Yard, Millimeter, Centimeter, Meter.
These units depend on the ruler units.
Illustrator CS6 or higher
This script shuffles the gradient color.
Select any 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.
Illustrator CS or higher
This script shuffles the objects.
Select the objects, and run this script.
Illustrator CS or higher
This script sorts the artboards in the Artboards panel.
Just run this script.
Note
Only the Artboards panel. Artboards in the document are not sorted.
Illustrator CS5 or higher
This script sorts lines of the text. The vertical text is also supported.
- Select either the text objects or the lines to be sorted, and run this script.
- Check the Match Case checkbox to make the text case-sensitive.
- Check the Entire Threaded Text checkbox to sort the entire threaded text.
- Click one of the sort buttons below.
A → Z
Sort in A to Z order.
Z → A
Sort in Z to A order.
Reverse
Sort in reverse order.
Note
Wrapped lines in the area type split on each line.
If the selection spans next threads, it cannot be sorted.
Type on a paths are not supported.
Illustrator CS4 or higher
This script splits a text by lines, words, or characters. The vertical text is also supported.
- Select any text objects, and run this script.
- Select lines, words, or characters.
Note
Area types converts to point types.
If there are many characters, it will take time to split them.
After splitting, the text position may move slightly.
Illustrator CC or higher
This script splits a point text at the cursor position. The vertical text is also supported.
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.
Illustrator CS6 or higher
This script repeatedly duplicates selected objects. It is equivalent to InDesign's Edit > Step and Repeat.
- Select any objects, and run this script.
- If you want to create as a grid, check the create as a grid.
- Enter the number of times to repeat.
- Enter the offset values.
Point, Pixel, Pica, Inch, Feet, Yard, Millimeter, Centimeter, Meter.
These units depend on the ruler units.
Illustrator CS4 or higher
This script adds up the numbers in the text.
Select text objects or specify a text range in an editing state, and run this script.
You can also edit numbers in the text field and recalculate the totals.
Note
Editing numbers in the text field does not affect the original text objects.
Illustrator CS4 or higher
This script swap the text contents.
Select two text objects, and run this script.
Illustrator CS or higher
This script synchronizes all open windows with the zoom factor and the view position of the active window.
Just run this script.
Note
Open at least two files.
Illustrator CS or higher
This script changes the text alignment without moving the position. The vertical text is also supported.
For example, textAlign_Center.js:
Select point text objects, and run this script.
Illustrator CS or higher
This script toggles the Align panel menu > Align to Glyph Bounds > Point Text and Area Text.
Just run this script.
Illustrator 2020 or higher
This script toggles the Preferences > Type > Fill New Type Objects With Placeholder Text.
Just run this script.
Illustrator 2018 or higher
This script toggles the Layers panel menu > Paste Remembers Layers.
Just run this script.
Illustrator CC or higher
This script toggles the Preferences > General > Select Same Tint %.
Just run this script.
Illustrator CC or higher
This script toggles the Preferences > Type > Show Character Alternates.
Just run this script.
Illustrator 2020 or higher
This script toggles the Preferences > Selection & Anchor Display > Anchor Points, Handle, and Bounding Box Display > Show handles when multiple anchors are selected.
Just run this script.
Illustrator CC or higher
This script toggles the Preferences > General > Transform Pattern Tiles.
Just run this script.
Illustrator CC or higher
This script toggles the Align panel menu > Use Preview Bounds or the Preferences > General > Use Preview Bounds.
Just run this script.
Illustrator CC or higher
This script toggles the Preferences > Selection & Anchor Display > Selection > Zoom to Selection.
Just run this script.
Illustrator 2018 or higher
This script toggles the Preferences > General > Zoom with Mouse Wheel.
Just run this script.
Illustrator 2022 or higher
This script unifies layer colors.
- Unlock all layers. Keep the layers that colors you do not want to change locked.
- Select a layer that will be the reference color, and run this script.
Note
Sublayers are also supported.
Illustrator CS or higher
This script converts almost all units supported by Illustrator.
- Run this script. If you want to refer to an object's width or height value, select any objects with the Selection Tool and then run this script.
- Enter a value in one of the units.
Note
If the document is open, the ruler unit is the reference.
Point, Pixel, Pica, Inch, Feet, Yard, Millimeter, Centimeter, Meter.
These units depend on the ruler units.
Illustrator CC or higher
All scripts are licensed under the MIT license.
See the included LICENSE file for more details.