Skip to main content
RickRett
Participant
April 25, 2018
Question

placing/opening an activedoc in a specific location

  • April 25, 2018
  • 1 reply
  • 302 views

With Structured FrameMaker, doc files rarely open where I want them to. I was hoping the screenX and screenY properties would do that, but they seem to just modify the frame in the activedoc. I'm tired of dragging files constantly, or un-burying them from beneath the toolbars.

In my case I have a really wide screen, so I have a main doc location on the left, my open tool bars in the middle, and then when I need it, I have a second document open on the right. If I can figure it out, I'd like to add some shortcut keys to force the windows to open in one or the other of those places.

Any hints?

Thanks for any help you can give me!

Rick

This topic has been closed for replies.

1 reply

frameexpert
Community Expert
Community Expert
April 25, 2018

You might be able to use a FA_Note_PostOpenDoc event and automatically change a document's position after it opens. You set it up something like this:

Notification (Constants.FA_Note_PostOpenDoc, true);

function Notify (note, object, sparam, iparam) {

    var doc;

   

    // Handle the event triggered after a document is opened.

    switch (note) {

       

        case Constants.FA_Note_PostOpenDoc:

            doc = object;

            // Do something with the document here.

            break;

    }

}

-Rick