Hi, Thank you!!!! I suspect this is not desired behaviour, but yet it works of a fashion… It creates a problem with the moneydance_xx variables not being set, but I think I can get around that… This will enable me to play..
Stuart Beesley - JUST A FELLOW USER closed this discussion
on 25 Jan, 2021 12:33 PM.
Sean Reilly re-opened this discussion
on 25 Jan, 2021 02:14 PM
Sean Reilly on 25 Jan, 2021 02:14 PM
I'd like to make it easier to create and package python extensions and am planning to add actions for initialisation, file open/close, and others to the script_info keys. Would that solve the problem here?
Hi Sean. Thanks for reply. How would your extra actions work? E.g. I know ‘menu’ adds the script to extensions menu and then when selected the whole script runs. This is how Toolbox currently runs.
So how would a file/open action work for example? Would this be a trigger sent to a script pre-defined method when a MD file opens? A bit like the existing pre-defined notifications for Java extensions..?
The beauty of the ability just to run the script when MD launches is that it can self install as an extension and then it’s loaded as a class which can get on with stuff, rather than just waiting for the user to click something.
I’ve got an experimental python extension running (just for learning) that does just this and listens to MD notifications...
Perhaps we need a ‘auto-run’ action item too?
Would be happy to trial/test a file/open action when I understand how it would work?