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)
83 results found
-
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 -
Scripts ran via actions do not select properly
Dear developers,
A few days ago I wrote a simple script which uses pathfinder to unite paths. This works perfectly when the script is ran via File > Scripts. But when added to an action and ran the script seems unable to select the proper layer and thus fails to run pathfinder.
For a detailed rundown, analysis and files please visit the community forms post: https://community.adobe.com/t5/illustrator-discussions/script-ran-via-actions-does-not-select-properly/td-p/13032773
Technical details:
- Microsoft Windows 10 Pro version 10.0.19043 Build 19043;
- Adobe Illustrator 2022 version 26.0.3 (64 bit)Kind regards.
8 votes -
textRange.words counts words wrong in a wrong way
If you try to calculate a number of words and store them for later using textRange.words and a punctuation marks placed one space after the word, as demonstrated in the video, Ai cuts words in wrong places, resulting words being trimmed.
This breaks all scripts that rely on this method.
You have to rename 'words-bug.txt' into 'words-bug.js' and 'words-bug.pdf' to 'words-bug.ai' to test it, since UV does not allow to upload these type formats.
10 votesAs per the comment, the bug is 'fixed' in 27.4, by creating another bug — https://illustrator.uservoice.com/forums/601447-illustrator-desktop-bugs/suggestions/46537261-incorrect-word-count-via-script
Please check and upvote the problem
-
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 -
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 -
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 -
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 -
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 -
Recolor artwork using scripting
Please add the recolor artwork functionality to the scripting DOM. We need this.
2 votes -
reading XMP data in scripts broken by 25.4 update.
Illustrator 25.4 update broke scripts that try to read XMP data that worked in previous versions of Illustrator. This is the Mac version (have not tried in Windows).
It appears to be getting the error on this line:
ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');
Comparing the frameworks in the package contents for 25.3.1 vs 25.4, the AdobeXMPScript framework appears to be missing in 25.4.
Below is an example script to read font data that worked in 25.3, but errors loading the library in 25.4
// load XMP Library
function loadXMPLibrary() {
…if (!ExternalObject.AdobeXMPScript) { try { ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript'); } catch
22 votesCompleted (Comments Open) · AdminIllustrator Engineering (Software Engineer, Adobe Illustrator) respondedWe have the fix available in the latest prerelease build 26.0
Please update Illustrator using Adobe Creative Cloud application to the latest prerelease build from prerelease section
Warm Regards,
Aishwarya G Gadodia -
IUStringUnitsToAIReal doesn't recognize comma as decimal separator
std::string input_ = "1,5"; // From Adobe header: The string to convert, which uses the localized international utilities (IU) decimal separator.
AIReal n;
sAIUser->IUStringUnitsToAIReal(ai::UnicodeString(input_), &n);This function interprets the text "1,5" as "15" even when the locale is set to a country where the system uses a comma decimal separator. Related functions IUStringToAIReal recognizes the comma, though.
4 votes -
Problems with scripts and BridgeTalk using Illustrator 25.3.1 on M1 Mac
I have a handful of scripts that have stopped working after switching from an Intel Mac mini to an M1 Mac mini. The scripts will run as expected if I use the Intel version of Illustrator on the M1 Mac mini, but they return this error when run using the M1 version of Illustrator on the same machine "TARGET COULD NOT BE LAUNCHED(59)". The current culprit seems to be BridgeTalk. Any help would be appreciated, thx!
13 votesThe workaround for this is to update to the latest build, 25.3.1, which doesn't contain Bridge related changes for Mac ARM — that's why this error is happening.
If you still have the issue, please comment back.
-
broken: reading File date properties
Unable to read date properties from a File on Mac (does work on Windows)
alert(app.activeDocument.path.modified)
alert(app.activeDocument.path.created)// always returns null as if file is not saved
I tested on:
Mac mini M1, macOS Montery 12.3.1, Ai 26.2.1 and Ai beta 26.4.2
Macbook Pro Intel, macOS Catalina 10.15.7 Ai 26.2.12 votes -
(Applescript) do javascript command no longer works in Illustrator 2021(25.1)
Bug report:
When using AppleScript's do javascript in Illustrator 2021(25.1), nothing happens regardless of whether it is a file or text. The result will return a missing value. In 25.0.1, it works fine.In the case of jsx files, it can be avoided by writing the following code. If the file extension is jsxbin, it cannot be executed. And arguments cannot be passed.
-- solution 1
tell application "Adobe Illustrator"
open ("Macintosh HD:Users:username:Desktop:sample.jsx" as alias)
end tell-- solution 2
tell application "Finder"
open ("Macintosh HD:Users:username:Desktop:sample.jsx" as alias) using ("Macintosh HD:Applications:Adobe Illustrator 2021:Adobe Illustrator. app:" as alias)
end tell…
53 votesI am happy to share that we have fixed this bug in our latest release – 25.2 which is available worldwide now.
Going forward, our goal is to fix as many top User-Voice bugs as possible and as frequently as possible. Given the nature of the fixes, some of the bugs will take a longer time to fix, but we are on it.
You can update to the latest release using Creative Cloud desktop App: https://helpx.adobe.com/in/creative-cloud/help/creative-cloud-updates.html
Thank you for all the feedback. Keep it coming!
-
Scripting window keeps appearing and no way to remove it
Uninstalling/Reinstalling does not remove prompt. Starting appearing after most recent update to with the new ipad features. Going back to older version, the window doesn't appear.
6 votesThis issue is happening due to a security feature added in Illustrator to inform the user if any external application tries to execute a script in Illustrator.
Solution: Update your Logitech options app to the latest version – https://www.logitech.com/en-in/product/options
https://helpx.adobe.com/illustrator/kb/fix-scripting-error.html
We heard from some users that above solution is not working for them, we are investigating this issue. Meanwhile users can try the below workaround
Create a JSX file with the following content:
app.preferences.setBooleanPreference(“ShowExternalJSXWarning”, false);
Save the above JSX file. Now, go to File > Scripts > Other Script, and choose the newly saved jsx file.This will suppress the warning dialog and run the script.
-
Illustrator RulerUnits returns Unknown for 'Feet' and 'Feet and Inches'
Illustrator recently added 'Feet' and 'Feet and Inches' to the available ruler units; however, when a user selects one of these units, the scripting side returns 'RulerUnits.Unknown' for 'activeDocument.RulerUnits'.
For scripting, the corresponding 'RulerUnits.*' value should be added so that developers can respond to the selected units.
14 votesI am happy to share that we have fixed this bug in our latest release – 27.1.1 which is available worldwide now.
Going forward, our goal is to fix as many top User-Voice bugs as possible and as frequently as possible. Given the nature of the fixes, some of the bugs will take a longer time to fix, but we are on it.
You can update to the latest release using Creative Cloud desktop App: https://helpx.adobe.com/in/creative-cloud/help/creative-cloud-updates.html
Thank you for all the feedback. Keep it coming!
Ankit Goyal
Illustrator Team
-
how can a note have more than one value?
this file shows a situation where the note shown in the attribute panel differs from the note visiblefor a script. There were about fife occurences in a file of about 500 art objects. I picked one and removed everything else, and also replaced the artwork by a plain rectangle.
To view the error, select the square and view the attribute panel
Then run this extendscript:
var doc = app.activeDocument;
var obj = doc.selection[0]
alert(obj.note)BTW: I could set proper values with a simple jsx that sets the note from the contents of a text field
1 vote
- Don't see your idea?