Illustrator (Desktop) SDK/Scripting Issues
121 results found
-
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 -
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 -
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 -
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 -
Constrain Proportions button toggle
app.preferences.setBooleanPreference('linkTransform',1);
makes the Constrain Width and Height Proportions button to toggle... but only internally, the button does not change.16 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 -
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 -
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 -
ファイル名に#が付いた配置画像のファイルパスを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 -
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 -
.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 -
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 -
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 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 -
Add ability to retrieve text on path options via C++ API
Currently, it is not clear or not possible how we can get the current text on the corve element's baseline and effect settings.
Make them accessible via some API.1 vote -
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 -
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 -
24.3 causes my extension to crash illustrator
Hi,
I've noticed that my extension Khronos Maker have started to crash Illustrator after updating to 24.3. I'm not sure what's causing it and hope to get some help to identify where the problem is.
In terms of code, what's causing the crash is the sequence of following:
myDocument.textFrames.add();
myLayer.position = [coordinates.x, coordinates.y];
myLayer.contents = graphic;app.undo()
//and then running the code above again after the undo causes a crash
myDocument.textFrames.add();
myLayer.position = [coordinates.x, coordinates.y];
myLayer.contents = graphic;This is strange since hitting cntrl + Z (windows) instead of the script, no crash. And in version 24.2.3 everything works fine.…
1 vote -
Unable to create file or folder object in Illustrator CC2020
I tried to create a file or folder object with a slash (colon) in its name in Illustrator CC2020, but I couldn't.
Also, I was not able to get the file object from PlacedItem.
The same thing happens with AppleScript.In Photoshop CC2020 and InDesign CC2020,I was able to create.
NG Case(JSX)
[File location] desktop > 2020/01 > 01/01Image01.jpg ==> [Full path] /Users/***/desktop/2020:01/01:01Image.jpg
var fObj = File('/Users/***/desktop/2020:01/01:01_Image.jpg'); ==> invalid object
fObj.exists ==> false
fObj.name ==> none2 votes
- Don't see your idea?