Adobe 如何使用ExtendScript以编程方式清除InDesign中的文本选择?
我使用ExtendScript在InDesign中以编程方式选择了一些文本:Adobe 如何使用ExtendScript以编程方式清除InDesign中的文本选择?,adobe,textselection,extendscript,adobe-indesign,Adobe,Textselection,Extendscript,Adobe Indesign,我使用ExtendScript在InDesign中以编程方式选择了一些文本: app.findGrepPreferences = NothingEnum.nothing; app.findGrepPreferences.appliedFont = myFont; var matches = app.activeDocument.findGrep(); if(matches.length > 0) { matches[0].select(); } 我现在如何取消选择它?没有类似于app
app.findGrepPreferences = NothingEnum.nothing;
app.findGrepPreferences.appliedFont = myFont;
var matches = app.activeDocument.findGrep();
if(matches.length > 0) {
matches[0].select();
}
我现在如何取消选择它?没有类似于app.clearSelections()的函数代码>或类似的东西?试试:
app.activeDocument.select(NothingEnum.NOTHING);