Skip to main content
Inspiring
Nov 10, 2026 12:26 PM UTC
Answered

FM doesn't remember what folder I opened last

This is the situation:

I have hundreds of FM-books. All these books contains (among others) 2 files that I need to change. 

I opened and fixed the files in the first book. I kept the files open, as I need to copy images and layouts from these 2 files.

I then open book no 2 and the first of the files. I fix that and close the file. Then when I am about to open file 2 in folder 2, I realize I am back in folder 1. OK. I go to folder 2. Fix and close.

Then I want to open folder no 3, but I am back in folder no 1. WHY??

 

I have FM 2022, before that I had FM 7.2. I have done things like theese hundreds of times, and FM always remebers wich folder I opened a file in last.

 

Is there a way so I can continue work my way through the folders without having to remember where I was last? If I have to go back and forth like this it’s going to be a lot of changing folders all the time! This drives me crazy!!

    frameexpert
    frameexpertCorrect answer
    Community Expert
    Nov 12, 2026 3:00 PM UTC

    @Lena27020170w3wy The folder name needs to be startup. Rename the folder, restart FrameMaker and test it again. Thanks!

    www.frameexpert.com

    14 replies

    frameexpert
    Community Expert
    Community Expert
    Nov 10, 2026 8:27 PM UTC

    OK, try this script. Copy it into a plain text file and save it with a .jsx extension.

    Put it in your C:\Users\<UserName>\AppData\Roaming\Adobe\FrameMaker\<Version>\startup folder, where <UserName> is your Windows login name and <Version> is your FrameMaker version (17 for 2022; 18 for 2026). Note that if the startup folder doesn’t exist, create it.

    Quit and restart FrameMaker and see if it fixes the problem. I haven’t tested it, but it should work. Please let us know. Thanks.

    Notification (Constants.FA_Note_PostOpenDoc, true);
    Notification (Constants.FA_Note_PostOpenBook, true);

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

    var regex, file, folder;

    switch (note) {

    case Constants.FA_Note_PostOpenDoc :
    case Constants.FA_Note_PostOpenBook :

    regex = /^(?:Doc|Book)$/;

    if (regex.test (object.constructor.name) === true) {
    // Make a file object for the document or book.
    file = new File (object.Name);
    // Make a folder object for the document or book folder.
    folder = new Folder (file.path);
    // Set the default open folder to the document or book folder.
    app.OpenDir = folder.fsName;
    }

    break;
    }
    }

     

    Translate
    www.frameexpert.com
    frameexpert
    Community Expert
    Community Expert
    Nov 10, 2026 8:33 PM UTC

    This one is better because it includes book documents.

    Notification (Constants.FA_Note_PostOpenDoc, true);
    Notification (Constants.FA_Note_PostOpenBook, true);

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

    var regex, file, folder;

    switch (note) {

    case Constants.FA_Note_PostOpenDoc :
    case Constants.FA_Note_PostOpenBook :

    regex = /^(?:Doc|Book)$/;

    if (regex.test (object.constructor.name) === true) {
    // Make a file object for the document.
    file = new File (object.Name);
    // Make a folder object for the document's folder.
    folder = new Folder (file.path);
    // Set the default open folder to the document's folder.
    app.OpenDir = folder.fsName;
    }

    break;
    }
    }

     

    Translate
    www.frameexpert.com
    Jeff_Coatsworth
    Community Expert
    Community Expert
    Nov 10, 2026 12:54 PM UTC

    Wasn’t there an entry in the user’s maker.ini that kept track of that last folder? Could have swore there was something in there about folder locations...🤔

    Translate
    Inspiring
    Nov 10, 2026 12:56 PM UTC

    I haven’t looked in the ini-file. Usually I just open a book, do what I want and then open another. Then FM remembers where I was. It gets confused as I have 2 files from the first folder still open.

    Translate
    frameexpert
    Community Expert
    Community Expert
    Nov 10, 2026 12:32 PM UTC

    FrameMaker should default to the last folder of the last file you opened. Let me play around with it here and see what happens. I can probably drop a simple script that will fix it.

    Translate
    www.frameexpert.com
    Inspiring
    Nov 10, 2026 12:35 PM UTC

    Thank you. As you can imagine, a “little” thing like this drives me crazy… 😁

    Translate