Copy link to clipboard
Copied
I'm making a script for automation data merge.
I'm using the code like this - myDoc.dataMergeProperties.selectDataSource(myDataSource) - and it works good.
But I need to set Data Source Import Options (see screenshot of a dialog window) programmatically, with Script.
Is it possible to do this and how?
Copy link to clipboard
Copied
Moved to InDesign Scripting....
Copy link to clipboard
Copied
I would like to know the answer to this question. What page did you move to?
Copy link to clipboard
Copied
I was mistaken. It was a tag change, not a page move.
Either way I want this resolved. When I load a particular CSV file, it reads in ASCII encoding when it is actually Shift-JIS.
Copy link to clipboard
Copied
See the textImportPreferences property on application object. It might work, I have not tested it though
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#TextImportPreference.html
-Manan
Copy link to clipboard
Copied
Thanks a lot!! But, It seems not to be worked.
(textImportPreferences and DataMerge seem to be different functions..)
Since there is no critical impact, I will give this up and try to load the CSV manually.
The system for CSV is old and I will update the system in the future to export CSV in Unicode. Then the problem seems unlikely to occur.