Scripting Grapher?

Has anyone managed to GUI script the unscriptable Grapher (The Tiger replacement for the Graphing Calculator of years ago)? Since it’s a built-in app, it would be nice to use it for graphic output from a script if I could figure out how to send it an equation.