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

Hybrid plugins

Guide ,
Oct 06, 2012 Oct 06, 2012

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.

TOPICS
SDK
1.3K
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

correct answers 1 Correct answer

Community Expert , Oct 07, 2012 Oct 07, 2012

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

Translate
Community Expert ,
Oct 07, 2012 Oct 07, 2012

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

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 ,
Oct 07, 2012 Oct 07, 2012

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

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
Guide ,
Oct 07, 2012 Oct 07, 2012
LATEST

Thank you. Just what I was looking for.

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