Highlighted

Script to detect gray boxes for missing graphics

Community Beginner ,
Jun 28, 2019

Copy link to clipboard

Copied

Hello Community,

I cannot find an Inset property that will let me know if a graphic is not being displayed because FM could not find the source. I have the oGraphic.InsetFile property but don't see how to determine if the image is being displayed or not.

screenshot_09909.png

My task is to create a list of all missing graphics in the document so the user can manually then try to go and reconnect the missing graphic(s) to the AFrame.

Thanks in advance!

Adobe Community Professional
Correct answer by frameexpert | Adobe Community Professional

You can do something like this:

var file;

file = new File (oGraphic.InsetFile);

if (file.exists === false) {

    // Missing graphic.

}

TOPICS
Scripting

Views

100

Likes

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

Script to detect gray boxes for missing graphics

Community Beginner ,
Jun 28, 2019

Copy link to clipboard

Copied

Hello Community,

I cannot find an Inset property that will let me know if a graphic is not being displayed because FM could not find the source. I have the oGraphic.InsetFile property but don't see how to determine if the image is being displayed or not.

screenshot_09909.png

My task is to create a list of all missing graphics in the document so the user can manually then try to go and reconnect the missing graphic(s) to the AFrame.

Thanks in advance!

Adobe Community Professional
Correct answer by frameexpert | Adobe Community Professional

You can do something like this:

var file;

file = new File (oGraphic.InsetFile);

if (file.exists === false) {

    // Missing graphic.

}

TOPICS
Scripting

Views

101

Likes

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
Jun 28, 2019 0
Adobe Community Professional ,
Jun 28, 2019

Copy link to clipboard

Copied

You can do something like this:

var file;

file = new File (oGraphic.InsetFile);

if (file.exists === false) {

    // Missing graphic.

}

Likes

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
Reply
Loading...
Jun 28, 2019 0
fonrig LATEST
Community Beginner ,
Jun 28, 2019

Copy link to clipboard

Copied

Thanks Rick. Didn't think about using the File object. You are the best!

Likes

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
Reply
Loading...
Jun 28, 2019 0