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

Weird Folder Level Script Issue

stonesrock
Registered: Feb 27 2007
Posts: 54

I've been going through the Folder Level Scripting Tutorial on this site. The test to add the reference to the AcroJS.pdf runs the script, but only when I turn on the JavaScript Console.

The script is:

app.addMenuItem({cName:"JS Ref", cParent:"Help",

cExec:"app.openDoc('/C/AcrobatDocs/AcroJS.pdf');"
});

I have a script file Config.js in my User path and restart Acrobat, but the Reference to the AcroJS.pdf is not on the Help Menu, but once I fire up Console (ctrl-J), the reference is there??

Has anyone seen this before and if so, any tips?

Thanks in advance.

gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
Are you getting any error messages in the JavaScript console?

What is the error message?

Exactly in what folder have you placed this scirpt?

George Kaiser

stonesrock
Registered: Feb 27 2007
Posts: 54
No error messages in console, again, the menu item gets added once I fire up console. If I don't activate console, the menu item isn't there.

The JS is located in C:\Documents and Settings\MyUserName\Application Data\Adobe\Acrobat\8.0\JavaScripts
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
After you placed a folder level script into the javascripts directory you have to restart Acrobat/Reader.

But, closing the application itself someimes maybe not enough.
In some cases you will have to kill the relating processes (Acrotray.exe, AdRdr32.exe and/or Acrobat.exe) manually with the task manager.
That's because they can be still running a few minutes after you closed the application window.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

stonesrock
Registered: Feb 27 2007
Posts: 54
radzmar,

I'll look at that. I've been restarting the program and checking each time, but it has occured. This isn't critical to what I'm working on, just giving myself lessons on using the folder level functions. I know I have some crossover issues at times with Adobe Acrobat Pro and Acrobat Reader (if I try to open up one of my Livecycle created PDF forms with Reader, it will fire up Acrobat Pro still, sometimes not).

In fact, your breakdown on a posting of using the folder scripting actions has been working great, so thanks for that.