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

Where to install scripts in Acro 9?

AnneMarie
Registered: Jul 26 2006
Posts: 18

I've looked all over this site and in the Help files but can't find the answers.

Scripts like Lori's FlattenPDF and others ... where do they go in Acrobat 9? All instructions are for version 8 and prior. Here's what they say:

For Windows:
C:\Program Files\Adobe\Acrobat 8.0\Acrobat\Javascripts

For Intel-based Mac:
/Users//Library/Acrobat User Data/8.0_x86/JavaScripts

For PowerPC Mac:
/Users//Library/Acrobat User Data/8.0_ppc/JavaScripts

I don't think the "8.0" folders would work.

Also, do scripts written for 8 work in 9?

Thanks
AM

My Product Information:
Acrobat Pro 9.0, Macintosh
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
Have you tried the app object's getPath() method?

console.println("App JS folder: " + add.getPath('app', 'javascript');
console.println("User JS folder: " + add.getPath('user', 'javascript');

Usually only the version number needs to be changed.

George Kaiser

maxwyss
Registered: Jul 25 2006
Posts: 255
As gkaiseril stated, getPath() will be your friend.

About whether the scripts developed for Acrobat 8 work in Acrobat 9, the answer is "it depends". Experience showed that most application-level scripts work as they should, but there are some areas where you might have to rework the scripts to make them work. This is mainly where so-called "security" issues are concerned. An other area is where older Acrobat versions were more "tolerant", but newer ones require more specific arguments. The (unortunately made way less usable) JavaScript documentation for Acrobat 9 may be of help.

Hope this can help.

Max Wyss.