Skip to main content
Participating Frequently
October 26, 2020
Question

A kind of wrapper for FM-Scripts

  • October 26, 2020
  • 4 replies
  • 605 views

Hi @ all! 

First of all, I really appreciate the help one can get in this community. I may have only posted two issues so far but I received fast and reliable feedback - So thanks! 

 

Now my question of today:

I wrote a script to modify some things in a FrameMaker Document. My next goal would be to kind of "automate the automation". So I thought about if it is possible in any way to use Powershell or CMD to perform the following:

 

1. Open FrameMaker

2. Specify a source of FM-Files (a directory with e.g. 5 .fm files)

3. Iterate through the directory and open all the .fm files in FM

4. Run a jsx script for ALL of the files

5. save all files and close FM

 

I don't know if this would be maybe even possible with just an jsx script to call that from the command line and it performs all the tasks above...

 

Thanks in advance for your help!

Greetings

Yannick

 

This topic has been closed for replies.

4 replies

Klaus Göbel
Legend
November 3, 2020

So the best way would be for you:

1. Open FrameMaker manually

2. Specify a source of FM-Files (a directory with e.g. 5 .fm files) - *

3. Iterate through the directory and open all the .fm files in FM - *

4. Run a jsx script for ALL of the files - *

5. save all files - *

6.close FM manually

 

*you can do this with ExtendScript

Jeff_Coatsworth
Community Expert
Community Expert
October 28, 2020

@MeanGuy - I'm sure @Stefan Gentz will explain it better, but basically the idea is that your regular copy of FM has licensing that doesn't permit you to run it (legally) in the way you describe; for doing that, you need to go the route of using the Publishing Server.

frameexpert
Community Expert
Community Expert
October 26, 2020

The short answer is, Yes, all of this is possible with ExtendScript and FrameMaker. Stefan is referring mainly to the licensing issue and I will leave that discussion up to him.

Community Manager
October 26, 2020

Hi Yannick,

 

for this kind of automatization you would need a license of FrameMaker Publishing Server. Drop us a line at techcomm@adobe.com and we will be happy to walk you through the details and steps.

 

MeanGuyAuthor
Participating Frequently
October 28, 2020

Hi Stefan,

 

I am confused now. So what do I need that license for? If the tasks are doable within FM and/ or command line, why do I need a seperate license? I am sorry, I just don't get it right now, maybe you could enlighten me ^^