Open -a parameters
Open -a parameters
- Subject: Open -a parameters
- From: Sarah Dumoulin <email@hidden>
- Date: Mon, 26 May 2003 09:14:09 -0400
Hello,
I have a question about how the /usr/bin/open command works. I have
written an aqua front-end to a VRML browser. If I call the application
directly from the command line I can pass in the file name and get it
through the argument array. However, if I use the open -a command followed
by the file name my application does not work, and the argument list does
not include the name of the file I specified. i.e. If I type "open -a
myapp.app myfile.wrl" the argument list consists of:
1) a psn number
2) the full path to the application
"myfile.wrl" does not occur in the argument list. How can I access this
information?
How does the open command send the name of the file to the application?
Is there some sort of default method I should implement which is handed the
file name by the open command? Is it in memory somewhere I can access?
Any help is much appreciated. Thanks,
Sarah
--
Sarah Dumoulin email@hidden
Communications Research Centre www.crc.ca
Ottawa, ON
Phone: 613-990-5242
Fax: 613-998-9648
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.