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

FrameMaker and Photoshop ExtendScript Example

Community Expert ,
Oct 06, 2011 Oct 06, 2011

Copy link to clipboard

Copied

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

Views

1.3K

Translate

Translate

Report

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

Copy link to clipboard

Copied

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();

}

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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