Created
April 12, 2022 18:13
-
-
Save justintaylor-dev/5d8616f9b65f09b07b23c268c465208f to your computer and use it in GitHub Desktop.
extendscript-to-cep-event
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JS / CEP Extension | |
const csInterface = new CSInterface(); | |
csInterface.addEventListener('myEvent', (evt) => { | |
// do stuff | |
}); | |
// ExtendScript | |
var xLib = new ExternalObject("lib:\PlugPlugExternalObject"); | |
if (xLib) { | |
var eventObj = new CSXSEvent(); | |
eventObj.type = "myEvent"; | |
eventObj.data = "customData"; | |
eventObj.dispatch(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment