Script to run find/change query by name
Hi all,
Does anyone know how to run a single "Find/Change query by name" with JS that I can add into my script without downloading one of the find/change scripts and using them separately?
Thanks, Bren
Hi all,
Does anyone know how to run a single "Find/Change query by name" with JS that I can add into my script without downloading one of the find/change scripts and using them separately?
Thanks, Bren
app.loadFindChangeQuery (name, mode) loads the Find/Change dialog with the data from one of your previously saved queries (see https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Application.html#d1e42173__d1e47301 for full details).
So this
app.loadFindChangeQuery ("italic spaces", SearchModes.GREP_SEARCH);
app.activeDocument.changeGrep();
is enough to load my own "italic spaces" preset and run it on the current document.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.