Re: "template" stack in custom property

2019-08-02 Thread ambassador--- via use-livecode
What are the advantage of instantiating the new stack from data in a 
prop rather than by cloning a substack?


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Transparent layer between pdf widget and field?

2019-08-02 Thread Dr. Hawkins via use-livecode

On Aug 1, 2019, at 5:54 PM, Dar Scott Consulting via use-livecode 
 wrote:
> 
> Maybe your rectangle can have its blend level and ink tweaked to provide the 
> look you want.



Ahh.

blendLevel is the keyword I was looking for.  I was looking for “transparency” 
and the like.

Blendlevel 85 and yellow seems perfect to lightly emphasize; thank you.

— 
Richard E. Hawkins, Esq.
The Hawkins Law Firm
3430 E. Flamingo Rd.
Suite 232
Las Vegas, NV  89121
(702) 508-8462

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: "template" stack in custom property

2019-08-02 Thread Peter Bogdanoff via use-livecode
Possibly related to this inability to focus properly is this bug I just filed:

Bug 22285 - Can't focus on script window with property inspector custom 
properties tab open


Only showing in LC 9.5.

This can really create havoc if you don’t watch where the characters you are 
typing or pasting actually end up.

Peter Bogdanoff
ArtsInteractive


> On Aug 2, 2019, at 11:30 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Jaque,
> 
>> Am 02.08.2019 um 20:24 schrieb J. Landman Gay via use-livecode 
>> :
>> ...
>> The "can't find handler" error, as well as not finding controls or cards, 
>> has been around for a while but I see it more oftn in the last few versions 
>> of LC 9. I haven't got a repeatable recipe yet so haven't reported it.
>> 
>> Anyway, that sounds like what you are experiencing.
> 
> no, I don't think so, because LC obviously neglects the rest of the script
> but ONLY if the stack-to-be-opened has a pre-/openstack handler.
> 
> Works if I add -> lock messages!
> 
> And this only happens when I open a stack from within a custom property.
> If I do the same with a stack from my HD, everything works as exspected, so 
> it does not sound
> like LC is not finding "the defaultstack".
> 
>> -- 
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: V9.5 may still have issues

2019-08-02 Thread Dr. Hawkins via use-livecode

On Jul 31, 2019, at 7:26 PM, J. Landman Gay via use-livecode 
 wrote:
> 
> Only once an hour? ;)
> 
> Yeah, something is off.

Download version 6; that should solve the problem . . .

:)

I *never* managed to get 6 to either stay up long enough or respect a red dot 
enough to do any work.  I had to wait for 7 . . .



— 
Richard E. Hawkins, Esq.
The Hawkins Law Firm
3430 E. Flamingo Rd.
Suite 232
Las Vegas, NV  89121
(702) 508-8462

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: "template" stack in custom property

2019-08-02 Thread Klaus major-k via use-livecode
Hi Jaque,

> Am 02.08.2019 um 20:24 schrieb J. Landman Gay via use-livecode 
> :
> ...
> The "can't find handler" error, as well as not finding controls or cards, has 
> been around for a while but I see it more oftn in the last few versions of LC 
> 9. I haven't got a repeatable recipe yet so haven't reported it.
> 
> Anyway, that sounds like what you are experiencing.

no, I don't think so, because LC obviously neglects the rest of the script
but ONLY if the stack-to-be-opened has a pre-/openstack handler.

Works if I add -> lock messages!

And this only happens when I open a stack from within a custom property.
If I do the same with a stack from my HD, everything works as exspected, so it 
does not sound
like LC is not finding "the defaultstack".

> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com

Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: "template" stack in custom property

2019-08-02 Thread J. Landman Gay via use-livecode

On 8/2/19 12:56 PM, Klaus major-k via use-livecode wrote:

Hi all,

in case someone is interested.


Am 02.08.2019 um 16:00 schrieb Klaus major-k via use-livecode 
:

Hi all,

I found a workaround by creating two handlers and use them with a little dealy.


Am 02.08.2019 um 14:59 schrieb Klaus major-k via use-livecode 
:

Hi friends,

I have done this a lot in the past, but currently got stuck with this in LC 9.5
I store a stack in a custom property and open it via script like:
...
put "NewJob_" & the seconds into tName


