If you do some shell scripting, you often may find yourself writing little console projects in Real Studio to do special tasks. One of the tasks could actually be doing something which needs a GUI. Like asking the user for a password. Now how to do that?
The solution can be to use a desktop project in Real Studio. When you launch it on your Mac from your shell script, you need to launch the app directly. Not using open command or some other launch facility. So path could be /somefolder/MyApp.app/Contents/MacOS/MyApp. As you see it points inside the bundle to the executable inside.
When you launch your app that way from the terminal, you can use StdOutMBS class to write text to the terminal.