Quantcast
Channel: Adobe Community : Popular Discussions - Adobe FrameMaker
Viewing all articles
Browse latest Browse all 23442

Using ExtendScript to automate a task

$
0
0

Hello,

 

First off, I like to say that I do not have any experience with ExtendScript and looking for some code to get me started. Any help is most welcome.

 

Here's my current FM book's layout.

 

For each page, I have 3 main elements in this order from top to bottom.

     - An imported GRAPHICS inside an anchored frame.

     - Below the anchored frame is the figure CAPTION (e.g. Figure 3. Title of the graphics here).

     - Following the caption is some NOTES (description of the graphics)

 

Goal: Insert/Paste the CAPTION of the next page onto the bottom of the current page after the NOTES section.

 

Why: I'm converting from FM to RoboHelp. RH Requires a topic title for each page. Our current template does not have any heading text so I need to copy and paste the figure CAPTION to use as the heading text.

 

How: At the end of each NOTES section of the current page, I like to copy/paste the CAPTION of the next page, with a specific paragraph tag (e.g. h2x or something similar).

 

The layout after this process will be:

     - GRAPHICS

     - CAPTION (of current page)

     - NOTES

     - CAPTION (of next page)

 

Result: At the end of each notes section, I will have the CAPTION of the next page that I can use to tell RH to create that as a separate topic.

 

Let me know if I need to provide any more details, but the main idea is that I need to have some script to automate this process as it is very tedious to copy/paste for each page everytime I need to convert a FM book.

 

Thanks, and appreciate any help I can get.

- Henry


Viewing all articles
Browse latest Browse all 23442

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>