Illustrator (Desktop) SDK/Scripting Issues
121 results found
-
Join command is unavailable when run from an action via a script
We have an action that works, when launched form the Actions panel.
Operations are simple:
1. Copy
2. Deselect All
3. Paste in Front
4. Join
5. Join
It is designed to create a new closed shape from two segments from different shapes.However, when we call this exact action from a script with a app.doScript, it doesn’t work, an error message 'The object "Join" is not currently available' is displayed.
Please see the video.
4 votes -
ExportOptionsJPEG both resolution and quality
We can export a JPEG using ExportOptionsJPEG() — but it allows to set only quality, not a resolution.
We can use ImageCaptureOptions() instead to set a resolution — but it won’t allow to set a quality, because seems to be designed for PNG (and substituting a format to JPG gives questionable results).
We need to be able to export JPEG images, controlling both quality and resolution, without using app.doScript() trick — it fails on Cyrillic folder names.
16 votes -
ExtendScript経由のスクリーン用に書き出しが固まる
説明
ExtendScript経由で[スクリーン用に書き出し]を実行すると動作が遅くなり,動いていないように見えます(実際は動いていて長い時間待てば終わる)。その間レインボーカーソルが出ています。
JPEGを書き出すときに顕著です。書き出す画像がある程度大きいと,プログレスバーが99%くらいになった後ほとんど進みません。CPU使用率は100%前後になります。
例:1700x1000pxのアートボード8枚を300ppiで書き出すとき,かかる時間は228.175秒(できたJPEGの重さは1点につき2.9MB)同じ条件の書き出しをGUIから手動で実行すると,すぐに終わります。
例:1700x1000pxのアートボード8枚を300ppiで書き出すとき,かかる時間は2秒くらい(できたJPEGの重さは1点につき1.8MB)PNG24は手動よりは遅いですが,JPEG程大きく影響しません。CPU使用率は160%前後でした。
例:1700x1000pxのアートボード8枚を300ppiで書き出すとき,かかる時間は57.745秒次の条件で起こります。
* 少なくともIllustrator 2020〜2022(24.3.0〜26.0.2)
* 少なくともmacOS Monterey 12.0.1(Apple Silicon) / Big Sur 11.6(Apple Silicon)の2環境
* 少なくともMacBook Air(Apple Silicon, 16GBメモリ) / iMac(Apple Silicon, メモリ不明)の2機種
* ExtendScriptのDocument.exportForScreens経由で実行
* オプションJPG 100,300ppi(アートボードサイズは1700x1000px)次の条件では起こりません。
* オプションをJPG 100,72ppiにしたとき
* オプションをPNG24,300ppiにしたとき
* GUIから手動で実行したとき次の項目はあまり影響しないようです。
* IllustratorをRosettaで起動するかどうか。Rosettaにしたらさらに遅くなる
* アートボード上のアイテムを単純なデータにすること。四角いパスとグラデーションだけでも遅くなる期待する動作
ExtendScript経由で[スクリーン用に書き出し]を実行したとき,GUI経由で行うのと同じくらい速く動きます。
4 votes -
More notifiers for live effects
Ai provides a live effect notifier that triggers when an object is scaled, but not when it’s moved. Same problem with rotating — the absence of these does not allow to recalculate effects properly, like one when an object with a shadow is rotated, and a user wants to rotate the shadow with the object (there is a quite popular request about this one already — https://illustrator.uservoice.com/forums/333657-illustrator-desktop-feature-requests/suggestions/32468149-effects-do-not-rotate-drop-shadow-or-scale-e-g)
9 votes -
firstLineIndent can’t be set to zero
Create a text object, type some text, keep it selected and run the script:
activeDocument.textFrames[0].paragraphs[0].paragraphAttributes.firstLineIndent = 20;
alert(activeDocument.textFrames[0].paragraphs[0].paragraphAttributes.firstLineIndent);activeDocument.textFrames[0].paragraphs[0].paragraphAttributes.firstLineIndent = 0;
alert(activeDocument.textFrames[0].paragraphs[0].paragraphAttributes.firstLineIndent);You have two alerts saying 20, while the second one should show and actually set the first line indent value to 0 — and it does not.
5 votes -
I'm a graphic design student, my work and projects depend on Adobe Illustrator. The program does not run on my new Windows 11 Surface Pro X
Adobe Illustrator for devices with ARM-64 Processors (i.e. Surface Pro X)
1 voteThis device can’t run desktop Ai :(
There are some explanations and a workaround in comments below.
-
Update the VSCode ExtendScript Debugger
This is an essential tool.
Too many issues to mention here - and that's just on a PC. It doesn't work at all on ARMx64
The community needs this kept up to date!
3 votes -
an Illustrator error occurred: 1346458189 ('PARM')
I get this error too often on an irregular basis.
Do something.
At the very least, please return the correct cause of the error as to what caused the error.createOutline (),
Move () for each objectEtc., this error of the title is occurring too much during loop processing with for or while.
I've come to hate Illustrator anymore.
Please give the correct information to this error.
I want to deal with it.This error has been the same since at least Illustrator CC 2014.
I thought that the frequency of errors occurred in Illustrator CC 2017 was considerably…4 votes -
exportForScreens() file output naming issues
Natively File > Export > Export for Screens has an option to add a suffix to the output file name, but in scripting the last parameter adds a prefix to the output file name not a suffix as it should to match the desk top user options.
exportForScreens(path, ExportForScreensType, ExportForScreensOptions, ExportForScreensItemToExport, "This adds a prefix NOT a suffix");
1 vote -
Illustrator v25.1 doesn't recognize some AppleScript commands
Illustrator v25.1 doesn't recognize some AppleScript commands, specifically important to me: Apply Character Styles, Embed, and Rotate. Delivers error: Illustrator doesn't understand the message. Has never happened in any previous version of Illustrator.
10 votes -
Iterating through large collections is very slow (non linear).
Whenever I have a need to iterate through a large collection (such as pageItems) the iteration is very very slow, and the larger the collection is the more slower it gets. I would expect this to be a linear behavior, but it's not. If a collection's size doubles, it takes more than double the time to iterate through it.
14 votes -
Isolate/Unisolate commands
Commands:
//menu Other Object\Isolate Selected Object
app.executeMenuCommand('enterFocus');//menu Other Object\Exit Isolation Mode
app.executeMenuCommand('exitFocus');Return error:
an Illustrator error occurred: 1346458189 ('PARM').This applies not only to isolation, but also to some other commands.
9 votes -
ファイル名に#が付いた配置画像のファイルパスをapplescriptで得ようとすると問題あり
例えばファイル名「ABC#123.psd」とした画像を配置し、
選択したうえでtell application "Adobe Illustrator"
get file path of selection
end tellを実行するとリザルトが
file "○○○:○○○:ABC"
となり、#とそれ以降が無くなっている。
正常ならば
file "○○○:○○○:ABC#123.psd"
となるはず。ファイル名に限らず、パス内に#が入っているとダメ。
cs6、cc2018、cc2019では問題ない。
cc2020(24.1.3)(24.2.1)(24.3.0)cc2021(25.2.3)パブリックベータは問題あり。macmini2018 macOS 10.14.6
imac2020 macOS 11.2.31 vote -
Dimension / Fraction script not rotating text properly
After installing the Illustrator 25.1 update, some of the features of the dimension / fraction script are not rotating text properly. Some of the options should rotate the height measurement 90º; it remains horizontal with no rotation.
[dimensionsFractions1.3RO]
1 vote -
Illustrator 25.2 missing scriptability Info.plist entry
Illustrator's Info.plist file no longer has an entry for
NSAppleScriptEnabled
. That means normal attempts to open its scripting dictionary fail.3 votes -
.duplicate() does not update selection, crashing Illustrator
selection[0].duplicate()
// redraw()
alert(selection.length)when running this script in Illustrator, you will see that both the original selection plus its duplicate will be selected, but the alert will display 1. Running this script in debug shows that selection only contains one object despite .duplicate() being used. This causes a corruption(?) issue where in reality there are now two objects selected but selection only shows one to be selected unless you do redraw(). This discrepancy will cause Illustrator to crash when trying to set the selection (in specific circumstances) on another line after the .duplicate().
In other situations, whether one or…
2 votes -
I need the TAD file technical architectural diagram for AI
I need the tad file for AI in order to have my company pilot this program and deploy it
1 vote -
Justification bug, cannot set 'center' in v24.2 using AppleScript
Running a script to set the justification of text works perfectly for left and right, but no longer works for center. Putting the example script given in the latest Illustrator CC Scripting Guide, page 122, into a Script Editor visually compiles centre differently to left and right and only works if you remove or comment out the line justifying to center.
5 votes -
placedItem name property doesn't work
Hello,
I'm trying to get placedItem name, but it is empty
//Get active document
var activeDocument = app.activeDocument;//Get all links (or placed items)
for (var i = 0; i < activeDocument.placedItems.length; i++) {
var imageName = activeDocument.placedItems[i].name;
alert("imageName = " + imageName);
}activeDocument.placedItems[i].name returns empty string
2 votes -
Unable to use file for "do javascript" in Illustrator 2020
Bug report:
Passing a JavaScript file (alias) to "do javascript" in Illustrator 2020, fails with the error "JavaScript code was missing".Also, if using a JavaScript string for "do javascript" and passing a file to "with arguments", it will be a missing File object in JavaScript.
Expected behavior:
As with Illustrator 2019, it is executed when a JavaScript file is passed. If a file is passed "with arguments", it becomes an existing File object.Japanese:
Illustrator 2020でdo javascriptにファイルを指定できないバグ内容:
Illustrator 2020でAppleScriptのdo javascriptにJavaScriptファイル(エイリアス)を渡すと「JavaScript code was missing」とエラーが起きて終了する。また,do javascriptにJavaScript文字列を使い,with argumentsにファイルを渡すと,JavaScriptでは行方不明のFileオブジェクトになる。
期待される動作:
Illustrator 2019までと同じように,JavaScriptファイルを渡すと正常に実行される。with argumentsにファイルを渡したときは存在するFileオブジェクトになる。27 votes
- Don't see your idea?