Mark, Thanks!
Here’s the script I created based upon your example. This is a stack with one
card and on the card is a field “counter”. I put “0” into the field to seed it.
When the stack file is opened, it launches LiveCode and does the preOpenStack
and the send in seconds causes the stack to
On 2/1/21 10:29 AM, kee nethery via use-livecode wrote:
Basically I needed a stack to launch and run in the IDE and LiveCode didn’t
have a way to do that.
???
on preOpenStack
choose pointer tool
startMeUp
end preOpenStack
on startMeUp
answer "I'm started"
end startMeUp
--
Mark
> On Feb 1, 2021, at 1:52 AM, Ben Rubinstein via use-livecode
> wrote:
>
> Thanks Mark (and Matthias). That's very useful info which I'll stash for
> another time.
>
> In this case I really don't want to use the LC code over HTTP. It is purely a
> utility to run locally on this machine at
Superb, thank you Matthias. Apologies not having RTFM'd properly myself.
Ben
On 01/02/2021 12:07, matthias rebbe via use-livecode wrote:
Am 01.02.2021 um 10:52 schrieb Ben Rubinstein via use-livecode
mailto:use-livecode@lists.runrev.com>>:
Thanks Mark (and Matthias). That's very useful
> Am 01.02.2021 um 10:52 schrieb Ben Rubinstein via use-livecode
> mailto:use-livecode@lists.runrev.com>>:
>
> Thanks Mark (and Matthias). That's very useful info which I'll stash for
> another time.
>
> In this case I really don't want to use the LC code over HTTP. It is purely a
> utility
Thanks Mark (and Matthias). That's very useful info which I'll stash for
another time.
In this case I really don't want to use the LC code over HTTP. It is purely a
utility to run locally on this machine at scheduled intervals, in support of
some other processes.
For several reasons it
Mark that is interesting. I would like to something similar during the Learning
Cohort coding sprint over the next 12 weeks.
I’d be happy to write up documentation and create a community GitHub project
around that approach including Nginx config etc?
One more thought came to mind. You should run the executable in the
background by applying an & as in this example:
./yourCoolExecutable -ui &
If you run the executable from terminal and you do not apply the & the
executable will die as terminal quits.
Best regards,
Mark Talluto
Hi Ben,
My favorite method is to build server code with standalones and script only
stacks. You can run them headless using the -ui method as you proposed earlier.
You can have the standalone act as a starter stack that loads in your script
only stacks as libraries. This model makes it easy to
Hi Ben,
Livecode Server can only execute Livecode script files, but it can make use of
stackfiles if you want to use the stack as a library for example.
I am sorry, if i cannot explain it more detailed. Ask me in German and i could
tell you what i really mean. ;)
But good example is this page
Hi Matthias,
Thanks for answering.
I haven't looked into Livecode Server. When you say I could run livecode
scripts directly from shell, does that means scripts, but not stacks?
Is Livecode Server easier to install on a 'headless' system? Is there
somewhere I should look to find explanation
Ben,
is there a reason why you do not install/use Livecode Server instead of
Livecode IDE on your system?
You could run livecode scripts directly from shell.
Regards,
Matthias
-
Matthias Rebbe
Life Is Too Short For Boring Code
> Am 29.01.2021 um 19:44 schrieb Ben Rubinstein via
12 matches
Mail list logo