Skip to main content
dublove
Legend
Nov 23, 2026 5:58 PM UTC
Question

How to set the default path for opening files with ID?

The 'Open' option under the file menu always defaults to the previous operation path.
I want to point this default path to 'D:/aa/'.
Is there a way to set "D:/aa/" as the default path?
If it doesn't work, I'll try putting an empty a.indd file in "D:/aa/" and quickly opening it, then quickly a.indd. This should be feasible.

    5 replies

    CORCTON34033231
    Community Expert
    Community Expert
    Nov 23, 2026 9:01 PM UTC

    Hi @dublove — you weren't distracted; that's exactly the distinction. The script opens the file directly, so it never touches the Open dialog, and the dialog only remembers a folder when you open a file through the dialog itself. So the a.indd trick only works if you open a.indd from D:/aa/ using File > Open (navigate to the folder in the dialog, not via the script). Do that once, and the next File > Open will start in D:/aa/ until you open a file from somewhere else. The script is just a shortcut for opening that one file without the dialog — it can't set the dialog's folder.

    Translate
    rob day
    Community Expert
    Community Expert
    Nov 23, 2026 8:52 PM UTC

    Hi ​@dublove , There are utilities that let you control default folders—on MacOSX I use Default Folder X. For Windows maybe try searching for default folder app for windows

     

     

    Translate
    dublove
    dubloveAuthor
    Legend
    Nov 24, 2026 4:03 AM UTC

    ​@rob day day

    I gave up the default path because extendscript does not have permission.
    But why is this required to be played twice?

    var loadAction = app.menuActions.itemByName("$ID/Load Paragraph Styles...");
    if (loadAction && loadAction.enabled) {
    loadAction.invoke();
    }

     

    Translate
    dublove
    dubloveAuthor
    Legend
    Nov 23, 2026 6:18 PM UTC

    I just tried it, and I can quickly open and close it to imitate the implementation.

    ​@CORCTON34033231 

    It seems that opening the door in this way is useless.
    Did I get distracted again?
    if (testFile) {
    app.open(testFile);
    }

    Translate
    CORCTON34033231
    Community Expert
    Community Expert
    Nov 23, 2026 6:07 PM UTC

    Hi dublove,

     

    Short answer: InDesign has no preference to set a default folder for File > Open. The Open dialog always starts in the last-used folder — that's why it keeps going back to your previous operation path. The same has been confirmed for the equivalent PDF export question in this community: there is no global default folder setting; InDesign just remembers the last location used (https://community.adobe.com/questions-671/modify-pdf-export-location-878193).

     

    Two workable options for your D:/aa/ workflow:

     

    1. Your a.indd idea actually works — as a side effect, not as a setting

    Open a file from D:/aa/ once (your empty a.indd, for example), and the next File > Open will default to D:/aa/ — until you open a file from somewhere else, at which point it follows that folder instead. So it's a one-click habit, not something you can lock in.

     

    2. Open the file by script, skipping the dialog entirely

    Yes, a script can open a file in that path directly. A one-line ExtendScript (save as a .jsx and run it from Window > Utilities > Scripts) does it:

    app.open(File("D:/aa/a.indd"));

    That opens the file without the Open dialog. A script can't, however, change what folder the File > Open dialog itself starts in — that part is always the last-used folder.

     

    A practical extra on Windows: in the Open dialog, right-click D:/aa/ and pin it to Quick Access, so the folder is always one click away even after the remembered folder has moved on.

     

    So in short: no setting to point the dialog at D:/aa/, but opening a.indd from there (or the one-line script above) gets you to that folder with one click.

    Translate