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)
73 results found
-
Error with app.executeMenuCommand('Adobe Stroke Palette')
en_US
In the Japanese version of Adobe Illustrator, when I execute a script that selects the Window > Stroke menu, an error occurs. It executes correctly in the English (North America) version.

Script to Execute
try { app.executeMenuCommand('Adobe Stroke Palette') ; } catch(e) { alert(e) ; }
Actual Result
The following error occurs.
エラー: an Illustrator error occurred: 1346458189 ('MRAP')
Expected Result
Stroke panel is displayed.
Steps to Reproduce
- Uninstall any non-Japanese version of Adobe Illustrator that is installed
- Launch Creative Cloud.app and set "Default install language" to Japanese in the Preferences
- Install and launch Adobe Illustrator
- Execute the…
9 votes -
IgnoreWhite option no longer works in javascript bug
Illustrator v 28.0 - Image Trace option check box for Ignore White has been replaced with Ignore Color and an eyedropper option. While I think this is a good addition for manual use, it appears to have somewhat broken the ability to use image trace properly in javascript as the change has made the original "tracingOptions.ignoreWhite = true" no longer work. I suspect there is now an additional option/variable responsible for the color to be ignored's selection but it doesnt appear to be refferenced in any of the current documentation. I've tried adding the method for Abutting (also undocumented) as…
2 votes -
app.preferences.setIntegerPreference() does not work
app.preferences.setIntegerPreference("rulerType", 0) changes the selection in the GUI but doesn't actually apply the change to the document.
I still have to go into the GUI preferences, change the units to something else, then back to inches and close for the change to actually apply to the current document.
3 votes -
Justification attribute to center text in Illustrator API
Why do Justification to aiCenter and Align Center produce different results?
Given myLabel string with at least one line break character in it, when I use JavaScript code like this...Set myFrame = textGroup.TextFrames.Add
myFrame.TextRange.CharacterAttributes.Size = defaultFontSize
myFrame.TextRange.CharacterAttributes.TextFont = appRef.TextFonts.Item(nameOfFont)
myFrame.Contents = myLabel
myFrame.Paragraphs(1).ParagraphAttributes.Justification = 2 ' aiCenter
myFrame.Position = Array(myXPos, myYPos)...the lines of text are not centered with respect to each other.
Is there a way, using the JavaScript API, to achieve text-centering of multiple lines in a text frame?
If not, I'd like to request a new paragraph attribute to the JavaScript API to accomplish this function.…2 votes -
[ExtendScript] RasterItem.colorize() does not accept SpotColor via script, but does via UI.
MacOS 13.3.1, Adobe Illustrator 27.4.1
The colorize() method of RasterItem doesn't accept a SpotColor via scripting, but can do via the UI, so there is no technical reason I can see why this it the case. It may be a simple bug. Also there is a workaround by using defaultFillColor which does apply a SpotColor to a RasterItem.
Steps to reproduce:
1. Start with document containing a bitmap (colourable) RasterItem and a SpotColor swatch.
2. script: (adjust the swatch index to match your SpotColor swatch index)app.activeDocument.rasterItems[0].colorize(app.activeDocument.swatches[4].color);
Expected result: colorizes the RasterItem.
Actual result: does nothing.2 votes -
[ExtendScript] Incorrect paragraph count when linefeeds are used.
MacOS 13.3.1, Adobe Illustrator 27.4.1
To see the issue, run this script:
```
(function () {var doc = app.documents.add(); var tf1 = doc.textFrames.add(); tf1.position = [100, 100]; tf1.contents = 'Paragraph one\u000DParagraph two'; var tf2 = doc.textFrames.add(); tf2.position = [200, 100]; tf2.contents = 'Paragraph one\u0003still paragraph one'; alert('Paragraph counts\n2 paragraphs: ' + tf1.paragraphs.length + '\n1 paragraphs with forced line break:\n ' + tf2.paragraphs.length);
})();
```I expect the left text frame to have 2 paragraphs and the right text frame to have 1 paragraph, but the right text frame is incorrectly shown to have 2 paragraphs.
This discussion revolves around…
2 votes -
[ExtendScript] Line feed \u000A character assigned to text contents is converted to carriage return
MacOS 13.3.1, Adobe Illustrator 27.4.1
Also reported on Windows same version of Illustrator.Steps to reproduce.
To see problem, run this script
```
(function () {var doc = app.documents.add(); var tf1 = doc.textFrames.add(); tf1.position = [100, 100]; tf1.contents = 'Break\u000Ame.'; alert('Linefeed (10)\n charCode = ' + tf1.contents.charCodeAt(5)); var tf2 = doc.textFrames.add(); tf2.position = [200, 100]; tf2.contents = 'Break\u0003me.'; alert('End-of-text (3)\n charCode = ' + tf2.contents.charCodeAt(5));
})();
```
I would expect the text on the left to have a line feed (u+000A) character, but it is converted to a carriage return (u+000D).
The text on the right is a workaround,…2 votes -
Incorrect word count via script
At some point (I think v27) Illustrator has changed its word counting/division algorithm.
So, where previously the results were sensible:
"This.Was.Four.Words" — word count: 4
"This.Is.3.Words" — word count: 4
"I.WF05f.07.AB.000" — word count: 5
"I.WF05f.AB.07.000" — word count: 5In version 27.4 the results are now confused:
"This.Was.Four.Words" — word count: 1
"This.Is.3.Words" — word count: 3
"I.WF05f.07.AB.000" — word count: 4
"I.WF05f.AB.07.000" — word count: 2For a discussion on the topic, and a testing script, see this thread.
Note: maybe this bug was introduced while fixing this bug.
5 votes -
getSystemPath using CSInterface throws URI Malformed error
I was trying to get the my documents folder path of the system using CSInterface getSystemPath function. It works in most of the cases. But it throws URI malformed error (refer the screenshot below), if the path of the documents folder contain characters from languages other than English.
I debugged the CSInterface.js file at line 521. And I found that the below piece of code returns the path of the folder without encoding the characters from languages other than English.
window.adobe_cep.getSystemPath(pathType)
IN MY CASE:
Path of documents folder: "C:\Users\sanjay\OneDrive - Élégante\Documents".
window.adobe_cep.getSystemPath(pathType)
// Returned value -…1 vote -
Applescript Artboard Name no longer works
Getting/Setting name of artboard no longer works. It used to work fine. It is an issue with class of properties. All options Fail.
1. name of (get properties of artboard 1) -- error
2. get item 7 of properties of artboard 1 -- error
3. name of artboard 1 -- always failedIf you insert «class bAl9» in place of Name and compile, it does not fail however will fail next time since the dictionary replaces it with Name
1 vote -
CompoundPathItem of grouped CompoundPathItems shows zero pathItems in script.
AI version: 27.1.1
OS: MacOS 13.1Steps to reproduce:
1. New Document.
2. Make some compoundPathItems (eg. create outlines of text).
3. Group the compoundPathItems.
4. Select that group
5. Choose menu: Object > Compound Path > Make
6. Run this script:
alert('pathItems.length = ' + app.activeDocument.selection[0].pathItems.length);Result: alert says pathItems.length = 0
Expected result: should say the actual number of pathItems3 votes -
Cant' get character properties (AI ver26.4. ~)
AI ver 27.0.1 bug , too
2 votes -
CEP Extension Window MinSize Change On Mac OS When UI Scaling Large
CEPエクステンションで、
ウィンドウサイズを最小サイズに変更するボタンを設置しようとしていますが、
Mac版でUIスケール拡大時、スクリプトで手動変更の最小サイズまでリサイズできません。1.お使いのオペレーティングシステムおよび Adobe Illustrator (デスクトップ版) のバージョン
Illustrator2022,2023 MacOS2.問題が発生したときに実行していた手順
ユーザーインターフェイス>UIスケール
小から大に変更
エクステンションの最小幅200、最小高さ400
ウインドウサイズへ変更ボタン(CSInterface.resizeContent(200,400)が実行される)を押す3.想定していた結果
最小サイズまでウインドウサイズがリサイズ実際の結果
リサイズされない■詳細■
Windows版では、UIスケールを拡大した時は、
エクステンション自体が拡大表示されいて、特に問題ありません。ところがMac版で、UIスケールを拡大した時
ウィンドウサイズのみ拡大されて、
エクステンションの中身は拡大されません。
このことは、別にOS差の仕様の違いとして、許容範囲内なのですがmanifest.xmlにて
<MinSize>
<Height>400</Height>
<Width>200</Width>
</MinSize>
と設定していて、
CSInterface.getScaleFactor()で取得したScaleFactorが1.25の時ウィンドウ幅を最小にした時のサイズが
Chromeでのデバッグで表示されるサイズは313px
になっていて、設定サイズよりも大きくなり、
想定した幅まで最小化できなくなります。また
CSInterface.resizeContent(width, height)でのリサイズはCSInterface.resizeContent(300, 500)
→ width: 375 (設定値:300×ScaleFactor:1.25)
height: 625 (設定値:500×ScaleFactor:1.25)
設定値×scaleFactorのサイズになるので
高さを維持して、幅だけ変えたいときとか、ScaleFactorを意識しないといけないため
不便に感じます。ただ、これも仕様を把握していれば、なんとか対応できます。
困っているのは、
illustrator2022,2023(Mac)にて、
CSInterface.resizeContent()の許容値がおかしいことです。
manifest最小値、最大値の範囲内なら、有効のはずですがIllustrator2022,2023(Mac)では、
NG) CSInterface.resizeContent(200,400)
NG) CSInterface.resizeContent(249,500)
OK) CSInterface.resizeContent(250,500)
となっていて、
有効範囲までScaleFactor分拡大されています。しかし、先に述べた通り、
CSInterface.resizeContentでは、設定値×scaleFactorで設定されるので、
手動で変更可能な最小幅×ScaleFactorまでしか、スクリプト上では変更できません。
(設定最小幅200、ScaleFactor1.25のとき、
現在の手動最小幅250にしたいのに、313までしかスクリプトから変更できない)Illustrator2021(Mac)では
CSInterface.resizeContent(200,400)が動いて、
ウィンドウサイズを最小サイズまでリサイズできます。Mac版でUIスケール拡大時、スクリプトで最小サイズまでリサイズできるように
修正お願いします。1 vote -
BridgeTalk.getSpecifier( "estoolkit") no longer works in Illustrator 2022 & 2023. Returns null
I have a script that runs in Illustrator and needs to send progress information to a ScriptUI user interface running in Extendscript Toolkit. Since Illustrator 2022, the function call BridgeTalk.getSpecifier( "estoolkit") returns null. As a result, my script is unable to send messages to Extensscript Toolkit. My workaround has been to use Illustrator 2021, where this functionality still works. It works in Illustrator 2020 & 2021 but does not work in Illustrator 2022 & 2023.
1 vote -
ver26.4.1で、AppleScriptでcharacterのpropertiesが取得できなくなった
ver26.3.1までは取得できました
2 votes -
Illustrator 2021 and 2022 crash when trying to run an action from a script
Attempting to run any action from applescript or javascript is always resulting in Illustrator 2021 or 2022 immediately crashing for me.
I've tried on multiple computers, and running it on a fresh install of AI 2022 with no settings changed.
Tested on MacOS Mojave, Big Sur, and Monterrey
It doesn't matter which Action or Action Set is used, I've tried the included "Default Actions" and others.
The identical scripts work fine from AI CC2020 back to at least AI CS6.
For example, I can copy and paste this straight from Adobe's ADOBE ILLUSTRATOR CC SCRIPTING REFERENCE: APPLESCRIPT:
tell application "Adobe…
1 vote -
pathfinder - unexpected behaviour inside script
when I select two compound paths and subtract, I get a fully selected group.
If I create an action consisting of just the pathfinder operation and run it from the actions panel, the result is identical.
If I call this action from extendscript, the group sometimes is only partially selected. - and the following steps produce unexpected results :(
It turns out that adding an extra object.selected = true can help.
I observed this in 2022 edition, I have the impression that this did not happen in 2020 edition2 votes -
Image Trace API is broken
Please watch the video attached.
1. Rename the attached .txt. file to .js (UserVoice does not allow to attach scripts directly)
2. Select a raster image in Illustrator and try to run the script the way it’s shown in the video, with line 11 and 12 commented, mutually exclusiveWith TRACINGFULLCOLOR on it is expected to have the 'Palette' dropdown switch to Full Tone, but it gets set to Limited.
On the contrary, TRACINGLIMITEDCOLOR should give Limited for 'Palette', but it gives Automatic.
These are obviously swapped.
Also notice how all advanced options become 50%.
16 votes -
Recolor artwork using scripting
Please add the recolor artwork functionality to the scripting DOM. We need this.
2 votes -
Scripting Issue on MacOS Monterey
We had this script for Illustrator that will export PDF and images with predefined presets. This was working until some of our team upgraded their macOS to Monterey.
When they tried to run the script it will create a PDF and images with different file names, we are expecting that it will have the same file name from the AI file.
EXPECTED RESULT:
AI File: 02020-MVP-3.ai
Exported Files:
- 0202-MVP-3-THUMBNAIL.png
- 0202-MVP-3-FULL.png
- 0202-MVP-3.pdfACTUAL RESULT:
AI File: 02020-MVP-3.ai
Exported Files:
- ai1655486566390202-MVP-3-THUMBNAIL.png
- ai1655486566390202-MVP-3-FULL.png
- ai165548656639_0202-MVP-3.pdfOperating System: MacOS Monterey 12.4
Adobe Illustrator: Adobe Illustrator 2022Object…
2 votes
- Don't see your idea?