Launch another application with Launch command
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 738
- Joined: Thu Sep 11, 2014 1:49 pm
Launch another application with Launch command
I am trying to make a stack that launches another application.
Seems to be easy but no luck so far.
Can anybody tell me what I am doing wrong?
I attached an ApplicationLauncher and AppToLaunch stacks for testing.
Regards,
Paul
Seems to be easy but no luck so far.
Can anybody tell me what I am doing wrong?
I attached an ApplicationLauncher and AppToLaunch stacks for testing.
Regards,
Paul
- Attachments
-
- LaunchAppStacks.zip
- App launcher and app to launch stacks
- (2.53 KiB) Downloaded 229 times
Re: Launch another application with Launch command
Hi.
I did not open your stack, but try this:
This gives a valid pathname. I bet you did not. LC needs one to know what to launch and where to launch from.
About that "put the result" line. Add it after the launch line and see if it says something like "no such program". There might well be such a program, but it cannot be found.
Craig
I did not open your stack, but try this:
Code: Select all
on mouseUp
answer file "xyz"
launch it
put the result
end mouseUp
About that "put the result" line. Add it after the launch line and see if it says something like "no such program". There might well be such a program, but it cannot be found.
Craig
Last edited by dunbarx on Wed Nov 16, 2016 5:19 pm, edited 1 time in total.
Re: Launch another application with Launch command
Hi Paul,
if you want to start an APPLICATION ('.EXE on Win, '.APP on Mac) then "launch pathto_exe.exe" will do.
But you want to:
...
launch DOCUMENT "path/to_the/stack.livecode"
...
Best
Klaus
if you want to start an APPLICATION ('.EXE on Win, '.APP on Mac) then "launch pathto_exe.exe" will do.
But you want to:
...
launch DOCUMENT "path/to_the/stack.livecode"
...
Best
Klaus
-
- Posts: 738
- Joined: Thu Sep 11, 2014 1:49 pm
Re: Launch another application with Launch command
Strange enough my stack work now without any change
Does this also work in android?
I am working baby steps towards starting an application in android and communicate with it (via sockets)

Does this also work in android?
I am working baby steps towards starting an application in android and communicate with it (via sockets)
Re: Launch another application with Launch command
Use "launch document ..." and it will always work reliably!mrcoollion wrote:Strange enough my stack work now without any change![]()
And don't use "file://" as in your example stack!
And for the sake of clarity in the terminology: stack <> application!
-
- Posts: 738
- Joined: Thu Sep 11, 2014 1:49 pm
Re: Launch another application with Launch command
Thanks Klaus. And Stack <> application ... got it 
