These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How to suppress warning popups?

TimBenjamin
Registered: Jan 14 2010
Posts: 6
Answered

Hi there,

I have to run some batch processes on a large number of files. The processes themselves are written in Javascript (by me) and they work fine. However, quite often Acrobat pops up a warning (i.e., a yellow triangle with an exclamation mark, not an error) and I have to manually dismiss it by clicking with the mouse.

This isn't ideal because I just want the process to run and don't want to have to sit there watching it for days on end.

I have tried try/catching every possible error in my javascript but that has no effect on the warning popup. I have also tried setting a preference to log errors to a file, but this doesn't seem to work either (in fact it doesn't even create a log file, which is curious).

Any suggestions? Having popups like this interrupting batch process makes the whole batch feature quite compromised!

Thanks in advance,
Tim.

P.S. I am using Acrobat Pro 9.1.3 on Windows.

My Product Information:
Acrobat Pro 9.1.3, Windows
try67
Online
Expert
Registered: Oct 30 2008
Posts: 2399
Be more specific. What do those messages say? When do they happen?

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

TimBenjamin
Registered: Jan 14 2010
Posts: 6
OK, sorry, basically - I am converting files to text, extracting the plain text from the files. My script takes each page in each file in turn (using extractPages) and then saves it (using Doc.saveAs) as an individual text file (so I end up with a large number of text files, which is what I want). Sometimes there are graphics on a page that the doc conversion function cannot handle, and it gives this warning:

"Some difficult pages were encountered requiring all graphics on those pages to be labeled as figures. [1]"

Of course, I don't really care if they had to be labelled as figures, that is no problem. In any case, the only option is to click the "OK" button so that the batch process can continue.

It would be FAR more useful to me if this warning could be logged in a file so that I can review all such warnings at the end of the process. This is what you can do in a Photoshop batch process, so is there a similar feature in Acrobat?

Or maybe, is it possible to "handle" dialog boxes using one of the Dialog or app methods, and to automatically dismiss them as they pop up?

Tim
try67
Online
Expert
Registered: Oct 30 2008
Posts: 2399
Is this message coming from your script, or is it an Acrobat message?
Which line in your code causes this message to apeear?

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

TimBenjamin
Registered: Jan 14 2010
Posts: 6
Hi again,

It is an acrobat message and it would be the Doc.saveAs call that causes it.

Anyway I have found a solution. It seems that using the cConvID "com.adobe.acrobat.plain-text" causes these difficulties, but "com.adobe.acrobat.accesstext" doesn't, so switching to that means no messages appear. There doesn't seem to be any difference in the final file.

Lesson learnt: don't attempt to save as plain-text if you intend to run a batch process without sitting there clicking OK every 10 minutes - save as accesstext instead!

I will leave this here in case it's of use to anyone!

Tim
elizas81
Registered: Jan 15 2010
Posts: 4
Hi,

Though I am not a technical person but found your post to be very informative.

I would like to share a link where a Software Engineer of my company (Mindfire Solutions) has done a very good analysis on Adobe Plugin development Applications.

Here is the link:
http://www.mindfiresolutions.com/plug-in-development.htm



Hope you find it useful.

Cheers,
Eliza

Mindfire: India's Only Company to be both Apple Premier & Microsoft Gold certified.