Illustrator (Desktop) Bugs
When reporting a bug, please provide a detailed description with the following:
- Details of your operating system
- The version of Adobe Illustrator (desktop)
- The steps you were taking when you experienced the issues
- Your expected result and the actual result
- Upload your Illustrator file or a video (screen recording or gif, this helps us most to reproduce the issue and resolve it)
80 results found
-
[ExtendScript] never releases PathPoint objects so scripts slow down.
ExtendScript never releases PathPoint objects, so scripts slow down until Illustrator restarts
Versions: Illustrator Beta 31.0.0, macOS 26.7.1. Also reported in Illustrator 2026 on Windows (community thread).
Summary
When a script gets a path point (
pathItem.pathPoints[i]), ExtendScript creates aPathPointobject, plus aPathPointsobject for the collection and anArrayfor.anchor. None of these are ever released. As they build up, every later script in that engine gets slower, including scripts that never touch path points. Only quitting Illustrator clears them.Steps to reproduce
- Run the script below from File > Scripts in…
3 votes -
ExtendScript evaluates nested ternary operator with wrong (left) associativity
Component: ExtendScript engine (scripting). Affects Illustrator, likely all ExtendScript hosts.
Environment (confirmed):
Illustrator 30.8.2, ExtendScript 4.5.6, macOS 15.7.9
Illustrator CS6 16.0.0, ExtendScript 4.2.12, Windows
Old and new builds, both platforms.Summary:
ExtendScript evaluates a nested conditional expression a ? b : c ? d : e as if it were left-associative, i.e. (a ? b : c) ? d : e, instead of the ECMAScript-required right-associative a ? b : (c ? d : e). ECMA-262 defines ConditionalExpression as right-associative, and this has been the case since the 3rd edition that ExtendScript targets. When any condition before the last is…3 votes -
The ExtendScript debugger cannot be attached. Please fix the previous version as well
Please refer to the link for the symptoms.
Previous thread
Illustrator 30.8: ExtendScript debugger cannot attach — ESTK endpoint never respondsThis matter was completed with "Fixed in Beta Build 31.0.0.29".
The current version has passed without being modified.I'm in a lot of trouble with this.
In addition to the latest version, I have to continue to use the old version at the same time for my DTP work.
Please also correct 29.8.11 and 30.8.2.<にほんご>
ExtendScript デバッガがアタッチできません。従来バージョンも直してください症状についてはリンク先を参照してください。
この件は「Beta Build 31.0.0.29 で修正されました」で完了されてしまいました。
現行バージョンは修正されないまま過ぎ去ってしまいました。これでは、私はとても困ります。
私のDTP仕事は最新バージョンのほか、旧バージョンも同時に使い続けなければならないのです。
29.8.11 と 30.8.2 も修正してください。14 votes -
ExtendScript gives && and || equal precedence
The below is from u/Ales-78 on Reddit:
"I found this while debugging something that made no sense, and because I once reported a "bug" to Adobe that turned out to be my own syntax error, I checked it on several versions before posting.
ExtendScript evaluates && and || at the same precedence level, left to right. So a || b && c is parsed as (a || b) && c instead of the correct a || (b && c). ECMAScript requires && to bind tighter.
Two lines, no document needed:
alert(true || false && false);
// prints "false", should…
5 votes -
Illustrator 30.8: ExtendScript debugger cannot attach — ESTK endpoint never responds
Summary
In Illustrator 30.8.0, the Adobe ExtendScript Debugger extension for VS Code (v2.1.0) can no longer attach to or launch scripts. Rolling back to 30.7.0 fixes it completely, with no other change to VS Code, the extension, or the launch configuration — so this is a regression introduced between 30.7 and 30.8.
The failure is narrow and specific: in 30.8, Illustrator's ExtendScript debug (
#estk) channel accepts the debugger's<connect/>handshake but never sends any response. The message is delivered successfully — the core library returnsstatus: 0with a valid serial number — and then nothing…7 votesExpected to be fixed in the lates Beta Build 31.0.0.29 — please verify
-
Unicode - or wrong code - in file names
File names with strange characters produce strange and inconsistent info in the DocumentAfterSave and DocumentAfterActivate events. I keep adding regexes to my "fix name" routine....
These messages belong to the same file:
<documentAfterActivate><url>file:///X:/Symbole/Ornamente,%20grafische%20Designelemente,%20Blumendekor,%20einfache%20Grundformen/Designelemente%20basierend%20auf%20geometrischer%20und%20konstruierter%20Grafik%20%B9%20Basis-edit.ai</url><name>Designelemente basierend auf geometrischer und konstruierter Grafik ¹ Basis-edit.ai</name></documentAfterActivate>
<documentAfterSave><url>file:///X:/Symbole/Ornamente,%20grafische%20Designelemente,%20Blumendekor,%20einfache%20Grundformen/Designelemente%20basierend%20auf%20geometrischer%20und%20konstruierter%20Grafik%20%C2ą%20Basis-edit.ai</url></documentAfterSave>
So, this ¹ is represented as %B9 in one place and %C2ą (note: a letter with a waggy tail) in the otherOS: Win 11, Illustrator all versions (at least back to 2019)
1 vote -
Illustrator and scripting inconsistent words[] when tabs used
Can someone explain the results when the following is run on an Illustrator document with one text frame?
var myDoc = app.activeDocument;
var myTextFrame = myDoc.textFrames[0]
myTextFrame.contents = "Lorem ipsum dolor sit amet\rLorem\tipsum\tdolor\tsit\tamet";
alert(myTextFrame.words.length);
alert(myTextFrame.lines[0].words.length);
alert(myTextFrame.lines[1].words.length);
for (l=0; l<2; l++)
{
concat = "#";
for (i=0; i<myTextFrame.lines[l].words.length; i++)
{
concat += myTextFrame.lines[l].words[i].contents;
concat += "#";
}
alert(concat);
}14
5
9
"#Lorem#ipsum#dolor#sit#amet#"
"#Lorem#Lorem#ipsum#ipsum#dolor#dolor#sit#sit#amet#"
Why does separating the words by tabs seem to duplicate all but the last word in the line?
Is this a bug, and if not, what is the logic behind it?
Running on Windows 11 and I…
2 votes -
Scripts cannot read Ignore Color setting from presets
With the appearance of the Ignore Color checkbox, scripts have another big problem besides ignoreWhite.
If a user creates a custom preset with Ignore Color enabled and selects a color, and then tries to automate the use of this preset from a script, the scripts cannot load the data about the Ignore Color checkbox from the preset.
In the mentioned beta version 30.4.0.80, this issue still persists (so it should also be in the GA 30.3)
Example:
(function (){
var image = app.selection[0].trace();
var preset = app.tracingPresetsList[19]; // User index of custom preset
image.tracing.tracingOptions.loadFromPreset(preset);
app.redraw();
image.tracing.expandTracing().selected = true;
})();2 votes -
Script selection/appearance modification causes error 8702
I am using a script to change the appearance of an object (fill color of an ellipse shape). Since there is no way to access appearance properties directly (which would be lovely to get someday), I am using a known workaround with defaultFillColor on the selected document.
app.activeDocument.selection = [item.obj]; app.activeDocument.defaultFillColor = item.newCol;Unfortunately, the selection seems to leave Illustrator in a weird state, and any further script command (e.g. next iteration of the loop) fails with "Error 8702: there is no active document."
This sometimes goes away if I use CPU instead of GPU preview, though not reliably. And…
2 votes -
File names are broken on macOS scripts
Bug reproduction:
#target illustrator var file = File.openDialog("Select any file", "All files:*.*"); var message = 'Results\nfile.name: "' + file.name + '"\nfile.displayName: "' + file.displayName + '"\nfile.localizedName: "' + file.localizedName + '"'; alert(message);Save this as a script, run it in Illustrator on macOS and select any file.
Expected outcome: An alert is displayed with all of the name attributes are populated
Actual outcome: displayName and localizedName give empty string and undefined.Tested on macOS 15.7.1, Illustrator v29.8.2. Same script works on Windows 11.
3 votes -
[ExtendScript] Cannot set some TextRange.characterAttributes after TextFrame.resize.
We cannot successfully set some TextFrame.textRange.characterAttributes after the TextFrame has been resized using TextFrame.resize.
(Tested on MacOS 15.4.1 Adobe Illustrator 29.5.1)
Steps to reproduce:
1. Create new document
2. Run the below scriptExpected Result: all tests passed and no alert message appears.
Actual result: Failed to set characterAttributes.size to 12.
Script:
(function () { var doc = app.activeDocument, textFrame = doc.textFrames.add(); textFrame.textRange.contents = 'Hello.'; textFrame.resize(200, 200); textFrame.textRange.characterAttributes.size = 12; if (textFrame.textRange.characterAttributes.size !== 12) alert('Failed to set characterAttributes.size to 12'); })();NOTE: some other character attributes are "unsettable" also, eg. leading.
2 votes -
[ExtendScript] Cannot set TextRange.justification to value in ParagraphStyle
We cannot successfully set textFrame.textRange.justification to the value in the applied ParagraphStyle.
For example, if the text has [Normal Paragraph Style] applied, which for me has Justification.LEFT, then I cannot set that text to have Justification.LEFT in cases where the justification has been changed.
(Tested on MacOS 15.4.1 Adobe Illustrator 29.5.1, but this appears to be an old bug.)
Steps to reproduce:
1. Create new document
2. Run the below scriptExpected Result: all tests passed and no alert message appears.
Actual result: Failed to set textRange.justification to LEFT.
Script:
…(function () { var doc = app.activeDocument, textFrame4 votes -
Applescript—cannot save Illustrator file if embedding ICC profiles
This is a bug, as verified by this post (https://community.adobe.com/t5/illustrator-discussions/there-is-a-problem-with-saving-as-illustrator-using-applescript/m-p/15287552) and this post (https://community.adobe.com/t5/illustrator-discussions/applescript-cannot-embed-icc-profiles-in-illustrator-save-options/m-p/15032019#M429674). I cannot save an Illustrator file as part of an AppleScript if ICC profiles are being embedded. This is a problem because I can no longer use my Applescripts for creating versions of logo files.
The following code will fail with the error "Cannot get document 1". The error occurs when the
savecommand’swith optionsparameter is a record containing aembed icc profileproperty.save document 1 in filePath as Illustrator with options {embed icc profile:true}
I have verified that…4 votes -
Issue with Reading Variable Data from DataSet in Illustrator 29.5
Dear Adobe Support Team,
I am reaching out to report an issue with Adobe Illustrator (version 29.5) regarding the inability to read variable data from a DataSet object in a script, even though the dataset is correctly loaded and updates the document content as expected.
Problem Description
I have a script that processes a CSV file to generate PDF files using variable data in Illustrator. The CSV file contains columns "Cislo" (number) and "JMENO" (name), and it is correctly loaded into Illustrator as a dataset (via Window > Utilities > Variables > Load Variable Library). The dataset updates the document…1 vote -
Javacript locking embeded image
In Illustrator 29.1 this script worked just fine. I place an image, move it, name it, lock it and embed it. But in 29.3 this code gives an error message: It says that it cannot operate on a locked layer, BUT it still locks the placed item. If I move the lock to after the embed, the lock does not happen. So this code no longer works in 29.3.
I think its weird in 29.1 that you were allowed to lock the placeditem before you embed it, but it doesn't work if you lock it afterwards.
We are using macos…
3 votesThe issue is reported to be fixed in the latest Pre-release build 29.4.130.
The provided script should now work without any error dialog, as before.
Please also see the recommended way to achieve locking of embedded art in modified script, in a comment within.
-
[ExtendScript] Rasterizing group creates two rasterItems
- MacOS 15.2.
- Adobe Illustrator 29.1
- Open demo document (attached) and run script (below).
- Should create one RasterItem, but instead creates two.
Test Script (for use on attached test file):
…(function () { var doc = app.activeDocument; var item = doc.groupItems[0]; // Raster Options var rasterOpts = new RasterizeOptions; rasterOpts.resolution = 192; rasterOpts.antiAliasingMethod = AntiAliasingMethod.None; rasterOpts.backgroundBlack = false; rasterOpts.clippingMask = false; rasterOpts.colorModel = RasterizationColorModel.DEFAULTCOLORMODEL; rasterOpts.convertTextToOutlines = false; rasterOpts.includeLayers = false; rasterOpts.padding = 0; rasterOpts.transparency = false; rasterOpts.convertSpotColors = true; doc.rasterize(item, item.geometricBounds, rasterOpts); var count = doc.rasterItems.length; if (count > 1) alert('The rasterization created two images but should have created only one.');4 votes -
Adobe Illustrator 28.7.3 does not load AIBeautifulStrokes
Adobe Illustrator 28.7.3, at least the macOS version, does not load AIBeautifulStrokes suite in my plugin (error 29550). All other versions, including up to 28.7.2, work fine. I am using SDK build 142, the version of the 2024 SDK now available for download.
AIErr err = sSPBasic->AcquireSuite (kAIBeautifulStrokesSuite, kAIBeautifulStrokesVersion, (const void**) &sAIBeautifulStrokes);1 voteNo longer happens with 29.1
-
Illustrator JavaScript Scripting Reference.pdf Pages 46 (Documents Section)
"ArtBoard" or "artBoard" ???? There must be consistency in capitalization
[, numArtBoards]
[, artboardLayout]
[, artboardSpacing]
[, artboardRowsOrCols])1 vote -
[ExtendScript] PageItem.resize doesn't scale Live Paint strokes
While scaling Live Paint object correctly scales strokes if done via the UI, it fails to scale strokes if done via the PageItem.resize method in the scripting API.
MacOS 15.0.1 Illustrator 29.0.
Steps to reproduce:
1. New document
2. Create a Live Paint object including stroked areas.
3. Select the Live Paint object.
4. Run the following script:var item = app.activeDocument.selection[0]; item.resize(200, 200, true, true, true, true);Expected result is that the Live Paint object's stroke widths would double. However they remain the same as before.
See this user post.
4 votes -
[ExtendScript] Cannot set Document.rulerUnits
There is no way via scripting to set a document's rulerUnits (pts, mm, inch, etc) because the property Document.rulerUnits is—erroneously, surely—read only.
If Document.rulerUnits was writable, we would simply do this:
var doc = app.activeDocument; doc.rulerUnits = RulerUnits.MILLIMETERS;This is important because there is literally no way to set this via script, except to create a new document.
7 votes
- Don't see your idea?