• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Illustrator CC 2017 breaks on BridgeTalk script execution

Explorer ,
Sep 26, 2017 Sep 26, 2017

Copy link to clipboard

Copied

The following piece of code was functioning wonderfully until illustrator CC 2017. This function is a trampoline for us to invoke scripts from an ExtendScript UI, which are passed as a string into the function.

function BTExecuteScript(jsscript){

    // create a BridgeTalk message for Illustrator to execute jssscript.

    var btMessage = new BridgeTalk;

    btMessage.target = illustrator.targetName;

    btMessage.body =  jsscript;

    btMessage.onResult = function(bto) {BridgeTalk.bringToFront(bto.sender);};

    btMessage.onError = function(errorMsgObject) { // error handler defined here

        alert("Error: "+errorMsgObject.body);

    };   

    btMessage.send();

}

Since upgrading to CC 2017, however, we get the  following error:

Any help will be much appreciated!

TOPICS
Scripting

Views

1.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Sep 27, 2017 Sep 27, 2017

Thank you, that was the key -- The alert said "illustrator-19" and I discovered that I had a lingering Illustrator\ 2015 folder in the Adobe Illustrator CC Startup scripts folder. For some reason, Illustrator 2017 was reading in the '.jsx' from the 2015 folder instead of the 2017 folder. The solution was to delete the 2015 folders.

Anurag.

Votes

Translate

Translate
Adobe
Valorous Hero ,
Sep 26, 2017 Sep 26, 2017

Copy link to clipboard

Copied

when you do alert(illustrator.targetName), does it say "illustrator-21" ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 27, 2017 Sep 27, 2017

Copy link to clipboard

Copied

Thank you, that was the key -- The alert said "illustrator-19" and I discovered that I had a lingering Illustrator\ 2015 folder in the Adobe Illustrator CC Startup scripts folder. For some reason, Illustrator 2017 was reading in the '.jsx' from the 2015 folder instead of the 2017 folder. The solution was to delete the 2015 folders.

Anurag.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Sep 27, 2017 Sep 27, 2017

Copy link to clipboard

Copied

LATEST

great find!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines