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

load a word preset options into indesign

Contributor ,
May 29, 2018 May 29, 2018

Copy link to clipboard

Copied

Hi,

how to load a word preset options (which was shown while placing word document into indesign) into indesign using javacript?

pls helpa

TOPICS
Scripting

Views

925

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 ,
May 30, 2018 May 30, 2018

Copy link to clipboard

Copied

Hi,

what did you try so far? Did you search the Scripting Forum?

Here some answers you'd perhaps not like:

Re: how to include preset in RTF import option while importing RTF files?

Re: [AS][CS3] word rtf import preferences

Perhaps a way out ? :

Re: JS-CS4: Word/RTF import presets

Regards,
Uwe

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
Contributor ,
May 30, 2018 May 30, 2018

Copy link to clipboard

Copied

Hi,

Thanks for your reply.. i want to load a WordRTFPreferences as a file into indesign using script.

like app.importFile(ExportPresetFormat,file)

for example the user give  wordpreferences as a xml file.. i want to load a xml file into indesign

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 ,
May 30, 2018 May 30, 2018

Copy link to clipboard

Copied

Since this is not possible using scripting my best bet is: Inspect the xml file, extract all possible and relevant properties and values and work directly with WordRTFPreferences.

Regards,
Uwe

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
Contributor ,
May 30, 2018 May 30, 2018

Copy link to clipboard

Copied

ok, is it possible to get applied word import options

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 ,
May 31, 2018 May 31, 2018

Copy link to clipboard

Copied

What you cannot define with WordRTFPreferences is style matching. What paragraph style or character style in the Word doc should match what style in the InDesign document. And you also cannot tell directly what smp file is currently loaded as preset. You perhaps could deduce that if you look at the property/value pairs of app.wordRTFPreferences and compare all that with all available smp files.

See also:

Map Paragraph and Character Styles

Regards,
Uwe

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
Contributor ,
Jun 26, 2018 Jun 26, 2018

Copy link to clipboard

Copied

LATEST

Hi Uwe, did you found any solution for mapping styles

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