Determine if App is launched thru alias?

  • Hi,Is there any way to determine whether an application has been launched
    directly or through any of its alias? Or while creating the alias can I set
    any property which would later help me out in determining this.

    Thanks,
    S!
  • Can u tell why do you want to find such info?

    Thanks,
    Parag

    On 10/29/07, spsaxena <mail2spsaxena...> wrote:
    >
    > Hi,Is there any way to determine whether an application has been launched
    > directly or through any of its alias? Or while creating the alias can I
    > set
    > any property which would later help me out in determining this.
    >
    > Thanks,
    > S!
    >

    --
    Software Programmer
    Fortune Infocomm Pvt. Ltd.

    There are many things in your life that will catch your eye but only a few
    will catch your heart....pursue those'
    .
  • See I am having an application that behaves differently based on the
    parameters invoked upon. The application is relocatable and it already used
    to maintain aliases. I just want to extend that functionality of alias (if
    possible) to also pass a parameter to the application while invoking the
    same. So I wanted to know if at all it is possible? If yes then how...
    Thanks

    On 10/29/07, parag vibhute <parag.vibhute...> wrote:
    >
    >
    > Can u tell why do you want to find such info?
    >
    > Thanks,
    > Parag
    >
    > On 10/29/07, spsaxena <mail2spsaxena...> > wrote:
    >
    >> Hi,Is there any way to determine whether an application has been
    >> launched
    >> directly or through any of its alias? Or while creating the alias can I
    >> set
    >> any property which would later help me out in determining this.
    >>
    >> Thanks,
    >> S!
    >>
    >
    >
    >
    > --
    > Software Programmer
    > Fortune Infocomm Pvt. Ltd.
    >
    >
    > There are many things in your life that will catch your eye but only a few
    > will catch your heart....pursue those'
    > .
  • HI

    I was looking into this also, a few years back, but couldn't find any
    solution.

    What I did was, creating a small kickstarter app, put the options
    inside the code, compiled it.
    the code inside started the target app with those options. This for
    each set of options.

    Yes, you have to compile for each set of options a kickstarter alias.
    But its so small, it will take just seconds to do.

    Or maybe you can do something with applescript.

    HTH

    Op 30-okt-2007, om 5:36 heeft spsaxena het volgende geschreven:

    > See I am having an application that behaves differently based on the
    > parameters invoked upon. The application is relocatable and it
    > already used
    > to maintain aliases. I just want to extend that functionality of
    > alias (if
    > possible) to also pass a parameter to the application while
    > invoking the
    > same. So I wanted to know if at all it is possible? If yes then how...
    > Thanks
    >
    > On 10/29/07, parag vibhute <parag.vibhute...> wrote:
    >>
    >>
    >> Can u tell why do you want to find such info?
    >>
    >> Thanks,
    >> Parag
    >>
    >> On 10/29/07, spsaxena <mail2spsaxena...> > wrote:
    >>
    >>> Hi,Is there any way to determine whether an application has been
    >>> launched
    >>> directly or through any of its alias? Or while creating the alias
    >>> can I
    >>> set
    >>> any property which would later help me out in determining this.
    >>>
    >>> Thanks,
    >>> S!
    >>>
    >>
    >>
    >>
    >> --
    >> Software Programmer
    >> Fortune Infocomm Pvt. Ltd.
    >>
    >>
    >> There are many things in your life that will catch your eye but
    >> only a few
    >> will catch your heart....pursue those'
    >> .

    >
  • Thanks René, but actually I don't want to have an kick starter application
    or an apple script as Alias helps in finding relocated app.

    On 10/30/07, René v Amerongen <appledev...> wrote:
    >
    >
    > HI
    >
    > I was looking into this also, a few years back, but couldn't find any
    > solution.
    >
    > What I did was, creating a small kickstarter app, put the options
    > inside the code, compiled it.
    > the code inside started the target app with those options. This for
    > each set of options.
    >
    > Yes, you have to compile for each set of options a kickstarter alias.
    > But its so small, it will take just seconds to do.
    >
    > Or maybe you can do something with applescript.
    >
    > HTH
    >
    > Op 30-okt-2007, om 5:36 heeft spsaxena het volgende geschreven:
    >
    >> See I am having an application that behaves differently based on the
    >> parameters invoked upon. The application is relocatable and it
    >> already used
    >> to maintain aliases. I just want to extend that functionality of
    >> alias (if
    >> possible) to also pass a parameter to the application while
    >> invoking the
    >> same. So I wanted to know if at all it is possible? If yes then how...
    >> Thanks
    >>
    >> On 10/29/07, parag vibhute <parag.vibhute...> wrote:
    >>>
    >>>
    >>> Can u tell why do you want to find such info?
    >>>
    >>> Thanks,
    >>> Parag
    >>>
    >>> On 10/29/07, spsaxena <mail2spsaxena...> > wrote:
    >>>
    >>>> Hi,Is there any way to determine whether an application has been
    >>>> launched
    >>>> directly or through any of its alias? Or while creating the alias
    >>>> can I
    >>>> set
    >>>> any property which would later help me out in determining this.
    >>>>
    >>>> Thanks,
    >>>> S!
    >>>>
    >>>
    >>>
    >>>
    >>> --
    >>> Software Programmer
    >>> Fortune Infocomm Pvt. Ltd.
    >>>
    >>>
    >>> There are many things in your life that will catch your eye but
    >>> only a few
    >>> will catch your heart....pursue those'
    >>> .

    >>

    >
  • On 30/10/2007, spsaxena <mail2spsaxena...> wrote:
    > Thanks René, but actually I don't want to have an kick starter application
    > or an apple script as Alias helps in finding relocated app.

    Is there any reason that your kicker application couldn't store an
    alias reference to your app?

    -- Finlay
  • Hi,

    You can do two things, put somewhere an alias to your app, read that
    alias info  and use that path found in the alias to your app with the
    options.
    Or put the alias in the project and read the alias path info, and
    kickstart or jump to your app.

    For reading the alias you have to check FSRef, or, I remember that I
    did check N Day his NDAlias, which was a good sample explaining the
    Apple docs.

    HTH

    Op 30-okt-2007, om 10:32 heeft spsaxena het volgende geschreven:

    > Thanks René, but actually I don't want to have an kick starter
    > application or an apple script as Alias helps in finding relocated
    > app.
    >
    > On 10/30/07, René v Amerongen <appledev...> wrote:
    >
    > HI
    >
    > I was looking into this also, a few years back, but couldn't find any
    > solution.
    >
    > What I did was, creating a small kickstarter app, put the options
    > inside the code, compiled it.
    > the code inside started the target app with those options. This for
    > each set of options.
    >
    > Yes, you have to compile for each set of options a kickstarter alias.
    > But its so small, it will take just seconds to do.
    >
    > Or maybe you can do something with applescript.
    >
    > HTH
    >
    > Op 30-okt-2007, om 5:36 heeft spsaxena het volgende geschreven:
    >
    >> See I am having an application that behaves differently based on the
    >> parameters invoked upon. The application is relocatable and it
    >> already used
    >> to maintain aliases. I just want to extend that functionality of
    >> alias (if
    >> possible) to also pass a parameter to the application while
    >> invoking the
    >> same. So I wanted to know if at all it is possible? If yes then
    > how...
    >> Thanks
    >>
    >> On 10/29/07, parag vibhute <parag.vibhute...> wrote:
    >>>
    >>>
    >>> Can u tell why do you want to find such info?
    >>>
    >>> Thanks,
    >>> Parag
    >>>
    >>> On 10/29/07, spsaxena <mail2spsaxena...> > wrote:
    >>>
    >>>> Hi,Is there any way to determine whether an application has been
    >>>> launched
    >>>> directly or through any of its alias? Or while creating the alias
    >>>> can I
    >>>> set
    >>>> any property which would later help me out in determining this.
    >>>>
    >>>> Thanks,
    >>>> S!
    >>>>
    >>>
    >>>
    >>>
    >>> --
    >>> Software Programmer
    >>> Fortune Infocomm Pvt. Ltd.
    >>>
    >>>
    >>> There are many things in your life that will catch your eye but
    >>> only a few
    >>> will catch your heart....pursue those'
    >>> .

    >>

    >
  • 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.
  • On 10/30/07, Finlay Dobbie <finlay.dobbie...> wrote:
    > On 30/10/2007, spsaxena <mail2spsaxena...> wrote:
    >> Thanks René, but actually I don't want to have an kick starter application
    >> or an apple script as Alias helps in finding relocated app.
    >
    > Is there any reason that your kicker application couldn't store an
    > alias reference to your app?

    ...or use launch services to locate the application and launch it?

    -Shawn
  • 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 <rosyna...> 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.
    >
  • 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 <rosyna...> 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.
    >>

  • 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 <rosyna...> 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.
    >>>


  • Actually my intent was to keep the current design behavior as is, which is
    something like there is an application and there is an alias to it installed
    at some other fixed location.

    I tried several ways but most suited in my scenario was to have another
    small redirector cocoa application near actual application and the alias to
    point to redirector one. Redirector now simply invokes the actual
    application with parameters.

    Anyway Thanks everyone.
    -S

    On 10/31/07, John Stiles <JStiles...> wrote:
    >
    > 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 <rosyna...> 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.
    >>>>


    >
    >
previous month october 2007 next month
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Go to today