You can directly access scripts in the repository location using a URL with the appropriate read permissions on the script document. You can import scripts on the classpath into other scripts but you cannot execute them directly in Alfresco Share.
- Import a script from the repository using a name-based path:
<import resource="/Company Home/Data Dictionary/Scripts/library.js">
- Import a script from the repository using a NodeRef reference:
- Import a script from a Java classpath location: