Skip to main content
Inspiring
June 25, 2020
Answered

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

  • June 25, 2020
  • 1 reply
  • 1040 views

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

This topic has been closed for replies.
Correct answer yusuke.s

Hi, tobias_wantzen: 

It's just a file extension.

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

Doesn't this work?

1 reply

yusuke.s
yusuke.sCorrect answer
Inspiring
June 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.
Inspiring
June 25, 2020

Thanks @yusuke_s, that works.

 

Tobias