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

Change the graphic style to all frames with missing links

Community Beginner ,
Jul 30, 2018 Jul 30, 2018

Copy link to clipboard

Copied

Following the script of this answer,  https://forums.adobe.com/thread/1470744 , it is possible instead of deleting all frames with missing links to leave them at the document but change the graphic style?

TOPICS
Scripting

Views

421

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 ,
Jul 31, 2018 Jul 31, 2018

Copy link to clipboard

Copied

LATEST

var link, image, frame, 

doc = app.activeDocument, 

links = doc.links, 

counter = 0; 

 

for (var i = links.length-1; i >= 0; i--) { 

    if (links.status == LinkStatus.LINK_MISSING) { 

        try { 

            link = links

            image = link.parent; 

            frame = image.parent; 

            frame.appliedObjectStyle = "myObjectStyleName"; //or better to use direct reference = doc.objectStyles.itemByName ("myObjectStyleName");

            counter++; 

        } 

        catch (err) { 

            $.writeln(i + " - " + err); 

        } 

    } 

}

Here you are…

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