lock messages
## Now every line in the handler is being executed.


go invisible stack (the cTemplateStack of this stack)
## Works so far, the stack is in -> the openstacks

## However NOTHING that comes after that line will ever get executed?
## restarted LC a couple of time, no dice...

## Even the BREAKPOINT is being ignored!?
breakpoint
answer "asfasdasdasdasdasd"
...


looks like this only happens if the stack in the CP does have a 
"pre-/openstack" handler!?
If I add "lock messages" everything works as advertised.

This does not happen if I go to a stack on my HD!?
Oh my... :-/


I have seen many instances where the IDE does not recognize the 
defaultstack. Yesterday I had two stacks open, I clicked on one to bring 
it to the front, and the message box title bar correctly said it was the 
target stack for messages. But every command I put in the message box 
threw an error. I asked it what the defaultstack was and it answered 
correctly. But I couldn't get commands to work until I added a full path 
to the stack and used the send command:


send "myMessage" to this card of stack "otherstack"

Just typing "myMessage" into the message box always said it couldn't 
find the handler. It also couldn't find any objects I could see clearly 
on screen, etc. It was as if the stack wasn't there. Setting the 
defaultstack manually in the message box also didn't work.


The "can't find handler" error, as well as not finding controls or 
cards, has been around for a while but I see it more oftn in the last 
few versions of LC 9. I haven't got a repeatable recipe yet so haven't 
reported it.


Anyway, that sounds like what you are experiencing.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: "template" stack in custom property

2019-08-02 Thread Klaus major-k via use-livecode
Hi all,

in case someone is interested.

> Am 02.08.2019 um 16:00 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi all,
> 
> I found a workaround by creating two handlers and use them with a little 
> dealy.
> 
>> Am 02.08.2019 um 14:59 schrieb Klaus major-k via use-livecode 
>> :
>> 
>> Hi friends,
>> 
>> I have done this a lot in the past, but currently got stuck with this in LC 
>> 9.5
>> I store a stack in a custom property and open it via script like:
>> ...
>> put "NewJob_" & the seconds into tName

lock messages
## Now every line in the handler is being executed.

>> go invisible stack (the cTemplateStack of this stack)
>> ## Works so far, the stack is in -> the openstacks
>> 
>> ## However NOTHING that comes after that line will ever get executed?
>> ## restarted LC a couple of time, no dice...
>> 
>> ## Even the BREAKPOINT is being ignored!?
>> breakpoint
>> answer "asfasdasdasdasdasd"
>> ...

looks like this only happens if the stack in the CP does have a 
"pre-/openstack" handler!?
If I add "lock messages" everything works as advertised.

This does not happen if I go to a stack on my HD!? 
Oh my... :-/


Best

Klaus
--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: ANN: PowerDebug 2.1.5

2019-08-02 Thread Matthias Rebbe via use-livecode
Great to hear and good timing. :)

When i read your comment that you do not experience those crashes using 
PowerDebug, i´ve immediately searched for my registration email, but the link 
did not work anymore.

So your update is just in time.  Thank you very much.

Regards,

Matthias


Matthias Rebbe

free tools for Livecoders:
InstaMaker 
WinSignMaker Mac 

> Am 02.08.2019 um 19:16 schrieb Mark Wieder via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> Hi-
> 
> I have released a new version of PowerDebug, the first real update in three 
> years.
> 
> Note that PowerDebug does not seem to have the crash-to-desktop problems 
> exhibited by the IDE debugger in LiveCode 9.x when deleting red-dot ghost 
> breakpoints, so if you're currently experiencing the crashing problems you 
> should be using PowerDebug, at least until the engine problems in LiveCode 
> are resolved.
> 
> Version 2.1.5 is significantly refactored in certain areas for speed and to 
> fix some bugs relating to the display of variables when switching contexts 
> and the display of multidimensional arrays.
> 
> PowerDebug completely supports LC9.x and is backwards-compatible to at least 
> version 4.x.
> Debugging of standalone applications is still supported on the same computer, 
> cross-platform on multiple computers, and on different computers in the same 
> local subnet.
> 
> http://powerdebug.ahsoftware.net 
> http://ahsoftware.net/PowerTools/BuyPowerDebug.lc
> 
> 
> 
> 
> For current users (I've gotten some bounced emails, so if you didn't get an 
> update email from me, read on)
> 
> NOTE: even if you have a beta version of 2.x you should download the most 
> recent version. That's the only one guaranteed to have all the latest patches.
> 
> As usual, your registration will never expire, so you have access to the 
> latest versions.
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.com
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

