[Scripting] Preset folder in openDlg method

Enthusiast ,
Oct 22, 2020 Oct 22, 2020

Copy link to clipboard

Copied

Adobe is working hard on desconstruct InDesign, update after update.

Awesome features to text-wrap, to find colors... But when new features broke existing ones, something bad is happening.

 

Why ID2021 stopped working the very simple preset folder when File().openDlg() is used?

 

When a new update comes, I read more people kiding about the new bugs than about the new features.

TOPICS
Scripting

Views

188

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
community guidelines
Adobe Community Professional ,
Oct 22, 2020 Oct 22, 2020

Copy link to clipboard

Copied

File().openDlg()

and

f = Folder ('/d/').openDlg ('Select some files', 'InDesign:*.indd', true);

work fine for me in 2021. What's the problem? What does 'Stopped working' mean? Error message? Nothing happened?

 

P.

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
community guidelines
Enthusiast ,
Oct 22, 2020 Oct 22, 2020

Copy link to clipboard

Copied

This is exactly what I have here and it's not working...

It goes to the last used folder instead of the new one.

Tried File("/d/").openDlg("Select the file" , "*.docx" , false) too. Same result.

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
community guidelines
Adobe Community Professional ,
Oct 22, 2020 Oct 22, 2020

Copy link to clipboard

Copied

Instead of File("/d/").openDlg try Folder("/d/").openDlg

Works for me on Windows 10.

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
community guidelines
Enthusiast ,
Oct 22, 2020 Oct 22, 2020

Copy link to clipboard

Copied

I did it. Tried both File() and Folder(). Same result.

The dialog opens in the last used folder instead of the preset one.

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
community guidelines
Adobe Community Professional ,
Oct 22, 2020 Oct 22, 2020

Copy link to clipboard

Copied

This works for me on Mac Catalina, ID 21:

 

var desk = Folder.desktop;
desk.openDlg('Select some files', '*.indd', true);

 

If I navigate to a different folder and select an INDD file, then rerun the script, it takes me back to Desktop. Is "/d/" (or whatever the folder/file is) a valid path?

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
community guidelines
Enthusiast ,
Oct 22, 2020 Oct 22, 2020

Copy link to clipboard

Copied

Yes. "/d/" is a valid path here in my computer.

It's working before the update to 2021 version.

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
community guidelines
Enthusiast ,
Oct 22, 2020 Oct 22, 2020

Copy link to clipboard

Copied

LATEST

Cleaned all prefs (from ESTK and InDesign) and it is back.

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
community guidelines