Admittedly, this is something you wouldn't often want to do unless writing an command line application in Objective-C/Cocoa, but writing to STDOUT instead of using
Means that the response can be used by piping to pbcopy for example. So do this instead:
[aString writeToFile:@"/dev/stdout" atomically:NO encoding:NSUTF8StringEncoding error:nil];
And then your string will output to stdout instead of just posting a console log.