Passing Parameters

Phil Davis revdev at pdslabs.net
Mon Nov 7 03:47:07 EST 2011


If you need to send a message from app1 to app2, and app2 is already running, 
you could use socket communication between them. Don't have time to pencil it 
out, but maybe someone else will. If not, I'll do it tomorrow.

Phil


On 11/7/11 12:28 AM, Phil Davis wrote:
> On Mac OS X, you can do it from the command line.
>
> 1) create a standalone app (named "Untitled1" in this example) that has this 
> stack script:
>
>    on startup
>         dispatch $1 to me
>         quit
>    end startup
>
>    on incoming
>         beep
>    end incoming
>
>
> 2) create a different stack with this BUTTON script:
>
>    on mouseUp
>         answer file "Pick the app:"
>         if it = empty then exit to top
>
>         get shell (it & "/Contents/MacOS/Untitled1 incoming")
>         put the result after msg
>    end mouseUp
>
>
> 3) click the button. It should start the "Untitled1" app and you should hear 
> the beep. At least it works here.
>
> I haven't tried this on Windows, but I bet something similar would work there.
>
> Phil Davis
>
>
>
>
> On 11/6/11 7:35 PM, Cal Horner wrote:
>> Is there any command that will allow me to pass a simple parameter to a 
>> compiled LC  program?
>> _______________________________________________
>> 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
>>
>

-- 
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net





More information about the use-livecode mailing list