• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Replace keywords with CC Library files

Participant ,
May 15, 2018 May 15, 2018

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.

TOPICS
Scripting

Views

319

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
May 16, 2018 May 16, 2018

Copy link to clipboard

Copied

I might be wrong but I think CC Libraries are not reachable per script.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 16, 2018 May 16, 2018

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines