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

[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

482

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 ,
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.

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
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.

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
Community Expert ,
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.

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
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.

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
Community Expert ,
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?

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
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.

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

Copy link to clipboard

Copied

LATEST

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

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