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

[Q] Handling selection changed event

Contributor ,
May 30, 2017 May 30, 2017

Copy link to clipboard

Copied

Hi all,

Is it possible to handle when selection has changed in ExtendScript?

I'd like to do like following code, but I'm not sure the capabilities.

I appreciate any comment or suggestions.

Thank you.

Test code: not working

#target illustrator

testOnChange = function(param){

    alert("App selection has changed.");

}

app.selection.addEventListener("change", testOnChange, false);

TOPICS
Scripting

Views

1.3K

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
Adobe
Community Expert ,
May 30, 2017 May 30, 2017

Copy link to clipboard

Copied

Hi,

Illustrator dosen't support selection events.

If you want to trigger such events, You need to make Plugin like HostAdapter.aip and CEP extension that bridge events to Extendscript.

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
Contributor ,
May 31, 2017 May 31, 2017

Copy link to clipboard

Copied

Ten A​, Thank you very much for the pointer. I'll check into the details.

I've got your link also.

  Extension Builder Trial 終了直前特集 - 手抜きLab@DTPの現場

CEP extension is fine for our case. Actually it would be better that no need to think about JSX to CEP.

Thank you

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
Community Expert ,
May 31, 2017 May 31, 2017

Copy link to clipboard

Copied

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
Contributor ,
Jun 01, 2017 Jun 01, 2017

Copy link to clipboard

Copied

@Ten A, Thank you very much for the links. I'll check into details.

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
Contributor ,
Mar 21, 2020 Mar 21, 2020

Copy link to clipboard

Copied

Hi,

 

I am looking for the same thing, but try to avoid CEP (I have some jsx experience and dont want to learn plugins and EP at the same time. Do you have any pointers for that?

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
Community Expert ,
Mar 21, 2020 Mar 21, 2020

Copy link to clipboard

Copied

LATEST

no, there's nothing new after Ten's answer 3 years ago

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