Launch Application Using Target File

Using NSWorkSpace launchApplication and all is fine if using an application file, but what if one would like to launch an application using a target file like untitled.rtf [[NSWorkspace sharedWork...