-
1. Re: How to link an event and a script ?
Michael L Hale May 24, 2010 10:35 AM (in response to habaki1)Both the Script Event Manager and app.notifiers.add require the full path to a javascript file and don't accept arguments for the script. I am not sure what you are trying to do. You could have the script read the needed arguments from somewhere like an text or xml file or even CustomOptions.
If you want the event to call one of several scripts depending on the arguments then after the argument is read you could have if or switch statements to eval the needed scripts.
-
2. Re: How to link an event and a script ?
habaki1 May 25, 2010 10:08 AM (in response to Michael L Hale)Thank you Michael !
I am now so in the habit of getting a code from the scriptlistener because it is not available with objects that i completely forgot app.notifiers.
But in fact the scriptlistener is not helpfull to do what app.notifiers.add does, and it is a little bit strange. Nothing is perfect !
Sorry for my useless question.


