Required: shell scripting wizard!

Mike Bonner bonnmike at gmail.com
Fri Jan 14 09:30:02 EST 2011


Nvm, its early and I just re-iterated what you aleady know you need to do.
*goes back to bed*

On Fri, Jan 14, 2011 at 7:21 AM, Mike Bonner <bonnmike at gmail.com> wrote:

> From the command line if you do yourApp http://www.google.com
>
> $1 will contain the url.  Works the same from a bash script.
>
> #!/bin/bash
> path/to/yourApp $1
> -- will call your app using parameter 1 as parameter 1 inside the app.
> -- Access it the same way within the app itself using $1
>
> $1 is actually the 2nd parameter, $0 will contain the name of the app (or
> shell script depending)
>
> On Fri, Jan 14, 2011 at 6:54 AM, David Bovill <david at vaudevillecourt.tv>wrote:
>
>> Actually maybe it is not so hard :) I want to  create a way to launch
>> LiveCode using shell, but also to pass to it a url in the first param of
>> the
>> shell command. As I don't think you can do this directly anymore using
>> shell
>> scritps written in LiveCode - I think I need to write a bash script and
>> set
>> an environmental variable which I can then access using $ in Livecode?
>>
>> This is what I need to do:
>>
>> A shell command used to launch your preferred web browser when given a
>> URL as an argument.
>> >
>> > Defaults to "start" on windows, "open" on Mac, and "firefox" on Unix.
>> >
>> > Any thoughts?
>> _______________________________________________
>> 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
>>
>
>



More information about the use-livecode mailing list