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 <[email protected]> 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 <[email protected]>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 >> [email protected] >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
