On 30 juin 05, at 16:19, Matthias Buercher wrote:
i see that an os x mach GUI application can get its command line
arguments and it even gets them right if you call it from the shell.
any chances now to implement the print command that is available
for console applications?
matthias
looks like i have found the answer myself:
rb 5.5
make a new desktop application project, build to mach-O. set window
to none.
add this to the app.open event
system.debugLog "hello world"
quit
run it. it will print "hello world" to the console application
build the project. call the executable (within the bundle) from the
terminal.
it will print "hello world" to the terminal.
i can also save a picture to a file. only opening windows blocks the
terminal, of course.
so if you build a desktop application, you can make it behave like a
console application in a terminal, not interactive, but it can be a
feedback, as the system.debuglog goes to the terminal and not the
console. can i rely on that?
matthias
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|