Skip to main content
mgilster
Participant
January 25, 2017
Question

Open a FM 10 document to a specific paragraph ID

  • January 25, 2017
  • 1 reply
  • 646 views

I would like to be able to open a FM 10 document at a particular paragraph, so the paragraph is scrolled to. I want to pass the paragraph ID for a heading and have the heading at the top (or at least within the visible portion) of the document window. Is this possible?

This topic has been closed for replies.

1 reply

frameexpert
Community Expert
Community Expert
January 25, 2017

Yes, this is possible. How do you want to invoke the script and where will you get the paragraph id?

www.frameexpert.com
mgilster
mgilsterAuthor
Participant
January 25, 2017

I am creating an oXygen plugin that can open the FM source file for a DITA file converted from FM. The conversion utility uses the paragraph ID of the heading in the file naming scheme. The plugin is written in Java. I'm not sure what the best way to invoke the script would be.

frameexpert
Community Expert
Community Expert
January 26, 2017

A script can be invoked automatically on FrameMaker startup. As far as I know, the script has to be in one of the startup folders:

C:\Users\<UserName>\AppData\Roaming\Adobe\FrameMaker\<VersionNumber>\startup

or

C:\Program Files (x86)\Adobe\Adobe FrameMaker 2015\startup

If the correct script was in one of these locations, you could have your program launch FrameMaker from a command line and then the script would navigate to the document in the document. You would probably want your process to move the script out of the startup folder after it runs, unless you want it to run every time FrameMaker starts.

I may not be totally understanding what you want to do. If you want to discuss if via phone or email, please contact me at rick at frameexpert dot com. I will be glad to take a look at what you are doing.

www.frameexpert.com