Just had another idea: call script functions from the command line.
For example, you could make shortcuts to activate certain functions, or you could apply them to files, like in the SendTo menu, or as a context menu entry.
Maybe if it's called like this:
code:
C:\...\MPTools.exe /script <email> "<script name>" <function> <param1> <param2> ... <paramX>
You can have a SendTo option to open a file like this...
code:
C:\...\MPTools.exe /script <email> "File Reader" OpenFile "%1" sendto
So, for a file at
C:\Some File.txt, that would then call the function in the script "File Reader":
js code:
OpenFile("C:\\Some File.txt", "sendto");