Quit InDesign and open Illustrator


how quit indesign , open illustrator using indesign javascripting?

 

here code:

 

//quit indesign

 

mydocument.close ( saveoptions.no );

 

 

//open in illustrator

 

#target illustrator

app.documents.add(documentcolorspace.cmyk, width = 1024, height = 768);

 

 

but in code script perform illustrator operations... wont quit indesign file...

 

can 1 me...

hi,

 

you've got use bridgetalk.

 

 

 

#target indesign

 

main();

 

function main() {

 

          if ( app.documents.length == 0 ) { return; }

          app.activedocument.close(saveoptions.no )

    

                    callfunction = doillustuff;

                    callfunction += '\rdoillustuff(500 , 500);';

                    btmessaging( 'illustrator', callfunction );

         }

 

function btmessaging( target, callfunction ) {

 

          var bt = new bridgetalk();

          bt.target = target;

          bt.body = callfunction;

          bt.send();

 

}

 

function doillustuff(w,h) {

 

         app.documents.add(documentcolorspace.cmyk, width = w, height = h);

 

}

 

 

documentation within javascripttoolsguide.



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support