• 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: Determine if App is launched thru alias?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determine if App is launched thru alias?


  • Subject: Re: Determine if App is launched thru alias?
  • From: John Stiles <email@hidden>
  • Date: Wed, 31 Oct 2007 09:34:36 -0700

I was considering a similar suggestion. This is what documents are for. The fact that Windows uses shortcuts to pass command line arguments is basically a hack.


On Oct 30, 2007, at 11:21 PM, Rohan Lloyd wrote:

What about defining a document type that you app handles.

Double clicking the document will run your app and send an 'odoc' event to it, you then read whatever you need from the document.

On 31 Oct 2007, at 3:35 PM, spsaxena wrote:

Ya! you are very correct. I was trying the same...
I conclude that as of now it is not possible to modify alias to also pass
command line parameters. So I have to choose some other way to invoke the
application with parameters.


Thanks to everyone, but isn't it would be great if alias can also keep the
parameters to invoke the application with. That would allow application to
be run directly in some specific mode based on which alias is triggered.
Alias would be small in size and it will not be like other application which
will wait for the child application to quit. Anyway that was my perspective.


Thanks again
-S

On 10/30/07, Rosyna <email@hidden> wrote:

Are you trying to something similar to the Windows feature that allows you to assign command line parameters to be passed from certain shortcuts to the applications that they launch?

Ack, at 10/29/07, spsaxena said:

Hi,Is there any way to determine whether an application has been launched
directly or through any of its alias?

--


Sincerely, Rosyna Keller Technical Support/Carbon troll/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People

It's either this, or imagining Phil Schiller in a thong.

_______________________________________________

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:
40rohanl.com


This email sent to email@hidden
_______________________________________________

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:
40blizzard.com


This email sent to email@hidden

_______________________________________________

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: 
 >Determine if App is launched thru alias? (From: spsaxena <email@hidden>)
 >Re: Determine if App is launched thru alias? (From: spsaxena <email@hidden>)
 >Re: Determine if App is launched thru alias? (From: Rohan Lloyd <email@hidden>)

  • Prev by Date: Re: Attributed string in user defaults, is RTFD data OK?
  • Next by Date: Re: reordering table cells with 10.5 sdk
  • Previous by thread: Re: Determine if App is launched thru alias?
  • Next by thread: [Leopard] Debugging GC
  • Index(es):
    • Date
    • Thread