Entering Folder Level Scripts by Thom Parker for more information for version 4 - 9.
You should also be aware that there is one folder for privileged scripts for both Reader and Acrobat, so if you have both installed on your system you may have to modify the scripts that are Acrobat only, have code that Reader cannot execute, to selectively install the code based on the product being used.
I tried the following in init.js:
When I call the function, all I get is the console. There is no informaiton inside it. Is there something more that needs to be added to have it show the folder?
Execute the function in the console.
You need to output the path to the console, like this:
What was the exact directory name where you placed the file?
What version of Acrobat are you using?
From the provided links:
Changes for 10.1.1
By design, Acrobat processes do not write to the %ApplicationData%\ Acrobat\Privileged\10.0 folder. Additionally, sandboxed processes are specifically prohibited from writing to that folder. Thus, the most secure operation involves enabling Protected View in Acrobat and Protected Mode in Reader and thereby sandboxing all processes. Additionally, 10.1.1 introduces the following changes:
If you missed for XP:
If you have version 11 then change "10.0 "to "11.0".
you could add an "app.alert("Starting custom function");" to you file and see if it executes. You will have to restart Acrobat for the script to start.
"my.name" cannot be your login name. Make sure you have spelled your login name correctly including capitalization.