Command Line RBScript (RBD3111)
REALbasic can compile ‘console’ applications, which are command-line tools you run from a console (such as Terminal). This opens up whole new ways of using REALbasic, such as creating web applications (CGIs) or integrating with existing command-line tool chains.
However, REALbasic shares these opportunities with older languages, including scripting languages such as Perl and Python. For anyone used to working in those languages, there’s still something missing from the REALbasic tool set. You can create a Python script as a simple text file, set the executable bit on it, and then simply invoke it from the command line (or web page, or whatever). There is no compiling and no building; the operating system simply treats the text file like a program and runs it. Why can’t you do the same thing in REALbasic?
As it turns out, you can. This article will show you how.