1 person found this helpful
It's a property of the application: Application.wordRTFImportPreferences.
It should have been in there somewhere, but I can't find any reference to style mapping or presets -- so apparently, these cannot be scripted.
Does anyone happen to know if this has changed in the last (nearly) decade? I'm hoping to import styles from several Word docs with literally hundreds of junk styles, and want to map all character styles to [none] and para styles to a single style.
My script Place Microsoft Word_Style.scpt includes the following handler for setting RTF import preferences. Written originally for InDesign 5 and 5.5, it still works today:
(*Sets preferences for importing Microsoft Word RTF format*)
tell application "Adobe InDesign CC 2018"
tell word RTF import preferences
set convert bullets and numbers to text to false
set convert page breaks to none --can be page break or column break
set remove formatting to false
set import endnotes to true
set import footnotes to true
set import index to true
set import TOC to true
set import unused styles to false
set preserve graphics to true
set resolve character style clash to resolve clash use existing
set resolve paragraph style clash to resolve clash use existing
set use typographers quotes to true
--note: the following are valid if remove formatting is set to true
--set convert tables to Unformatted Table --can be Unformatted Tabbed text
--set preserve local overrides to true
Since you want to set all paragraph styles to a single style and character styles to none, you might want to just set remove formatting to true and preserve local overrides to false.
Shirley W. Hopkins