Skip navigation
Currently Being Moderated

pass arguments & call other applications from InDesign using ESTK

Nov 3, 2011 7:03 AM

Hi Everyone,

 

Currently i am working with the automation for InDesign and Art. Using ESTK in my InDesign Script, i need to call the Illustrator and Photoshop applications by passing some arguments form InDesign to those applications simultaniously.

Simply, i need to work on these three applications at the same time.

 

Can anyone advice in this regard.

 

 

Thanks in advance

Thiyagu

 
Replies
  • Currently Being Moderated
    Nov 3, 2011 7:56 AM   in reply to dhishok

    I believe you would like to have a look at BridgeTalk. Here is a thread about where to find sources and samples:

    http://forums.adobe.com/message/3309546

     

    // Andreas

     
    |
    Mark as:
  • John Hawkinson
    5,512 posts
    Jun 25, 2009
    Currently Being Moderated
    Nov 4, 2011 3:38 AM   in reply to dhishok

    In a script, targetting the different applications is not work out i think so. Hence i tried with Bridge Talk() but facing difficulties on execution from ESTK.

    Please be specific -- what difficulties exactly?


    Error messages or screenshots go a long way to helping to make your question clear.

    What happens?

     
    |
    Mark as:
  • John Hawkinson
    5,512 posts
    Jun 25, 2009
    Currently Being Moderated
    Nov 5, 2011 12:48 PM   in reply to dhishok

    I tried to create new bridge talk and to merge my script within. When i run the script it doesn't show any error or warnings so.

    Your posted script doesn't show any mention of BridgeTalk.

    If your script is running in InDesign, it needs to send a BridgeTalk message to Illustrator, and then a seperate BridgeTalk message to Photoshop. That can be tricky, and you do not show us you are doing any of that!

     

    Post the script as you have changed it, otherwise we are just guessing.

    Is there any specific application need to be selected in the ESTK dropdown during script execution?

    Hence i am not clear with the bridge talk method i think so.

    Well, it depends on how you set up the script, but yes.It sounds like you want the script to begin in InDesign so you had better execute the script in InDesign. Though this is the same as your #target InDesign as the top of the script.

     

     

    I hope this will make sense.

     

    Actually, it is not really making sense at all, sorry.

     
    |
    Mark as:
  • John Hawkinson
    5,512 posts
    Jun 25, 2009
    Currently Being Moderated
    Nov 15, 2011 7:13 AM   in reply to dhishok

    Using bridge talk i can able to call the other applications (Illustrator & Photoshop) and to give simple alerts. But i am unable to pass the arguments (array, string) to those applications via BT.

    In the below code the variable 'myFile' contains the file path as string, i have tried to alert this file path in photoshop but it doesn't show anything.

    BridgeTalk does not pass variables! The only thing that is passed is the bt.body string. You must pass any variables yourself. Instead of:

    var myFile = myLink.filePath;
    bt.body = "alert (myFile);"
    

    you should use something like:

     

    bt.body = "alert (" + myFile.toSource() + ");";
    

     

    or perhaps

     

    bt.body = "var myFile = "+myLink.filePath.toSource()+"; alert(myFile);"
    

     

    Etc.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points