ANN: PowerDebug 2.1.5

2019-08-02 Thread Mark Wieder via use-livecode

Hi-

I have released a new version of PowerDebug, the first real update in 
three years.


Note that PowerDebug does not seem to have the crash-to-desktop problems 
exhibited by the IDE debugger in LiveCode 9.x when deleting red-dot 
ghost breakpoints, so if you're currently experiencing the crashing 
problems you should be using PowerDebug, at least until the engine 
problems in LiveCode are resolved.


Version 2.1.5 is significantly refactored in certain areas for speed and 
to fix some bugs relating to the display of variables when switching 
contexts and the display of multidimensional arrays.


PowerDebug completely supports LC9.x and is backwards-compatible to at 
least version 4.x.
Debugging of standalone applications is still supported on the same 
computer, cross-platform on multiple computers, and on different 
computers in the same local subnet.


http://powerdebug.ahsoftware.net
http://ahsoftware.net/PowerTools/BuyPowerDebug.lc




For current users (I've gotten some bounced emails, so if you didn't get 
an update email from me, read on)


NOTE: even if you have a beta version of 2.x you should download the 
most recent version. That's the only one guaranteed to have all the 
latest patches.


As usual, your registration will never expire, so you have access to the 
latest versions.


--
 Mark Wieder
 ahsoftw...@gmail.com

--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: 9.5.0 crash to desktop

2019-08-02 Thread Bob Sneidar via use-livecode
Well interestingly, after clearing all my breakpoints, I have not had one CTD 
in 2 hours! Yeah, I think Panos is on to something. It explains also why the 
standalones I build are not crashing in the same way. 

Bob S


> On Aug 2, 2019, at 09:02 , J. Landman Gay via use-livecode 
>  wrote:
> 
> That sounds related somehow. On Mac, you're more apt to get a crash rather 
> than just a visual glitch. What happens if you use the Developer menu to 
> clear all breakpoints? Same thing?
> 
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On August 2, 2019 10:34:08 AM Bob Sneidar via use-livecode 
>  wrote:
> 
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: 9.5.0 crash to desktop

2019-08-02 Thread J. Landman Gay via use-livecode
That sounds related somehow. On Mac, you're more apt to get a crash rather 
than just a visual glitch. What happens if you use the Developer menu to 
clear all breakpoints? Same thing?


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On August 2, 2019 10:34:08 AM Bob Sneidar via use-livecode 
 wrote:



It's a display bug. Quit LC, relaunch, watchpoint gone.

Bob S


On Aug 2, 2019, at 08:29 , Bob Sneidar via use-livecode 
 wrote:


Hmmm... I did have a watch point set... I will clear all my breakpoints and 
see what happens.


Bob S


On Aug 2, 2019, at 08:26 , J. Landman Gay via use-livecode 
 wrote:


Panos has diagnosed at least part of the problem. It has to do with red dot 
breakpoints. Using the breakpoint command instead may (will?) avoid the crash.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On August 1, 2019 4:22:57 PM Bob Sneidar via use-livecode 
 wrote:






___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: 9.5.0 crash to desktop

2019-08-02 Thread Bob Sneidar via use-livecode
It's a display bug. Quit LC, relaunch, watchpoint gone. 

Bob S


> On Aug 2, 2019, at 08:29 , Bob Sneidar via use-livecode 
>  wrote:
> 
> Hmmm... I did have a watch point set... I will clear all my breakpoints and 
> see what happens. 
> 
> Bob S
> 
> 
>> On Aug 2, 2019, at 08:26 , J. Landman Gay via use-livecode 
>>  wrote:
>> 
>> Panos has diagnosed at least part of the problem. It has to do with red dot 
>> breakpoints. Using the breakpoint command instead may (will?) avoid the 
>> crash.
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>> On August 1, 2019 4:22:57 PM Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: 9.5.0 crash to desktop

