Skip to main content
Naoki-Hada
Known Participant
May 30, 2017
Question

[Q] Handling selection changed event

  • May 30, 2017
  • 1 reply
  • 1756 views

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

This topic has been closed for replies.

1 reply

Ten A
Community Expert
Community Expert
May 31, 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.

Naoki-Hada
Known Participant
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