Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

How access both InDesign and Photoshop in one script?

Return to Member Forum

  • Author
    Posts
    • #60997
      slchapin
      Member

      I need to walk through my image links and for each: determine the displayed image size in InDesign CS5, open the link in Photoshop CS5, then in Photoshop resize to the actual InDesign size @ 300 dpi, convert to CMYK, and save into a different folder, then in InDesign relink to the newly saved file.

      I'm not asking for the whole script (though it would be nice, my heart is quailing at the thought of learning Photoshop scripting! – can I call a Photoshop action from the InDesign script?), but how do I move back and forth between InDesign and Photoshop?

      Thanks for any help,

      – susan

    • #60998
      Anonymous
      Inactive

      There is no need to do this.

      On export to PDF go to compression and choose your downsample options.

      And in Output choose your destination profile.

      There is a script that will do what you're talking about. But most of the time, for me, it's pointless.

    • #60999
      slchapin
      Member

      Please, if “there is a script that will do [this]”, where can I find it?

      Thanks, susan

    • #61003

      I wrote a number of such scripts. A few of them you can find on my site. For example, Resize images for Power Switch and Resize images.

      – can I call a Photoshop action from the InDesign script?

      Yes, you can. Here's an example. It displays available in Photoshop sets and the actions for each set in the dialog box and calls the selected action in line #205:

      if (eval(myRunAction) == true) app.doAction(myAction, mySet);

      Hope this helps.
      Kasyan

    • #61004

      Arrrgh… Something went wrong with the last link.

      kasyan.ho.com.ua/downloads/automate_pdf_export_6.zip

    • #61006
      slchapin
      Member

      Thank you Kasyan.

      I expect I can figure it out from your export pdf script, but what I was hoping for was a snippet on how to communicate; then I can do all my stuff in Photoshop. I see you use bridgetalk and Power Switch, but say that Power Switch is harder to learn. I'll google for bridgetalk, but if anyone knows of a really good starting place for bridgetalk I'd appreciate your letting me know.

      I checked the javascript tools guide and I got more confused than I was before – a good reference but not a starting place!

      – susan

    • #61007

      Yeah, the bridgetalk chapter in JS tools guide is confusing. Moreover, it contains many typos so many examples doesn't work. I recommend you to download Bridge SDK:

      https://download.macromedia.com…..in_001.zip (Windows)

      https://download.macromedia.com…..ac_001.dmg (Mac)

      It contains several working examples of sending bridgetalk from Bridge to InDesign, Photoshop, etc (the same approach works for all applications). They are quite simple and well commented so this is a good starting point for you.

      Here is another (simple) example: https://kasyan.ho.com.ua/bridge…..bject.html

      You can find more examples with detailed explanations on adobe scripting forum.

      Here is another example: a simple resize images script: kasyan.ho.com.ua/downloads/simple_resize_script.zip

      Kasyan

    • #61008
      slchapin
      Member

      Thank you, thank you. I think I have enough now to start coding.

      – susan

Viewing 7 reply threads
  • You must be logged in to reply to this topic.
Forum Ads