Can LC application receive a shell command with parameters?

Andre Garzia andre at andregarzia.com
Fri Sep 12 11:17:58 EDT 2014


Bill,

This is a shot in the dark but if you're doing that on Mac OS X then I
think you may be able to use AppleEvents. I don't know if they are still
supported.

Cheers
andre

On Thu, Sep 11, 2014 at 2:23 AM, Bill Vlahos <bvlahos at mac.com> wrote:

> Mike,
>
> I’m not sure. I want to have a running application and then periodically a
> different application on the computer might send my app a text string.
>
> Scenario
> A different application sends the command pathtomyapp 555-555-5555.
>
> My application would have some way of receiving the command and then call
> a handler in my app to do a search..
>
> I don’t see what my handler would look like in my app.
>
> Thanks,
> Bill Vlahos
>
> On Sep 10, 2014, at 10:57 AM, Michael Doub <mikedoub at gmail.com> wrote:
>
> > Look up $ in the dictionary.   You can get access to all of the
> environment variables for command line apps.   Is that what you are looking
> for?
> >
> > -= Mike
> >
> >
> > On Sep 10, 2014, at 1:24 PM, Bill Vlahos <bvlahos at mac.com> wrote:
> >
> >> I want to have a different program pass a parameter (in this case a
> callerID phone number) to my LC application via a shell command to do a
> search in and bring up a person’s record.
> >>
> >> How can I receive it and handle it?
> >>
> >> Thanks,
> >> Bill Vlahos
> >> _______________________________________________
> >> use-livecode mailing list
> >> use-livecode at lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.



More information about the use-livecode mailing list