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

[Scripting] Preset folder in openDlg method

Enthusiast ,
Oct 22, 2020 Oct 22, 2020

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

Translate
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

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.

Translate
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

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

Works for me on Windows 10.

Translate
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

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

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

Translate
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

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?

Translate
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

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

It's working before the update to 2021 version.

Translate
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
LATEST

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

Translate
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