• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Open -a parameters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Open -a parameters
      • From: Calum Robinson <email@hidden>
  • Prev by Date: Re: How to provide idle time in Cocoa/Objective-C?
  • Next by Date: Re: Smooth fast scrolling programatically
  • Previous by thread: Re: Cocoa Help Implementation
  • Next by thread: Re: Open -a parameters
  • Index(es):
    • Date
    • Thread