cancel
Showing results for 
Search instead for 
Did you mean: 

Where to place Repository Scripts on the file system

vamirr
Champ on-the-rise
Champ on-the-rise
I have several scripts within my alfresco repository at: 'Company Home/Data Dictionary/Scripts'. Because I am switching repositories on a regular basis, I would like to move my scripts to the file system.

This follows the same principal as being able to place webscripts in both the repository at 'Company Home/Data Dictionary/Web Scripts Extension' and on the file system at '$TOMCAT_HOME/shared/classes/alfresco/extension/templates/webscripts'

Following the documentation here: http://docs.alfresco.com/4.0/topic/com.alfresco.enterprise.doc/concepts/welcome-infocenter.html
tells me to put them in
$TOMCAT_HOME/shared/classes/alfresco/extension, however that does not seem to work.

When going to Run Action > Execute Script, the scripts on the file system are not in the list of available scripts and they are also inaccessible to rules.
2 REPLIES 2

jpotts
World-Class Innovator
World-Class Innovator
I am fairly certain that if you want to run scripts from the UI, they must live in the Scripts directory within the repository.

Those scripts are content, so if you are switching repositories often you might consider exporting them into an ACP and then importing them into your other repositories. Note that, by default, an ACP import will not update existing nodes. You'll have to delete any scripts that are in your ACP that also exist in the folder you are importing into.

Jeff

vamirr
Champ on-the-rise
Champ on-the-rise
*sigh*   Thanks Jeff.