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

[Q] Handling selection changed event

Contributor ,
May 30, 2017 May 30, 2017

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
1.7K
Translate
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

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.

Translate
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

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

Translate
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
Translate
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

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

Translate
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

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?

Translate
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
LATEST

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

Translate
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