What I would like to do is create a trigger so that when a file is downloaded either by downloading from a web script or copying from the cifs interface to have an "outbound" trigger to be able to change the name of the file on the fly. I tried creating a script in the Script directory and attached it a folder. The script contained document.name = "test.txt" but it did not trigger when I copied it out of the cifs interface.
Does any one have any other way that I could build the file name on the fly when a file is copied.
FYI the reason that I want to modify the name on the fly is that I wish to append some meta data to the front of the file name.
Hi derek, I realise that the outbound trigger is not activated when a file is copied. What I am trying to do is get alfresco to detect when a file is copied or downloaded to run a script that will allow me to change the file name on the fly. So if some one copies a file called test.text from the alfresco cifs interface then pastes it to there desktop the name of the file that will show up on the desktop will be something like 123 - test.txt instead of test.text and the file in the cifs interface will still be called test.txt
I hope that is a little more clear.
I'm hoping to keep my install of alfresco as vanilla as possible so that I don't have to recompile any java code when I go to upgrade.