Skip to content

Illustrator (Desktop) SDK/Scripting Issues

131 results found

  1. Allow C++ SDK to load swatch library (ase) from filepath

    Currently, with ExtendScript, we're able to load a swatch library from a filepath and show its panel. In the C++ SDK, we're only able to open a library with the OpenNthLibrary function from the SwatchLibrariesSuite.

    It would be nice, similar to ExtendScript, to be able to load an .ase from a filepath and open the panel.

    3 votes
    2 comments  ·  C++ SDK  ·  Admin →
    How important is this to you?
  2. 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
    How important is this to you?
  3. 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
    How important is this to you?
  4. Export jpg using script to specific dpi

    Export jpeg using script to specific dpi.

    3 votes
    How important is this to you?
  5. [BUG] Error during evaluation of conditional (ternary) operator

    The script in the Illustrator produces an error during evaluation of a conditional expression that includes a nested conditional expression without parenthesis.

    This breaks JavaScript optimization tools e.g. Google Closure Compiler.

    Scenario:
    alert(true ? true ? 1 : 2 : 3);

    Expected:
    Standard dialog with message: "1".

    Actual:
    Dialog with message "Error 25: Expected: :."

    Workaround:
    alert(true ? (true ? 1 : 2) : 3);

    System info:
    Illustrator Version: 23.0.1
    OS: OS X
    Version: 10.14
    System Architecture: x64

    3 votes
    How important is this to you?
  6. Add Javascript API for swatches functionalities

    There are many missing feature that we can not handle using javascript scripting, also may be apple script.

    1. Merge swatches via script
    2. Suppress merge swatch conflict dialog via script or do it in the background by default value.
    3 votes
    How important is this to you?
  7. Javascript erroneously reports stroke color in paragraphStyles.characterAttributes if it has been changed from a color to noColor

    AI 21.0.0 2017 Release

    ---------------------------------------- to reproduce

    New Document (defaults: print, letter)

    T for text tool, click in document, type "test text"

    cmd-return to exit

    in Color palette click anywhere in color bar to change text color

    in Paragraph Styles palette, click the new style icon to create "Paragraph Style 1"

    ---------------------------------------- 1st run

    run script "bugreport"

    results:
    fillColor: [CMYKColor]
    strokeColor: [NoColor]

    ---------------------------------------- 2nd run

    select the "test text" text

    press "X" to change the color palette from fill to stroke

    click anywhere in the color bar to give the text a colored stroke

    in Paragraph Styles palette, select "Redefine…

    3 votes
    How important is this to you?
  8. Dialog display in the event of a path segment exceedance during script processing is displayed with 8191 pieces.

    Illustrator ver.29.3.1

    The current Illustrator specification allows "31999" segments to be included in a single path, but the exceedance error displayed during script execution is displayed at "8191" segments. This is the value of the limit in past versions and has not been updated when the specification was changed.

    When run the following script, we get an error dialog with 8191 segments, but there are 32000 path points and 31999 segments added to the path on the document.

    var depth = 8;
    var size = 500;
    var doc = app.activeDocument;
    var layer = doc.layers.add();
    layer.name = "Hilbert Curve";
    var pth…

    2 votes
    How important is this to you?
  9. Move gradient swatch to swatch group

    In new releases of Adobe Illustrator, it's now possible to move gradient swatches into swatch groups.

    Previously, we expectedly got an error when trying mySwatchGroup.addSwatch(myGradientSwatch) >>> an Illustrator error occurred: 561402708 ('TSv!')

    What's happening now...Same thing! The user can group gradients in the Illustrator interface, and the scripts are still unaware of this fix

    Mac OS. Adobe Illustrator CC 2025 v29.3

    2 votes
    How important is this to you?
  10. [BUG] exportFile() changes spaces to hyphens in file name

    //how to reproduce:
    app.activeDocument.exportFile(new File("~/desktop/test test"), ExportType.GIF);

    //types affected -  ExportType.PNG24,  .PNG8,  .JPEG, .GIF
    //types exporting with no unwanted hyphen - .TIFF, .SVG
    

    //persists on win and mac

    2 votes
    How important is this to you?
  11. 2 votes
    How important is this to you?
  12. [SDK Feature Request] Annotator option to draw selection annotation last.

    There is no option to draw the selection annotation last. Filled shapes and image annotations always block the selection annotation. See images for what i mean.

    2 votes
    0 comments  ·  C++ SDK  ·  Admin →
    How important is this to you?
  13. settings raster effects value visible main screen

    I need to view somewhere in the Illustrator interface, the value set in the "raster effects settings" panel.

    Is there a scripted way to implement this?

    I've created actions that set this value to 72ppi / 300ppi so that I can change it when the document becomes heavy and unmanageable (thanks to using only 1 CPU CORE, thanks Adobe ❤).
    The problem is that if I save the file, I will probably save it at 72ppi, but for printing the effects are poor and you have to set them to 300ppi.
    So having the value always visible on the screen,…

    2 votes
    How important is this to you?
  14. exportFile doesn't work with NoUI document

    trying to create a "NoUI" document and export as SVG like this:

    opendoc = app.documents.addDocumentNoUI();
    opendoc.exportFile(file, ExportType.SVG);

    I get the attached error in AI

    I can't think of any other way to export an SVG via script. Obviously there are scripting things that don't work with NoUI documents, but it seems like this one should. Am I doing something wrong?

    2 votes
    How important is this to you?
  15. .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
    How important is this to you?
  16. 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
    How important is this to you?
  17. 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 ==> none

    2 votes
    How important is this to you?
  18. retrieve transformation matrix of a symbol instance

    there seems to be no way to retrieve a symbol instance's transformation matrix (neither javascript nor SDK).
    It is only possible to compare the bounding box to the expected one

    2 votes
    How important is this to you?
  19. Unable to get AppleScript that worked in AI 2019 to work in AI 2020.

    We have an export in AppleScript we run for our AI 2019 graphics, but when we run it in 2020, we get an error that the file we're working in cannot be found, even though the path is correct. I can delete everything but one line (doesn't matter which line) in the script and I still get the error. Is there a basic trick tog et AppleScript that work in 2019 to work in 2020?

    2 votes
    0 comments  ·  AppleScript  ·  Admin →
    How important is this to you?
  20. Delete Anchor Point is not working

    On the latest update of AI (2020 version) delete anchor point is not working.

    2 votes
    0 comments  ·  CEP  ·  Admin →
    How important is this to you?
  • Don't see your idea?

Illustrator (Desktop) SDK/Scripting Issues

Categories

Feedback and Knowledge Base