Copy link to clipboard
Copied
Hello All,
I would like to be able to have a plugin that sends messages to a javascript. This script has a scrollable list, some editable fields and some buttons. I want to be able to tell the script the selection in the list needs to change or the content of the editable fields is out of date and need updating. I would also like the plugin to receive messages from the javascript.
Is this possible? Any documentation or sample code would be very handy.
All the best.
P.
You should also have a look at this informative article by Harbs on "Hybrid Plugins"
http://cookbooks.adobe.com/post_What_is_a__Hybrid_Extension__-19547.html
Manan Joshi
- Efficient InDesign Solutions
- MetaDesign Solutions
http://metadesignsolutions.com/services/indesign-development.php
Copy link to clipboard
Copied
Yes this is very much possible, what you could do in your plugin is create events which are fired when something of the script's interest happens. In the script you could register to listen to these events, and do the necessary action in response to the event in the events handler.
For passing back the info from the script to the plugin you could create a scriptable method in the plugin code that is called by the script every time the script wants the plugin to notify of something. This way you could have two way communication between the script and the plugin, and thus have a fully functional hybrid plugin with both the plugin component and the script component worknig in tandem with each other.
Manan Joshi
- Efficient InDesign Solutions
- MetaDesign Solutions
http://metadesignsolutions.com/services/indesign-development.php
Copy link to clipboard
Copied
You should also have a look at this informative article by Harbs on "Hybrid Plugins"
http://cookbooks.adobe.com/post_What_is_a__Hybrid_Extension__-19547.html
Manan Joshi
- Efficient InDesign Solutions
- MetaDesign Solutions
http://metadesignsolutions.com/services/indesign-development.php
Copy link to clipboard
Copied
Thank you. Just what I was looking for.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now