• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

placing/opening an activedoc in a specific location

New Here ,
Apr 25, 2018 Apr 25, 2018

Copy link to clipboard

Copied

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

TOPICS
Scripting

Views

253

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 25, 2018 Apr 25, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines