How can I detect non-hidden pdfs?

Explorer ,
Jun 16, 2017

Copy link to clipboard

Copied

Hi,

I want to only apply event to non-hidden files.  I tried the following but it did not bring up the app alert when I had a non-hidden pdf file in the sequence.  What am I doing wrong?  I know it must have something to do with the bolded text.

if (this.hidden = false)

{

if (3 == app.alert("Before proceeding, confirm scanned documents were backed up.  If not, click No to close the program and backup the scanned documents before executing the program.",1,2))

{

event.rc = false;

}

}

Adobe Community Professional
Correct answer by Joel_Geraci | Adobe Community Professional

A typo in the first line. It should be...

if (this.hidden == false)

TOPICS
Acrobat SDK and JavaScript, Windows

Views

94

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

How can I detect non-hidden pdfs?

Explorer ,
Jun 16, 2017

Copy link to clipboard

Copied

Hi,

I want to only apply event to non-hidden files.  I tried the following but it did not bring up the app alert when I had a non-hidden pdf file in the sequence.  What am I doing wrong?  I know it must have something to do with the bolded text.

if (this.hidden = false)

{

if (3 == app.alert("Before proceeding, confirm scanned documents were backed up.  If not, click No to close the program and backup the scanned documents before executing the program.",1,2))

{

event.rc = false;

}

}

Adobe Community Professional
Correct answer by Joel_Geraci | Adobe Community Professional

A typo in the first line. It should be...

if (this.hidden == false)

TOPICS
Acrobat SDK and JavaScript, Windows

Views

95

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 16, 2017 0
Adobe Community Professional ,
Jun 16, 2017

Copy link to clipboard

Copied

A typo in the first line. It should be...

if (this.hidden == false)

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 16, 2017 0
Explorer ,
Jun 17, 2017

Copy link to clipboard

Copied

OMG, yes, that was the problem.  I somehow missed this.  Thanks.

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 17, 2017 0