I am trying to perform doScript using AutoHotkey and ComObject. In this case, arguments such as ScriptLanguage and UndoModes need to be specified.
Currently I directly write values such as 1246973031 (as ScriptLanguage.JAVASCRIPT). How do I write to get it from InDesign DOM?
Current code:
app := ComObject("InDesign.Application.2024")
app.doScript("alert(0)", 1246973031, , 1699963733)
Ideal code:
app := ComObject("InDesign.Application.2024")
app.doScript("alert(0)", ScriptLanguage.JAVASCRIPT, , UndoModes.ENTIRE_SCRIPT)
Environment:
Windows 11
AutoHotkey 2.0
InDesign 2024 (19.2)
... View more