I have thought of that as well. I like it, but I was wondering if there was a way to get it from say a single step. For example, if you could leverage the com.cisco.app.Application class, or perhaps another class I don't know about which refers to the running script.
Something like this would be nice (totally made up): Set this_script = com.cisco.contact.getRunningScript() On Tue, Nov 27, 2018 at 10:38 PM Bill Talley <btal...@gmail.com> wrote: > Maybe use a Get Trigger Info step to capture the application name, > followed by Make REST Call to get the script name? > > Sent from an iOS device with very tiny touchscreen input keys. Please > excude my typtos. > > On Nov 27, 2018, at 2:29 PM, Anthony Holloway < > avholloway+cisco-v...@gmail.com> wrote: > > I have worked out a method to retrieve the running script as a Script > object, but I'm not super happy with how I did it. I.e., It's kind of ugly > looking and complex. > > I'm wondering if anyone of you can retrieve a reference to the running > script, without hard coding the name in the script. I.e., It should work > on any script without modification. > > E.g., If the App which is executing is called Test and its script which is > executing is called test.aef, then your script should populate a Script > variable containing SCRIPT[test.aef]. > > I don't want to submit my version right away, just so I don't send you > down any one particular path, but I will share it once a few people have > responded, or if this gains zero traction after a bit. > > Share your solutions! > > _______________________________________________ > cisco-voip mailing list > cisco-voip@puck.nether.net > https://puck.nether.net/mailman/listinfo/cisco-voip > >
_______________________________________________ cisco-voip mailing list cisco-voip@puck.nether.net https://puck.nether.net/mailman/listinfo/cisco-voip