Fabien Costantini wrote:
>> Greg Ercolano wrote:
>> Yes, that is probably better than 'open' in that you can
>> at least pass arguments to your app normally.
>> open(1) is somewhat limited when it comes to passing arguments
>> through it.
> Mmmm, are you sure ?
> Under a terminal go to your root fltk directory and try this:
> open -a /Applications/TextEdit.app src/fil*.cxx FL/fil*.H
Yes; try passing command line flags to your app that start with
a dash, eg:
open /Applications/YourProgram.app -arg1 /some/path -arg2 /some/other/path
open /Applications/YourProgram.app -help
open(1) seems to take these options for itself, not passing them
through to the app via argv[].
Maybe I'm missing something, but empirical tests seemed to show
it not to be possible, and I see nothing in the open(1) manpage
about how to end open(1)'s argument parsing, such as a "--" flag.
I'm sure they could fix this someday, but that's currently a problem
in Panther and Tiger.. don't have Leopard in front of me ATM.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk