Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

app level vs. user level scripts error

Avatar

Level 5

I am working on a trusted function to save a LiveCycle (pdf) file based on a field name. Upon research I have read that I am supposed to find the “app” and “user” folder level scripts. To find these scripts I should run the following script in the Acrobat Javascript debugger.

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

/C/Program Files/Adobe/Acrobat 10.0/Acrobat/JavaScripts

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

GeneralError: Operation failed.

App.getPath:1:Console undefined:Exec

2

This was easy to do, however I received an error on the second script (“user”), and I am not sure if this effects placement of my trusted function. Does this error change where I place my trusted function? I am under the beleif the trusted function goes in the "app" folder lever.

I have Acrobat X Pro and LiveCycle Designer ES2.

Links: http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?cont...

2 Replies

Avatar

Level 6

See if this helps: http://acrobatninja.blogspot.com/2011/09/acrobat-1011-javascript-changes.html

In other words, you may have to first create the folder manually. The script will work whether you place is in the app folder or the user folder. The difference is code placed in the app folder will be available to all users, while code placed in the user folder will just be available to that user.

Avatar

Level 5

Thanks George that was very helpful.