Q:
I'd like to programmatically invoke OmniWeb with a URL.
A:
Here's a small C function that will open the URL string you pass in:
#import <appkit/appkit.h>
void openURL(const char *urlString)
{
Pasteboard *pasteboard;
pasteboard = [Pasteboard newName:"OmniWebPasteboard"];
[pasteboard declareTypes:&NXAsciiPboardType num:1 owner:nil];
[pasteboard writeType:NXAsciiPboardType
data:urlString length:strlen(urlString)+1];
NXPerformService("OmniWeb/Open URL", pasteboard);
}