Call shared action from custom js file

Hi Clifton,
As I have far too much code to stuff into Toolbook shared actions I am writing my own functions to be used via 'Execute Script', as you suggested. As you know, these are stored in b.js and are readily available. It's slow work but I guess it's the only solution for me as otherwise Toolbook says: 'Script too large to compile.' The problematical part is using variables. If my functions use global variables these must be sent as local variables to each function and to modify a variable I have to use pgTBObjSet() to send a user value to an object which then updates the global variable.
This all works fine but sometimes there are some pretty big string variables flying around. I would like to leave some of my functions as Toolbook Shared Actions. Is it possible to call a Toolbook Shared Action directly from the code in b.js? I've been looking at the axf file but it looks pretty complicated!
PS. Thanks for the latest Powerpac and the constant updates.
As I have far too much code to stuff into Toolbook shared actions I am writing my own functions to be used via 'Execute Script', as you suggested. As you know, these are stored in b.js and are readily available. It's slow work but I guess it's the only solution for me as otherwise Toolbook says: 'Script too large to compile.' The problematical part is using variables. If my functions use global variables these must be sent as local variables to each function and to modify a variable I have to use pgTBObjSet() to send a user value to an object which then updates the global variable.
This all works fine but sometimes there are some pretty big string variables flying around. I would like to leave some of my functions as Toolbook Shared Actions. Is it possible to call a Toolbook Shared Action directly from the code in b.js? I've been looking at the axf file but it looks pretty complicated!
PS. Thanks for the latest Powerpac and the constant updates.