cancel
Showing results for 
Search instead for 
Did you mean: 

Outbound Trigger

zezom
Champ in-the-making
Champ in-the-making
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.

Thank you.
3 REPLIES 3

derek
Star Contributor
Star Contributor
Hi,
You say "outbound", but then "when a file is copied".  Please describe the version you are using and what you want to do, exactly.
Regards

zezom
Champ in-the-making
Champ in-the-making
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.

derek
Star Contributor
Star Contributor
Hi,
I can't think of a way to accomplish what you want, which is really client-side behaviour.
Regards