Skip to content

Illustrator (Desktop) SDK/Scripting Issues

121 results found

  1. Executing the script throws the Error 1242: Illegal argument

    平素は誠にお世話になっておりますAdobe製品の機能評価をしております
    Adobe製品の機能評価をしておりますが対応策があれば教えていただければ幸いです
    [Windows11 Pro 22H2] Adobe Illustrator27.9で次のJavaScriptを実行するとError 1242:Illegal argument -argument 1のエラーとなりましたのでバグとして報告いたします

    var textValue = null;
    var selectedFont = null;
    // アクティブなドキュメントを取得
    var doc = app.activeDocument;
    // インストールされている書体のリストを取得する関数
    function getInstalledFonts() {
    var fontList = [];
    var fonts = app.textFonts;
    for (var i = 0; i < fonts.length; i++) {
    fontList.push(fonts[i].name);
    }
    return fontList;
    }
    var fontAll = getInstalledFonts();
    // ダイアログボックスの作成
    var dialog = new Window("dialog", "縦組テキストを配置", undefined, {resizeable: true});
    dialog.orientation = "column";
    // ダイアログボックスに「テキスト入力エリア」を追加
    var textArea = dialog.add("edittext", undefined, "", {multiline:true, scrolling:true});
    textArea.preferredSize = [500, 200]; // 幅500、高さ200
    // ダイアログボックスに「書体の選択」の追加
    var fontDropdown = dialog.add("dropdownlist", undefined, fontAll, {scrolling:true}); // インストールされている書体のリストを取得
    fontDropdown.selection =…

    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

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  2. Change Adobe PDF settings without creating a PDF file

    Does anyone know if there is a way to change Adobe PDF settings without saving the current file into a PDF file? More specifically, is there a way to turn on/off the "Preserve Illustrator Editing Capabilities" option using C++ SDK?

    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

    0 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)
  3. weird unicode file names in CEP panel scripts

    Files with unicode names should report correctly in the documentAfterActivate and documentAfterSave events.
    I just noticed that there are not only strange sequences of escaped and unescaped characters, but they can even differt between these two events.
    A € sign produces 0x80 in the activate event and %e2 0x82 %ac in the save event

    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

    0 comments  ·  CEP  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  4. how can i call these functions in AI via script?

    -I would like to open a Multipage PDF with settings set to open "all pages" and "import pages as links".
    If the pdf has only one page import it also as a link (if possible do it)

    • Import an Illustrator *.ai file Multi-layouts by importing them as links across multiple layouts.

    • Set flattener presets:

    • preset name

    • various parameters...

    • Select all (Select / All)

    • Run the command: Object / convert transparency / Previously saved preset / OK

    • I saw among the commands that there is an openOptionsFreeHand could I create a script that opens the freehand files for me?

    How could…

    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

    0 comments  ·  JavaScripting  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  5. AppleScript can't get character properties (ver26.4.1, ver26.5)

    tell character 1
    properties
    end

    ver26.3.1 get properties
    but, ver26.4.1, ver26.5 cant't get properties

    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

    0 comments  ·  AppleScript  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  6. variables.removeAll(); does not work

    When I execute variables.removeAll();. error occurred: 1346458189 ('PARM').
    On the other hand, dataSets.removeAll() works.

    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

    1 comment  ·  JavaScripting  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  7. ExtendScript Debugger 2.0.3 for VSCode fails on "doScript" method

    When a script containing "doScript" method is run from VSCode to AI 2022 using any version of ExtendScript Debugger 2.x it locks up Ai 2022 requiring a force quit. VSCode must also be reloaded before any debugging can continue.

    Rolling ExtendScript Debugger back to v1.1.2 eliminates the failure at the expense of the more advanced features of v2.x.

    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

    0 comments  ·  JavaScripting  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

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

    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

    0 comments  ·  JavaScripting  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  9. 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)
  10. ファイル名に#が付いた配置画像のファイルパスを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.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

    0 comments  ·  AppleScript  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

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

    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

    0 comments  ·  Vb Scripting  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

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

    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

    3 comments  ·  AppleScript  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

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

    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

    0 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)
  14. 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

    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

    1 comment  ·  CEP  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  15. Listbox checkmarks not displaying in Illustrator 2020

    Checkmarks are no longer being displayed on listbox items in Illustrator 2020. Please see the attached image showing the listbox in Illustrator CC 2019 and Illustrator 2020. This is on a Windows PC.

    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

    0 comments  ·  JavaScripting  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  16. Add documentation for exporting Windows Metafile (WMF)

    There's currently a hidden parameter 'parm' that is required to export as WMF in kAIExportDocumentAction. Please document what this is for and what value is required.

    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

    0 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)
  17. Close swatch library

    Would it be possible to add the ability to close a swatch library panel through some sort of handle?

    There are cases where we have multiple swatch libraries open and would like to close one/some of them upon some event.

    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

    0 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)
  18. Add ability to create a File object from an HTTP endpoint

    Adding the ability to create a File object from an HTTP endpoint rather than a physical document on disk would be very useful for scenarios where you want to reference a linked item from an online asset management system, where it is centrally stored and versioned, as opposed to being forced to download the file to disk. This would also help with management of access and security relating to these assets.

    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

    0 comments  ·  JavaScripting  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  19. Extension drop down list Not completely visible at the bottom of the extension

    We have verified 2019 version of adobe illustrator in both Windows and Mac operating systems. drop downs developed in the extensions which are at the bottom of the extensions are hiding inside the extensions and complete data not visible. 2018 version of adobe illustrator is working fine but problem with 2019 version

    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

    0 comments  ·  CEP  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  20. Step and repeat batch script needed

    I need a script that can step and repeat hundreds of AI images from one size (scale in height/width) to another and then have the same script save the image to a web friendly JPEG format. Is there such a tool/script already in existence, or can something like this be created? Note - the original AI files do not all have the same step and repeat pattern, which makes it tricky.

    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

    0 comments  ·  AppleScript  ·  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