2019-08-02 Thread Bob Sneidar via use-livecode
Well I just discovered a new bug! I cannot delete a watch point. Richt-click 
delete nothing happens. 

Bob S


> On Aug 2, 2019, at 08:29 , Bob Sneidar via use-livecode 
>  wrote:
> 
> Hmmm... I did have a watch point set... I will clear all my breakpoints and 
> see what happens. 
> 
> Bob S
> 
> 
>> On Aug 2, 2019, at 08:26 , J. Landman Gay via use-livecode 
>>  wrote:
>> 
>> Panos has diagnosed at least part of the problem. It has to do with red dot 
>> breakpoints. Using the breakpoint command instead may (will?) avoid the 
>> crash.
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>> On August 1, 2019 4:22:57 PM Bob Sneidar via use-livecode 
>>  wrote:


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: 9.5.0 crash to desktop

2019-08-02 Thread Bob Sneidar via use-livecode
Hmmm... I did have a watch point set... I will clear all my breakpoints and see 
what happens. 

Bob S


> On Aug 2, 2019, at 08:26 , J. Landman Gay via use-livecode 
>  wrote:
> 
> Panos has diagnosed at least part of the problem. It has to do with red dot 
> breakpoints. Using the breakpoint command instead may (will?) avoid the crash.
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On August 1, 2019 4:22:57 PM Bob Sneidar via use-livecode 
>  wrote:
> 
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: 9.5.0 crash to desktop

2019-08-02 Thread J. Landman Gay via use-livecode
Panos has diagnosed at least part of the problem. It has to do with red dot 
breakpoints. Using the breakpoint command instead may (will?) avoid the crash.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On August 1, 2019 4:22:57 PM Bob Sneidar via use-livecode 
 wrote:


Hi all. Just letting everyone know I am crashing to desktop in 9.5.0 
"stable" (LOL) about very 10 minutes now. No bueno. Going back to 9.0.5.


Bob S


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Challenge: who can background this shell command?

