Skip to content

Illustrator (Desktop) SDK/Scripting Issues

61 results found

  1. app.selectTool('Adobe Intertwine Zone Marker Tool') does not work

    When I run the following script, the Adobe Intertwine Zone Marker Tool starts up and I can select the area where I want to change the overlap like the lasso tool. However, nothing happens after the selection.

    app.selectTool('Adobe Intertwine Zone Marker Tool')
    

    Expected Result

    The overlap of the selected area is changed.

    Actual Result

    The line will remain as if it was drawn with the lasso tool. The overlap is not changed.

    Enviroment

    • macOS 11.7
    • Illustrator 27.1.1
    6 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    An intended way of picking up the hidden Zone Marker tool via a script is to enter the Intertwine mode using these commands:

    app.executeMenuCommand('Partial Rearrange Make') — when an intertwine object is not created yet, and

    app.executeMenuCommand('Partial Rearrange Edit') — when the object already exists, as per comments by the OP.

  2. 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.

    6 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  3. Opacity Mask

    Transparency / Opacity Mask - In layers pallet page item names look different with masks (underline) and opacity masks (dashed). It would be great if you could add this to properties of the page item like mask: none, opacity mask or mask. Identifying these objects is even harder then Envelopes which can only be identified by identifying as plugin object. Worst case putting info in the tag propery would be better then nothing when cresating it. I do not believe a opacity mask can be identified through any form of SDK/Script which makes identifying raster images in the file impossible.…

    6 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  4. Control the angle, length of gradients and other

    ExtendScript does not allow you to control the length, angle, or other parameters of gradients. These are all read-only attributes. Script authors can only work with color stops.

    For example, to rotate a gradient, we have to use the rotate() method, which has another problem. The angle of such a gradient is not copied to another object with the Eyedropper Tool: https://medium.com/@aiscripts/gradient-rotation-bug-24d7a6f6038f

    The fillColor assignment commands (selection[1].fillColor = selection[0].fillColor) carry over the base gradient, losing other properties. This reduces the ability to automate gradients via ExtendScript.

    Also ignores other Uservoices:
    1) https://illustrator.uservoice.com/forums/908050-illustrator-desktop-sdk-scripting-issues/suggestions/44461230-adjusting-one-gradient-causes-changes-to-unrelated
    2) https://illustrator.uservoice.com/forums/908050-illustrator-desktop-sdk-scripting-issues/suggestions/40296880-erroneous-fillcolor-type-one-shapes-with-freeform
    3) https://illustrator.uservoice.com/forums/333657-illustrator-desktop-feature-requests/suggestions/38435974-gradient-swatch-includes-angle-and-position-pleas

    5 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  5. [Typo] ExportOptionsTIFF.IZWCompression of Illustrator JavaScript Reference.pdf

    There is a typo in ExportOptionsTIFF in Illustrator JavaScript Scripting Reference.pdf, which fails to specify whether or not LZW compression is used. Please correct it.

    I have checked and it was wrong from the CS6 version.

    Expected Name: lZWCompression (begins with a lowercase L)
    Actual Name: IZWCompression (begins with an uppercase i)

    The function name in the example is also wrong. exportFileToTIFF should be correct.

    Exporting to TIFF format
    
    // Exports current document to dest as a TIFF file with specified
    // options, dest contains the full path including the file name
    
    function exportFileToPSD (dest) { // <-- exportFileToTIFF
      if
    5 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  6. Wrong short-discription in omv.xml

    macOS10.14.7 / IllustratorCC 26.3.1

    In the following omv file, the shortdesc(short description) of each property of the "TextAntialias" class in lines 833 to 865 is identical to the one for the previous "TextType" class.
    (以下のomvファイル、833行目〜865行目の「TextAntialias」クラスの各プロパティのショートディスクリプションが一つ前のTextTypeのものと同一です。)

    /Library/Application Support/Adobe/Scripting Dictionaries CC/Illustrator 2022/omv.xml

    ...
    <classdef name="TextAntialias" enumeration="true">
    <shortdesc>The type of text antialiasing.</shortdesc>
    <elements type="class">
    <property name="NONE" rwaccess="readonly">
    <shortdesc>Text from a point.</shortdesc>
    <datatype>
    <type>int</type>
    <value>1</value>
    </datatype>
    </property>
    <property name="SHARP" rwaccess="readonly">
    <shortdesc>Text within an area.</shortdesc>
    <datatype>
    <type>int</type>
    <value>2</value>
    </datatype>
    </property>
    <property name="CRISP" rwaccess="readonly">
    <shortdesc>Text on a path.</shortdesc>
    <datatype>
    <type>int</type>
    <value>3</value>
    </datatype>
    </property>
    <property name="STRONG" rwaccess="readonly">
    <shortdesc>Text on a path.</shortdesc>
    <datatype>
    <type>int</type>
    <value>4</value>
    </datatype>
    </property>
    </elements>…

    5 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  7. access opacity of TextRange

    There is no way to access the opacity of a textRange. This TextFrame has 100% opacity, but it contains two textRanges, one of which is at 50% opacity. I don't believe that there is a way to make everything 100% opaque from javascript.

    5 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  8. Scripting Bug: importFile() no longer works in CC2018

    importFile() worked fine in CC2017, now in CC2018 it throws an "Illegal Argument" error.

    here's a small JavaScript to test. Open any document or create a blank file before running the script

    var f = File('c:/temp/Example File.pdf'); // to test, add a path to a valid file in your system

    var idoc = app.activeDocument; // have any document open

    idoc.importFile(f, false);

    5 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  9. Variable font support in scripts

    There doesn't seem to be any way to use variable fonts in scripts. There is an undocumented property TextFont.axisVector, but it is read-only. So there is no way to adjust the axes of a variable font via script, even though Illustrator has supported variable fonts for many years now.

    Relevant thread:
    https://community.adobe.com/t5/illustrator-discussions/scripting-variable-fonts-in-illustrator/td-p/9834514

    4 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  10. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  11. 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.

    4 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  12. 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 object

    Etc., 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  13. Erroneous fillColor type one shapes with Freeform Gradients

    Trying to get the fillColor properties of shapes that feature Freeform Gradients

    • Using app.activeDocument.selection[0].fillColor
    • Returns a [GrayColor] instead of what we would expect to be a [GradientColor] of GradientType.FREEFORM
    4 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  14. import graphic styles from file or library

    with javascript, there is no way to import graphic styles from libraries or files. there is a way to open ai documents as graphic style libraries but then there is no script access to that library.

    currently what i have to do is have an ai file with objects with graphic styles assign to them. with my script i open that file, select the objects, copy them, close the file, switch documents, paste objects, delete objects.

    this can take a while and it is a very ugly solution. ideally there should be something as simple as importGraphicStylesFromFile(File)

    or at least …

    4 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  15. Please update "Planet X" in backend to "Live Paint"

    Actions read from API are named "Planet X".
    In AI menu, they are "Live Paint"

    Additionally, there is one typo: "Marge Planet X" = "Merge Live Paint"

    When Loupedeck reads the actions from API, they appear with outdated names in Loupedeck UI.

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  16. 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

    https://marketplace.visualstudio.com/items?itemName=Adobe.extendscript-debug&ssr=false#review-details

    The community needs this kept up to date!

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  17. Commands from Special characters / Whitespace section gives an error

    A simple script:
    app.executeMenuCommand('~copyright')
    gives an error 1200: 1346458189 ('PARM')

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  18. Fails to retrieve file creation date | AI 2020, MacOS Catalina

    This issue appears only on MacOS Catalina.

    Steps to reproduce:

    File(file_path).created.getTime()

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  19. Using method duplicate() on a group of threaded text frame items will lose threading

    Hi together,
    if we duplicate a group of threaded text frame items to a different Illustrator document the story's threaded text frame items will not be threaded anymore in the target document.

    If you duplicate the group in the same document the threaded text frame items remain threaded.

    All details here at Adobe Illustrator Scripting Forum:

    [BUG] copying threaded text-frames.
    Silly-V Mar 22, 2019 9:30 AM
    https://forums.adobe.com/message/10991060#10991060

    One has to rethread the text frame items in the target document.
    That should not be necessary.

    No issue if we copy and paste grouped and threaded text frame items using the menu…

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  20. Last frame in a story: textFrameItem.nextFrame is not null

    Hi together,
    the value of nextFrame of the last textFrameItem in a story should always be null. Otherwise you could thread the outport of a text frame item with the inport of the same text frame item.

    And indeed that's the case!

    See details in this thread at the Adobe Illustrator Scripting Forum:

    1. Re: [BUG] copying threaded text-frames. Laubender Mar 30, 2019 7:42 PM (in response to Laubender) https://forums.adobe.com/message/11004207#11004207

    Since this IS POSSIBLE it creates a rather strange text composition in the affected story. So my suggestion: nextFrame of the last threaded text frame item in a story should always…

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  • Don't see your idea?

Illustrator (Desktop) SDK/Scripting Issues

Categories

Feedback and Knowledge Base