AnsweredAssumed Answered

Javascript commands to get filename

Question asked by vincent_roye on Dec 31, 2013
Latest reply on Jan 3, 2014 by vincent_roye
Hi,

I would like to create a script that will be triggered when a file is dropped in the repository. I will create a rule that is going to run the script at the right time.
I have installed the Javascript console to help me to create new scripts (it looks like the screenshot). I would like to know how to "simulate" a file that has just been dropped in and how to retrieve its name and store it in a variable.

Each time a file will be dropped in, an aspect will be attributed to it. In my script I would like to change the value of the property of an aspect. This is the next step but if someone could give me a few indications about how to get the freshly dropped filename it would be great.

Thanks,

Vincent

Outcomes