Xojo Conferences

« MBS Filemaker Plugin,… | Home | Support for older OS … »

Tip of the day: Mac Shell Scripting

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.
05 08 11 - 20:38
No comments

Remember personal info?

Emoticons / Textile

Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.