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

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

Engaged ,
Jun 25, 2020 Jun 25, 2020

Copy link to clipboard

Copied

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

Views

690

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

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?

Votes

Translate

Translate
Engaged ,
Jun 25, 2020 Jun 25, 2020

Copy link to clipboard

Copied

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.

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
Engaged ,
Jun 25, 2020 Jun 25, 2020

Copy link to clipboard

Copied

LATEST

Thanks @yusuke_s, that works.

 

Tobias

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