Copy link to clipboard
Copied
var doc = app.activeDocument;
app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.NOTHING;
app.findGrepPreferences.properties = {findWhat: "((?i)PAIR WORK)", appliedParagraphStyle: doc.paragraphStyleGroups.item("ATIVIDADES").paragraphStyles.item("linha_questão")};
var foundEscrita = app.activeDocument.findGrep();
for (var i = 0; i < foundEscrita.length; i++) {
foundEscrita.paragraphs.everyItem().characters.firstItem().place(File("~/Desktop/TESTE_VINHETAS/PAIRWORK.ai"));
}
Hello friends, I work on a script to replace keywords with files.
I succeeded in the script, it worked perfectly.
But I need the help of friends for a mission that I can not solve, I need the script to do what it has been doing, but instead of searching the file on some network path, it searches the CC Library.
Thanks with the help of friends.
Copy link to clipboard
Copied
I might be wrong but I think CC Libraries are not reachable per script.
Copy link to clipboard
Copied
I got it, not the library, but I turned every library file into .idms files And I asked the script to import into indesign, with the .idms extension you get to bring editable text boxes to the indesign.