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

FrameMaker and Photoshop ExtendScript Example

Community Expert ,
Oct 06, 2011 Oct 06, 2011

Hello All,

It seems that there was an example of using Photoshop in a FrameMaker ExtendScript script, but I don't remembe where I saw it. My intention is to get the path of an imported image in FrameMaker, use Photoshop to convert it to another format, and then replace the original image with the new format. Any pointers on using Photoshop from a FrameMaker script would be appreciated. Thank you very much.

Rick

TOPICS
Scripting
1.4K
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
Advocate ,
Oct 06, 2011 Oct 06, 2011

Rick,

I guess the script you are referring to was demo6.jsx from one of the demos. It basically created the script to run in Photoshop as a string and then sent this to the app. Below are the lines.

- Michael

function createScript(path){

  script = "preferences.rulerUnits = Units.PIXELS;\

                    open(File('"+path+"'));\

                    docRef_1 = app.activeDocument;\

                    docRef_1.activeLayer."+effect+"\

                    docRef_1.save()";

sendPhotoshop(script);

}

// Create a new BridgeTalk object, stuff the script, and send it to PS

function sendPhotoshop(script){

  var bt = new BridgeTalk();

  bt.target = "Photoshop";

  bt.body = script;

  bt.send();

}

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 Beginner ,
Oct 09, 2011 Oct 09, 2011
LATEST

Rick, did you test the ExtendScript coming with Finalyser? You can run it in a document or in a book.

In a document you can use it for one selected image, or for all image, to change a referenced image with another by changing the format (tiff to jpg, ...).

- Georg

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