Running arbitrary apps "faceless"?

I understand that it is possible to run (some?) apps “in the background” (i.e., without taking over the mouse or screen). I’d think that there would be a simple way to do this from AppleScript, but I’m sure not finding one! I did find some notes on running an AppleScript as a “faceless background application” (FBA), but that sounds like a rather different kind of thing…

-r

P.S. My specific interest is in running OmniGraffle in this manner (to lay out and render diagrams for use by a web server), but general comments would also be welcome.

As I understand it, the process would be exactly the same with any app (LSUIElement thing you probably found in this or another forum). Of course, you could write a script to modify programmatically the related .plist file…