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

[jsx] File.openDialog: How to allow multiple file formats for Windows

Engaged ,
Jun 25, 2020 Jun 25, 2020

I’ve tried some variants, corresponding (or slightly playing) with the API (https://www.indesignjs.de/extendscriptAPI/indesign-latest/#File.html#d1e6347__d1e6519😞

File.openDialog( "Please choose a file", "InDesign file:*.indd;DOC file:*.doc;DOCX file:*docx;DOCM file:*.docm", false )

File.openDialog( "Please choose a file", "InDesign or Word file:*.indd;*.doc;*docx;*.docm", false )

 

But I can’t select any DOC, DOCX, or DOCM files. I’d be thankful for a good clue ...

 

Thanks,

Tobias

TOPICS
Scripting
1.1K
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

correct answers 1 Correct answer

Engaged , Jun 25, 2020 Jun 25, 2020

Hi, tobias_wantzen: 

It's just a file extension.

var myFiles = File.openDialog("Please choose a file", "*.indd;*.docx", false);

Doesn't this work?

Translate
Engaged ,
Jun 25, 2020 Jun 25, 2020

Hi, tobias_wantzen: 

It's just a file extension.

var myFiles = File.openDialog("Please choose a file", "*.indd;*.docx", false);

Doesn't this work?

Yusuke S.
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
Engaged ,
Jun 25, 2020 Jun 25, 2020
LATEST

Thanks @yusuke_s, that works.

 

Tobias

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