#import "FNGlue/FNGlue.h"
// To create Finder glue: osaglue -o FNGlue -p FN Finder
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
FNApplication *finder = [[FNApplication alloc] initWithBundleID: @"com.apple.finder"];
NSArray *files = [NSArray arrayWithObjects:
[NSURL fileURLWithPath: @"/Users/has/Documents"],
[NSURL fileURLWithPath: @"/Users/has/Movies"],
[NSURL fileURLWithPath: @"/Users/has/Pictures"],
nil];
NSError *err;
[[finder activate] send];
[[finder select: files] sendWithError: &err];
if (err) NSLog(@"%@", err);
[finder release];
[pool drain];
return 0;
}