2019-08-02 Thread Dar Scott Consulting via use-livecode
And an especially nice thing (I'm dreaming) would be callbacks for process and 
device I/O, maybe even some sort of unification with sockets. That would remove 
the need for polling in a send loop.



> On Aug 2, 2019, at 8:40 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> This is a fascinating thread. When all this is sussed out, a nice thing to 
> have is a function that takes arguements for all the heretofore literals, and 
> does the deed. It can be added to the master library. 
> 
> Bob S
> 
> 
>> On Aug 2, 2019, at 07:13 , Dar Scott Consulting via use-livecode 
>>  wrote:
>> 
>> I'm assuming you can send the ^c down the process connection. That is, write 
>> to the opened process. Wait a bit after that or look at the response, and 
>> then shut down the polling send-loop and then close the connection if it is 
>> not already closed, 
>> 
>> It might be that simply closing the connection to the process will cause it 
>> to shutdown gracefully. However, it would be nice to see the graceful 
>> shutdown.
>> 
>> I'd collect the reads and put them in a field on a stack just for monitoring 
>> the output. You can make it development only or you can make it part of your 
>> thing. This will allow you to see what is going on. It also allows you to 
>> see why Dar's idea of sending ^c doesn't work.
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: 9.5.0 crash to desktop

2019-08-02 Thread JJS via use-livecode
Ok strange, i almost never have a crash. I had once, and made a bug 
report a time ago, it was when the message box open and the message 
watcher. I thought it was fixed back then.


Sometimes it hangs when pushing to device with test, but that's probably 
due to a wacky usb cable and it looses a command or so.


Op 2-8-2019 om 16:36 schreef Bob Sneidar via use-livecode:

It depends. Sometimes debugging stepping through code. Hovering over a variable to see 
it's value. Other times just working in my app. Recently I have been adding files to the 
database. I have a method where I drag files from the Finder onto a button or field, and 
import the files as binary data into a table in a mySQL database. Sometimes it's in the 
process of finding a record to attach the files to, like a "device" record for 
a particular site and customer. I can do this for 15 minutes  and then the next time 
doing exactly the same thing, I crash to desktop. All versions of Community from 9.0.4 to 
9.5 are doing it.

Not sure what a screen capture would accomplish. The windows disappear, I get 
an error dialog. I have already posted the crash log from one of the CTDs on 
the QCC site.

Bob S



On Aug 1, 2019, at 14:26 , JJS via use-livecode  
wrote:

what are you doing, or what is running when that happens?

Op 1-8-2019 om 23:21 schreef Bob Sneidar via use-livecode:

Hi all. Just letting everyone know I am crashing to desktop in 9.5.0 "stable" 
(LOL) about very 10 minutes now. No bueno. Going back to 9.0.5.

Bob S


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Polyglot and CodeRunner

2019-08-02 Thread JJS via use-livecode
i only use PHP now, but mainly to communicate with server/DB and ideal 
payments


I started with Kotlin a week ago, a few online lessons for beginners. 
Because Kotlin is a java derative, runs multiplatform and natively on 
Android. And they say is easy to learn...well i already saw it's not so 
easy as Livecode, but just starting. Maybe it can be combined, don't know.


Op 2-8-2019 om 16:00 schreef Sean Cole (Pi) via use-livecode:

The trouble with this and Peppermint is they are only for MacOS. So it
doesn't really fall into the LC 'code once for all' bracket. Not that it
isn't useful for some individual projects. But it would be even better if
there was a code runner that was PC, Linux and Windows (and even mobile)
friendly. But I definitely see the advantages for it.

Sean Cole
*Pi Digital Productions Ltd*
www.pidigital.co.uk
+44(1634)402193
+44(7702)116447
'Don't try to think outside the box. Just remember the truth: There is no
box!'
'For then you realise it is not the box you are trying to look outside of,
but it is yourself!'

eMail Ts & Cs    Pi Digital
Productions Ltd is a UK registered limited company, no. 5255609


On Fri, 2 Aug 2019 at 14:21, David Bovill via use-livecode <
use-livecode@lists.runrev.com> wrote:


Does anyone combine Livecode with different programming languages - would
be interesting to share any experiences. I mainly create wrappers for
command line tools in Livecode. Sometimes interface with Javascript which I
want to improve my workflow with.

I was thinking of of extending the way I work with command line tools -
then saw how https://coderunnerapp.com/ does it - so thought I'd see if we
can get Livecode to work with CodeRunner first - has anyone done this?


*How can I add my own languages to CodeRunner?*CodeRunner's run system is
based on simple terminal commands, and therefore if you know the terminal
commands involved in running/compiling code in your language, you can
easily add it to CodeRunner. To add languages, go to Preferences ->
Languages, and click the "+" button. In the "Run Command" text box, enter
the command you use to run the language from the terminal. E.g. if the
interpreter is called mylang, you would enter mylang $filename here.

If your language uses several commands to run, you can use a CodeRunner
compile script. Check the box "Language uses compile script" and click the
"Edit Script..." button. This will open the compile script in the
CodeRunner editor. The script will contain a further explanation of how to
use it.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Challenge: who can background this shell command?

2019-08-02 Thread Bob Sneidar via use-livecode
This is a fascinating thread. When all this is sussed out, a nice thing to have 
is a function that takes arguements for all the heretofore literals, and does 
the deed. It can be added to the master library. 

Bob S


> On Aug 2, 2019, at 07:13 , Dar Scott Consulting via use-livecode 
>  wrote:
> 
> I'm assuming you can send the ^c down the process connection. That is, write 
> to the opened process. Wait a bit after that or look at the response, and 
> then shut down the polling send-loop and then close the connection if it is 
> not already closed, 
> 
> It might be that simply closing the connection to the process will cause it 
> to shutdown gracefully. However, it would be nice to see the graceful 
> shutdown.
> 
> I'd collect the reads and put them in a field on a stack just for monitoring 
> the output. You can make it development only or you can make it part of your 
> thing. This will allow you to see what is going on. It also allows you to see 
> why Dar's idea of sending ^c doesn't work.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: 9.5.0 crash to desktop

2019-08-02 Thread Bob Sneidar via use-livecode
It depends. Sometimes debugging stepping through code. Hovering over a variable 
to see it's value. Other times just working in my app. Recently I have been 
adding files to the database. I have a method where I drag files from the 
Finder onto a button or field, and import the files as binary data into a table 
in a mySQL database. Sometimes it's in the process of finding a record to 
attach the files to, like a "device" record for a particular site and customer. 
I can do this for 15 minutes  and then the next time doing exactly the same 
thing, I crash to desktop. All versions of Community from 9.0.4 to 9.5 are 
doing it. 

Not sure what a screen capture would accomplish. The windows disappear, I get 
an error dialog. I have already posted the crash log from one of the CTDs on 
the QCC site. 

Bob S


> On Aug 1, 2019, at 14:26 , JJS via use-livecode 
>  wrote:
> 
> what are you doing, or what is running when that happens?
> 
> Op 1-8-2019 om 23:21 schreef Bob Sneidar via use-livecode:
>> Hi all. Just letting everyone know I am crashing to desktop in 9.5.0 
>> "stable" (LOL) about very 10 minutes now. No bueno. Going back to 9.0.5.
>> 
>> Bob S
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Challenge: who can background this shell command?

2019-08-02 Thread Dar Scott Consulting via use-livecode
I'm assuming you can send the ^c down the process connection. That is, write to 
the opened process. Wait a bit after that or look at the response, and then 
shut down the polling send-loop and then close the connection if it is not 
already closed, 

It might be that simply closing the connection to the process will cause it to 
shutdown gracefully. However, it would be nice to see the graceful shutdown.

I'd collect the reads and put them in a field on a stack just for monitoring 
the output. You can make it development only or you can make it part of your 
thing. This will allow you to see what is going on. It also allows you to see 
why Dar's idea of sending ^c doesn't work.

> On Aug 2, 2019, at 7:13 AM, David Bovill via use-livecode 
>  wrote:
> 
> Yes - ^c to shut down... but why for update?
> 
> On Thu, 1 Aug 2019 at 19:27, Dar Scott Consulting via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I am not familiar with hugo. Do you type a ^c to shut down hugo server? In
>> that case you might want to consider open for update.
>> 
>>> On Aug 1, 2019, at 12:19 PM, David Bovill via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> OK - I managed to get it to work with:
>>> 
>>>  - open process "/usr/local/bin/hugo server" for read
>>> 
>>> which I did not think would work due to the two word shell command.
>>> 
>>> Timing was an issue - so I had to use the method found here (thanks
>> Mark) -
>>> 
>> https://github.com/livecode/livecode/blob/develop/builder/installer_utilities.livecodescript
>>> -
>>> which uses a send in 20 milliseconds when there is a timeout. basically
>> it
>>> is complex timing logic, but more direct and probably robust than using a
>>> bunch of shell commands we put into the background. Still we have tow
>>> methods that work - restores my faith in the flexibility of Livecode!
>>> 
>>> On Thu, 1 Aug 2019 at 17:15, dsc--- via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
 I feel foolish. From the dictionary:
 
 
 Note: On OS X systems, you can use the open process command to start up
>> an
 application, but not a Unix process. To work with a Unix process, use
>> the
 shell func instead.
 
 When I saw this in the Dictionary, I thought, "Oh, when did this break?"
 
 I should have thought, "Oh, yeah?"
 
 
> On Aug 1, 2019, at 10:03 AM, Dar Scott Consulting via use-livecode <
 use-livecode@lists.runrev.com> wrote:
> 
> So, this is a documentation problem?
> 
>> On Aug 1, 2019, at 9:27 AM, Mark Waddingham via use-livecode <
 use-livecode@lists.runrev.com> wrote:
>> 
>> On 2019-08-01 17:12, David Bovill via use-livecode wrote:
>>> OK - so I have it working by writing to a temporary file.
>>> Trying to redirect the output to stdout - so that shell() return the
>>> information of the background process - but this freezes:
>> 
>> Okay so given you want to read/write to the process you launched it
 seems...
>> 
>> What's wrong with open process? The *only* difference between open
 process
>> on macOS compared to Linux (and Windows) is that if you try and open
 process
>> an app-bundle (i.e. something ending with '.app') it will do the same
>> as
>> launch (as .app bundles aren't executables).
>> 
>> The installer uses open (elevated) process to communicate with an
 instance
>> of itself with elevated permissions. You can see the code for that
>> here:
>> 
>> <
 
>> https://github.com/livecode/livecode/blob/develop/builder/installer_utilities.livecodescript
> 
>> 
>> The key routines are installerRun and installerMonitor (the latter is
 used
>> to poll every 20 milliseconds to check if the child process has
 anything to
>> say).
>> 
>> Warmest Regards,
>> 
>> Mark.
>> 
>> --
>> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
>> LiveCode: Everyone can create apps
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
>>> ___
>>> use-livecode mailing 

Re: "template" stack in custom property

2019-08-02 Thread Klaus major-k via use-livecode
Hi all,

I found a workaround by creating two handlers and use them with a little dealy.

> Am 02.08.2019 um 14:59 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi friends,
> 
> I have done this a lot in the past, but currently got stuck with this in LC 
> 9.5
> I store a stack in a custom property and open it via script like:
> ...
> put "NewJob_" & the seconds into tName
> go invisible stack (the cTemplateStack of this stack)
> ## Works so far, the stack is in -> the openstacks
> 
> ## However NOTHING that comes after that line will ever get executed?
> ## restarted LC a couple of time, no dice...
> 
> ## Even the BREAKPOINT is being ignored!?
> breakpoint
> answer "asfasdasdasdasdasd"
> ...

...
put "NewJob_" & the seconds into tName
send "do_the_rest" to me in 1
go invisible stack (the cTemplateStack of this stack)
...

command do_the_rest
  ## rename template stack 
  ## etc...
end do_the_rest

Too funky!?


Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Polyglot and CodeRunner

2019-08-02 Thread Sean Cole (Pi) via use-livecode
The trouble with this and Peppermint is they are only for MacOS. So it
doesn't really fall into the LC 'code once for all' bracket. Not that it
isn't useful for some individual projects. But it would be even better if
there was a code runner that was PC, Linux and Windows (and even mobile)
friendly. But I definitely see the advantages for it.

Sean Cole
*Pi Digital Productions Ltd*
www.pidigital.co.uk
+44(1634)402193
+44(7702)116447
'Don't try to think outside the box. Just remember the truth: There is no
box!'
'For then you realise it is not the box you are trying to look outside of,
but it is yourself!'

eMail Ts & Cs    Pi Digital
Productions Ltd is a UK registered limited company, no. 5255609


On Fri, 2 Aug 2019 at 14:21, David Bovill via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Does anyone combine Livecode with different programming languages - would
> be interesting to share any experiences. I mainly create wrappers for
> command line tools in Livecode. Sometimes interface with Javascript which I
> want to improve my workflow with.
>
> I was thinking of of extending the way I work with command line tools -
> then saw how https://coderunnerapp.com/ does it - so thought I'd see if we
> can get Livecode to work with CodeRunner first - has anyone done this?
>
>
> *How can I add my own languages to CodeRunner?*CodeRunner's run system is
> based on simple terminal commands, and therefore if you know the terminal
> commands involved in running/compiling code in your language, you can
> easily add it to CodeRunner. To add languages, go to Preferences ->
> Languages, and click the "+" button. In the "Run Command" text box, enter
> the command you use to run the language from the terminal. E.g. if the
> interpreter is called mylang, you would enter mylang $filename here.
>
> If your language uses several commands to run, you can use a CodeRunner
> compile script. Check the box "Language uses compile script" and click the
> "Edit Script..." button. This will open the compile script in the
> CodeRunner editor. The script will contain a further explanation of how to
> use it.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Polyglot and CodeRunner

2019-08-02 Thread David Bovill via use-livecode
Does anyone combine Livecode with different programming languages - would
be interesting to share any experiences. I mainly create wrappers for
command line tools in Livecode. Sometimes interface with Javascript which I
want to improve my workflow with.

I was thinking of of extending the way I work with command line tools -
then saw how https://coderunnerapp.com/ does it - so thought I'd see if we
can get Livecode to work with CodeRunner first - has anyone done this?


*How can I add my own languages to CodeRunner?*CodeRunner's run system is
based on simple terminal commands, and therefore if you know the terminal
commands involved in running/compiling code in your language, you can
easily add it to CodeRunner. To add languages, go to Preferences ->
Languages, and click the "+" button. In the "Run Command" text box, enter
the command you use to run the language from the terminal. E.g. if the
interpreter is called mylang, you would enter mylang $filename here.

If your language uses several commands to run, you can use a CodeRunner
compile script. Check the box "Language uses compile script" and click the
"Edit Script..." button. This will open the compile script in the
CodeRunner editor. The script will contain a further explanation of how to
use it.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Challenge: who can background this shell command?

2019-08-02 Thread David Bovill via use-livecode
Yes - ^c to shut down... but why for update?

On Thu, 1 Aug 2019 at 19:27, Dar Scott Consulting via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I am not familiar with hugo. Do you type a ^c to shut down hugo server? In
> that case you might want to consider open for update.
>
> > On Aug 1, 2019, at 12:19 PM, David Bovill via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > OK - I managed to get it to work with:
> >
> >   - open process "/usr/local/bin/hugo server" for read
> >
> > which I did not think would work due to the two word shell command.
> >
> > Timing was an issue - so I had to use the method found here (thanks
> Mark) -
> >
> https://github.com/livecode/livecode/blob/develop/builder/installer_utilities.livecodescript
> > -
> > which uses a send in 20 milliseconds when there is a timeout. basically
> it
> > is complex timing logic, but more direct and probably robust than using a
> > bunch of shell commands we put into the background. Still we have tow
> > methods that work - restores my faith in the flexibility of Livecode!
> >
> > On Thu, 1 Aug 2019 at 17:15, dsc--- via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> I feel foolish. From the dictionary:
> >>
> >>
> >> Note: On OS X systems, you can use the open process command to start up
> an
> >> application, but not a Unix process. To work with a Unix process, use
> the
> >> shell func instead.
> >>
> >> When I saw this in the Dictionary, I thought, "Oh, when did this break?"
> >>
> >> I should have thought, "Oh, yeah?"
> >>
> >>
> >>> On Aug 1, 2019, at 10:03 AM, Dar Scott Consulting via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>>
> >>> So, this is a documentation problem?
> >>>
>  On Aug 1, 2019, at 9:27 AM, Mark Waddingham via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> 
>  On 2019-08-01 17:12, David Bovill via use-livecode wrote:
> > OK - so I have it working by writing to a temporary file.
> > Trying to redirect the output to stdout - so that shell() return the
> > information of the background process - but this freezes:
> 
>  Okay so given you want to read/write to the process you launched it
> >> seems...
> 
>  What's wrong with open process? The *only* difference between open
> >> process
>  on macOS compared to Linux (and Windows) is that if you try and open
> >> process
>  an app-bundle (i.e. something ending with '.app') it will do the same
> as
>  launch (as .app bundles aren't executables).
> 
>  The installer uses open (elevated) process to communicate with an
> >> instance
>  of itself with elevated permissions. You can see the code for that
> here:
> 
>  <
> >>
> https://github.com/livecode/livecode/blob/develop/builder/installer_utilities.livecodescript
> >>>
> 
>  The key routines are installerRun and installerMonitor (the latter is
> >> used
>  to poll every 20 milliseconds to check if the child process has
> >> anything to
>  say).
> 
>  Warmest Regards,
> 
>  Mark.
> 
>  --
>  Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
>  LiveCode: Everyone can create apps
> 
>  ___
>  use-livecode mailing list
>  use-livecode@lists.runrev.com
>  Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
>  http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> >>>
> >>>
> >>> ___
> >>> use-livecode mailing list
> >>> use-livecode@lists.runrev.com
> >>> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >>> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


"template" stack in custom property

2019-08-02 Thread Klaus major-k via use-livecode
Hi friends,

I have done this a lot in the past, but currently got stuck with this in LC 9.5
I store a stack in a custom property and open it via script like:
...
put "NewJob_" & the seconds into tName
go invisible stack (the cTemplateStack of this stack)
## Works so far, the stack is in -> the openstacks

## However NOTHING that comes after that line will ever get executed?
## restarted LC a couple of time, no dice...

## Even the BREAKPOINT is being ignored!?
breakpoint
answer "asfasdasdasdasdasd"
...

What's wrong with this?
Any hints much appreciated!


Best

Klaus
--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode