Skip to content

Illustrator (Desktop) SDK/Scripting Issues

3 results found

  1. addDocumentNoUI methods argument not selectable.

    1.Your version of Adobe Illustrator
    Illustrator ver.21 or later.

    2.The steps you were taking when you experienced the issues
    When we run addDocumentNoUI method, we can set startupPreset.
    However, It always sets "Web" preset.

    3.Your expected result
    When we select "Art & Illustration" document open with appropriate preset.

    4.Your actual result
    All the time we got a document made with "Web" preset.

    Here is a sample code of NoUI scripting.

    var dc = app.documents.addDocumentNoUI("Art & Illustration");
    //add some objects
    dc.saveNoUI(File("~/Desktop/testNoUI.ai"));
    dc.closeNoUI();

    After run it and open in Illustrator, we will find it used Web preset.
    We want to choose appropriate…

    9 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)

    var dc = app.documents.addDocumentWithDialogOption(“Art & Illustration”, false);
    //add some objects
    dc.saveAs(File(”~/Desktop/testNoUI.ai“));
    dc.close(SaveOptions.DONOTSAVECHANGES);

    Above script works for creating, saving and close the document without UI. The document preset is localized, if you are using locale other than english, you should pass the localized name of preset to addDocumentWithDialogOption method.

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

  3. 1 vote

    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

    2 comments  ·  C++ SDK  ·  Admin →
    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