Highlighted

placing/opening an activedoc in a specific location

New Here ,
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

126

Likes

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

placing/opening an activedoc in a specific location

New Here ,
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

127

Likes

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
Apr 25, 2018 0
Adobe Community Professional ,
Apr 25, 2018

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Apr 25, 2018 0