Skip to main content
Participating Frequently
May 1, 2014
Question

copy paste text frame

  • May 1, 2014
  • 1 reply
  • 3088 views

Hi to all.

I am trying to make a very simple script that finds the first text frame that exists in a flow (in this case a secondary flow with only a line of text) ,copy that in the exact same location to all pages of the active document. Is this possible with javascript?

This topic has been closed for replies.

1 reply

frameexpert
Community Expert
Community Expert
May 1, 2014

Hi Dimitris, Yes this is definitely possible with ExtendScript. You may want to post a link to a sample file so we can see exactly what you are trying to do. You are welcome to send me something offlist to look at. - Rick rick at frameexpert dot com

www.frameexpert.com
Participating Frequently
May 1, 2014

Hi Rick,

thanks a lot for your reply.I am trying to make a template for aviation manuals.There is a requirement to have page revision status, that means that I have to enter a date to every page and list this (List of effective pages) in the front pages of the manual.I did this with a paragraph format in a second text flow and a list of paragraphs generated file.The problem is that I have to manual enter in every page the text frame that includes the paragraph format.

I thought that a script can help.If you have any other recommendations or solutions or alternative ways to perform this task I would be very happy to hear them.I am not familiar with javascript but I have done loads of scripts in Filemaker.Any help will be appreciated.

Idealy a way to enter this into a 2-page layout (left/right).but if it is a hassle I can convert all layouts to single page.

4everJang
Legend
May 5, 2014

Dimitris,

Do all pages of the same manual get the same revision number and date, or is this a per-page revision ?

If all pages get the same number and date, you can use FrameMaker variables and do not need a script at all. Just enter the frame on the master pages as non-user-editable text and enter a user variable into it. Changing the user variable gives you the required result.

If each page requires its own revision number and date, scripting will not help you. How are you going to get the revision number and date per page? But even if sections require their own revision number and date, you can divide the entire document into chapters in a book (continued page numbering) and do the same with the FrameMaker variables.

So I do not see a need for any scripting. If you do need this done via scripting, I think you should ask someone like Rick or myself to do it for you for a reasonable fee. What you think is easy is in fact not so straightforward.

Kind regards

Jang