• 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
Re: Query about Zip command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Query about Zip command


  • Subject: Re: Query about Zip command
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Fri, 23 May 2008 23:33:07 -0700


On May 23, 2008, at 11:08 PM, Andrew Farmer wrote:

On 23 May 08, at 21:22, parag vibhute wrote:
But my requirement is to pass arguments to GUI apps while launching it
& is it possible using Launch services? I will post my code of NSTask
for launching GUI app in 1-2 days as my Mac is in office.

GUI applications generally do not take arguments - opened files are passed using Apple Events. Hence, Launch Services doesn't provide any way to pass arguments.

LSOpenURLsWithRole does, sort of: LSApplicationParameters has an argv field which the docs say it's unused on 10.4. No idea if it's used on 10.5 (or even if the question is related to the subject any more...as others have said, NSTask is the obvious solution for /usr/bin/zip).
--
Adam
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Query about Zip command (From: "parag vibhute" <email@hidden>)
 >Re: Query about Zip command (From: Jens Alfke <email@hidden>)
 >Re: Query about Zip command (From: "parag vibhute" <email@hidden>)
 >Re: Query about Zip command (From: "parag vibhute" <email@hidden>)
 >Re: Query about Zip command (From: "Kyle Sluder" <email@hidden>)
 >Re: Query about Zip command (From: "parag vibhute" <email@hidden>)
 >Re: Query about Zip command (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: Cleaning up a singleton
  • Next by Date: Re: NSCollectionView problems
  • Previous by thread: Re: Query about Zip command
  • Next by thread: Re: Query about Zip command
  • Index(es):
    • Date
    • Thread