Hello everyone:
In an attempt to take some baby steps into using Javascript in Acrobat, I wrote the following folder-level script:
main();
function main()
{
debugger;
var PDFDoc = app.openDoc("/c/Documents and Settings/johnd/Desktop/Drivel.pdf");
// and so on...
I placed the Javascript file in the Javascripts folder under the Acrobat folder. I then called up the Javascript debugger and began running it through its paces. On the openDoc call I get the following error message in the console:
RaiseError: Acrobat cannot open this file because a task is still active in Acrobat. Please return to Acrobat and end the task before opening this file.
App.openDoc:9:Console undefined:Exec
===> Acrobat cannot open this file because a task is still active in Acrobat. Please return to Acrobat and end the task before opening this file.
I am about at my wits end trying to figure out what task is running and why the script cannot open the document. I am not running any other scripts and AFAIK Acrobat has completed all other processing. So what do I need to do to fix this broken script?
TIA!
John