Where is the javascript folder located?

I am on a brand new mac machine running OS X version 10.8.2 and just installed Acrobat XI yesterday. I am trying to locate where the Javascript folder is located so I can put some Javascripts in it. Will someone please help me out.

Steven Dayton

7 Answers

Voted Best Answer

If you have a MacBook, you may run into problems with executing JavaScript in the console. Fortunately, Acrobat XI fixed this, but you still need to know the secret handshake - or key combination.
Type your line of code, and leave the cursor at the end of the line and hit Fn-Ctrl-RETURN (hold down Fn and Ctrl, then hit the return key). To execute a script that you highlighted or selected use Ctrl-Opt-Cmd-RETURN.

To make things easy, here are the two paths that you would use with Acrobat XI on a Mac:

/Users/USER/Library/Application\ Support/Adobe/Acrobat/11.0/JavaScripts (with USER being your user name)
/Applications/Adobe Acrobat XI Pro/Adobe Acrobat Pro.app/Contents/Resources/JavaScripts/

Karl Heinz Kremer

PDF Acrobatics Without a Net

PDF Software Development, Training and More...


By Karl Heinz Kremer   

Open the JavaScript console and run the following script:

app.getPath("user", "javascript");

George Kaiser   

On Mac, the application JavaScript folder is in the configuration file inside the Acrobat Application Package.
Execute each line of the following code in the Acrobat JavaScript Console (Ctrl+J on Windows, Command+J on Mac) to find the location of the JavaScript folders on your system



harsh kurra   

Thanks for the help. Everything in place now. Well not everything but some things.

Steven Dayton   

Just for the records:

If there is no entry in the User JavaScript folder, getPath() does not return anything. Apparently, this behavior is a feature and not a bug…

Max Wyss.

Max Wyss   

And another one for the Records: If you are annoyed by Apple's removing the <Enter> key in favor of the right hand sode <Option> key, you might have a look at KeyRemap4MacBook.app, which allows you to map and remap any key on your keyboard.

Max Wyss.

Max Wyss   

Thank you Max for the tip. Tip are very welcome.

Steven Dayton   

Please specify a reason: