Re: Loading large files into browser widget

2019-07-04 Thread J. Landman Gay via use-livecode

On 7/1/19 11:47 AM, Richard Gaskin via use-livecode wrote:
Curious: how long does it take to load the document in Chrome on the 
same device?


Didn't get a moment to check until now. I had to count in my head, but 
it's about 4-5 seconds in Firefox. Maybe 8-10 seconds in Chrome.


13 minutes in Chrome on my Pixel.

--
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: Symantec quarantining LiveCode standalone on client's machine

2019-07-04 Thread JJS via use-livecode
I did Software service for a few years as part of my previous job, also 
on-site.


And there are many more programs who have these issues with AV programs.

And sometimes it is needed to stop using Norton or AVG or whatever just 
to get the program running they need to work with.


Op 4-7-2019 om 03:36 schreef Mike Kerner via use-livecode:

We had the same problem with our Norton installs having issues with our
LC-built apps, even when installing an update to the same app.  We never
were able to fix it, even with code signing.  We still had to go into
Norton, find the quarrantine, and whitelist the app.
Switching AV was our solution, but I get that you can't tell your customers
to do that.

On Wed, Jul 3, 2019 at 11:58 AM Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:


It's possible that the long history between Kaspersky principals and GRU
officials ended when they opened an office in a different country.

I recognize such issues are complex, and no intelligence, even
corroborated by multiple allies, is perfect.

For myself, I do what I can to say on top of threat assessment, and
choose my vendors with care.

When I'm giving root access to my systems, many of which are entry
points to public-facing systems for clients, I avoid even potential
risks where I have the opportunity to do so.

--
   Richard Gaskin
   Fourth World Systems


JJS wrote:

  > Kaspersky has moved their headquarters to Switserland for that reason,
  > as they claim to have nothing to do with the Kremlin.
  >
  > As far as i have read somewhere a time ago.
  >
  > Op 3-7-2019 om 17:45 schreef Richard Gaskin via use-livecode:
  >> Bob Sneidar wrote:
  >>
  >> > That being said, no one solution is a catch all. We use
  >> > Kaspersky...
  >>
  >> Russians have a very good reputation for technical achievement, but
  >> large Russian companies exist in an environment that often requires
  >> compromising their business objectives to serve the goals of the
  >> Kremlin.
  >>
  >>
  >> Kaspersky Lab Antivirus Software Is Ordered Off U.S. Government
  >> Computers
  >>

https://www.nytimes.com/2017/09/13/us/politics/kaspersky-lab-antivirus-federal-government.html

  >>
  >>
  >>
  >> FBI pushes private sector to cut ties with Kaspersky
  >>

https://www.cyberscoop.com/fbi-kaspersky-private-sector-briefings-yarovaya-laws/

  >>
  >>
  >>
  >> In this new era of information warfare, extreme caution is advised.
  >>


___
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: Rename object

2019-07-04 Thread Richmond via use-livecode

Virtual Kisses!

That rocks so completely I am almost in love with you . . .

 . . . almost because:

1. I believe in marital vows, and, unfashionably, love my wife after 28 
years of marriage.


2. Am 98% heterosexual (anyone who says they are 100% is being 
disingenuous).


Richmond.

On 4.07.19 19:33, Dar Scott Consulting via use-livecode wrote:

Would this work?

clone control "gizmo" as "blivet"



On Jul 4, 2019, at 10:04 AM, doc hawk via use-livecode 
 wrote:


On Jul 4, 2019, at 1:30 AM, Klaus major-k via use-livecode 
 wrote:

set the name of last img to “XXX_2"

Also

clone control “gizmo”
set the  name of it to “blivet"

Will  handle your new object.

If I’m going to work with the  new object for a few lines, I always use

put the long id of it into tgTg

As the next  line, just in case I do something  that changes “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: Rename object

2019-07-04 Thread Richmond via use-livecode

Hmphf . . .

. . . feeling fairly 'pseudo' myself, and stumping off to work my way 
through something
a bit more worthwhile, like, "Le Recherche Sur Les Verites" by Nicholas 
Malebranche
(OK, OK, I admit it, I'm reading the Lennon and Olscamp English 
translation), which,

frankly, rocks.

Richmond.

On 4.07.19 18:16, dunbarxx via use-livecode wrote:

Richmond.

  (pseudo)

Duplicate object
set the name of last object to the short name of the last object & the
number of thatObjectType + 1

Note that as of v.8, and this is an known issue, the keyword "last" may not
support groups. I am not sure if this has been fixed in v.9.

Craig



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: Rename object

2019-07-04 Thread Richmond via use-livecode
"it" is, quite frankly, both a bore and something that makes 9-11 year 
olds wish that
Paiget were not dead, but were on hand to explain things (and as the 
average 9-11 year old

is not up-to-speed in Swiss French . . . ), or, at a push, Seymour Papert.

While I am, arguably, at the stage of abstract thinking, most of my 
educational charges are, most

definitely, not. ;-)

Richmond.

On 4.07.19 15:57, Trevor DeVore via use-livecode wrote:

On Thu, Jul 4, 2019 at 4:27 AM Richmond via use-livecode <
use-livecode@lists.runrev.com> wrote:


I've lost this . . . having done it several times before . . .

So: I duplicate an object, let's call it img "XXX", so I end up with
2 objects called "XXX" (which is problematic), and I wish to
rename the new version of "XXX" . . .

err . . .

set the name of the last/recent/latest/headache


After using “copy” a reference to the new object is stored in the “it”
variable.

set the name of it to “NEWNAME”




___
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: Rename object

2019-07-04 Thread Richmond via use-livecode

Almost completely 'done'. 8-)

Where would I be without your help throughout the years (well, about 18 
at my last count)?


No! Don't answer that one; it's rhetorical.

Richmond.

On 4.07.19 15:26, Klaus major-k via use-livecode wrote:

Hi Richmond,


Am 04.07.2019 um 14:14 schrieb Richmond via use-livecode 
:

However . . .

If I do this:

onmouseUp
setthelockScreentotrue
setthemoveSpeedto65000
putitem 1 ofthemouseLocintoML1
putitem 2 ofthemouseLocintoML2
moveimg "mill" toML1, ML2
copyimg "mill" togroup"map"
setthenameoflast image to("mill" & ML1 & "," & ML2)
setthemoveSpeedto200
setthelockScreentofalse
endmouseUp

The "funny" thing is that the image that gets renamed is NOT the clone in the 
group, but
the original one.

Hey, you did not mention GROUP in your first posting! 8-)

The groups layer is obviously LOWER that the one of your image-to-be-copied in 
this case,
so just add:
...
set the name of last image OF GRP "map" to ("mill" & ML1 & "," & ML2)
...
and you are done.


Richmond.

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: Rename object

2019-07-04 Thread Dar Scott Consulting via use-livecode
Would this work?

clone control "gizmo" as "blivet"


> On Jul 4, 2019, at 10:04 AM, doc hawk via use-livecode 
>  wrote:
> 
> 
> On Jul 4, 2019, at 1:30 AM, Klaus major-k via use-livecode 
>  wrote:
>> 
>> set the name of last img to “XXX_2"
> 
> Also
> 
> clone control “gizmo”
> set the  name of it to “blivet"
> 
> Will  handle your new object.
> 
> If I’m going to work with the  new object for a few lines, I always use
> 
> put the long id of it into tgTg
> 
> As the next  line, just in case I do something  that changes “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

Re: Rename object

2019-07-04 Thread doc hawk via use-livecode

On Jul 4, 2019, at 1:30 AM, Klaus major-k via use-livecode 
 wrote:
> 
> set the name of last img to “XXX_2"

Also

clone control “gizmo”
set the  name of it to “blivet"

Will  handle your new object.

If I’m going to work with the  new object for a few lines, I always use

put the long id of it into tgTg

As the next  line, just in case I do something  that changes “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: Rename object

2019-07-04 Thread dunbarxx via use-livecode
Richmond.

 (pseudo)

Duplicate object
set the name of last object to the short name of the last object & the
number of thatObjectType + 1

Note that as of v.8, and this is an known issue, the keyword "last" may not
support groups. I am not sure if this has been fixed in v.9.

Craig



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: Rename object

2019-07-04 Thread Trevor DeVore via use-livecode
On Thu, Jul 4, 2019 at 4:27 AM Richmond via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I've lost this . . . having done it several times before . . .
>
> So: I duplicate an object, let's call it img "XXX", so I end up with
> 2 objects called "XXX" (which is problematic), and I wish to
> rename the new version of "XXX" . . .
>
> err . . .
>
> set the name of the last/recent/latest/headache


After using “copy” a reference to the new object is stored in the “it”
variable.

>
set the name of it to “NEWNAME”

-- 
Trevor DeVore
ScreenSteps
___
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: name vs short name

2019-07-04 Thread Klaus major-k via use-livecode
Hi all,

> Am 04.07.2019 um 14:31 schrieb Sean Cole (Pi) via use-livecode 
> :
> 
> Klaus,
> 
> you are right! The dictionary entry is wrong.
> 
> It would not make logical sense to be able to set the short name of
> something just as it is not logical to set the long or abbreviated name of
> it. Hence why we have ONLY set the name of it. The 'short' keyword would be
> superfluous.
> 
> But the dictionary should have the examples the other way round.
> 
> Sean Cole
> *Pi Digital*

looks like I already reported/"enhancement requested" this five years ago. 8-)

I just added a comment.


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: name vs short name

2019-07-04 Thread Sean Cole (Pi) via use-livecode
It is possible to make it an optional keyword though.
set the [short] name of  to 

Sean Cole


On Thu, 4 Jul 2019 at 13:29, Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
>
> > Am 04.07.2019 um 14:22 schrieb Klaus major-k via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > Hi Paul,
> >
> >> Am 04.07.2019 um 14:12 schrieb Paul Dupuis via use-livecode <
> use-livecode@lists.runrev.com>:
> >>
> >> No it is not consistent, but some of the syntax was baked into Metacard
> long ago,
> >> often in response to some specific customer asking for a way to do some
> specific thing.
> >> Remember, Metacard was effectively a product of a single person.
> >
> > Yes, I am using Dr. Raneys wonderful piece of software since 1999. :-)
> >
> >> For LiveCode to change it now would break far fr too many existing
> stacks
> >
> > Au contraire, mon ami!
> >
> > Simply because this (being able to set the SHORT name of an object) is
> not allowed until now,
> > but would make a lot of sense!
> >
> > So this would be an addition and nothing that might break older syntax.
>
> Of course I did not mean to replace:
> set the name of img 1 to "xxx"
> with
> set the short name of img 1 to "xxx"
>
> I just wanted to be able to ALSO use that (way more logical) syntax.
>
>
> 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: name vs short name

2019-07-04 Thread Sean Cole (Pi) via use-livecode
Klaus,

you are right! The dictionary entry is wrong.

It would not make logical sense to be able to set the short name of
something just as it is not logical to set the long or abbreviated name of
it. Hence why we have ONLY set the name of it. The 'short' keyword would be
superfluous.

But the dictionary should have the examples the other way round.

Sean Cole
*Pi Digital*


On Thu, 4 Jul 2019 at 11:03, Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi friends,
>
> this is on my mind for a very long time.
>
> put the name of img 1 -> image "xyz"
> put the short name of img 1 -> xyz
>
> However:
> set the short name of img 1 to "xyz2" -> compilation error, see below...
>
> We have to:
> set the name of img 1 to "xyz2"
>
> This does not seem logical at all to me!?
>
> Can someone please explain in a comprehensible (sic!) way why this is so?
> :-)
>
> BTW:
> Looks like the dictionary is wrong here (or am I missing something
> obvious?)
> Entry about name:
> ...
> set the [{ long | abbreviated | short }] name of object to string
> ...
> ?
>
> I tried:
> set the long name of btn 1 to "hello sailor!"
> set the abbreviated name of btn 1 to "hello sailor!"
> set the short name of btn 1 to "hello sailor!"
>
> And got "Compilation error: can't set this property..." in all three cases.
>
> Thanks a lot in advance!
>
>
> 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: name vs short name

2019-07-04 Thread Klaus major-k via use-livecode



> Am 04.07.2019 um 14:22 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi Paul,
> 
>> Am 04.07.2019 um 14:12 schrieb Paul Dupuis via use-livecode 
>> :
>> 
>> No it is not consistent, but some of the syntax was baked into Metacard long 
>> ago,
>> often in response to some specific customer asking for a way to do some 
>> specific thing. 
>> Remember, Metacard was effectively a product of a single person.
> 
> Yes, I am using Dr. Raneys wonderful piece of software since 1999. :-)
> 
>> For LiveCode to change it now would break far fr too many existing stacks
> 
> Au contraire, mon ami! 
> 
> Simply because this (being able to set the SHORT name of an object) is not 
> allowed until now, 
> but would make a lot of sense! 
> 
> So this would be an addition and nothing that might break older syntax.

Of course I did not mean to replace:
set the name of img 1 to "xxx"
with
set the short name of img 1 to "xxx"

I just wanted to be able to ALSO use that (way more logical) syntax.


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: Rename object

2019-07-04 Thread Klaus major-k via use-livecode
Hi Richmond,

> Am 04.07.2019 um 14:14 schrieb Richmond via use-livecode 
> :
> 
> However . . .
> 
> If I do this:
> 
> onmouseUp
> setthelockScreentotrue
> setthemoveSpeedto65000
> putitem 1 ofthemouseLocintoML1
> putitem 2 ofthemouseLocintoML2
> moveimg "mill" toML1, ML2
> copyimg "mill" togroup"map"
> setthenameoflast image to("mill" & ML1 & "," & ML2)
> setthemoveSpeedto200
> setthelockScreentofalse
> endmouseUp
> 
> The "funny" thing is that the image that gets renamed is NOT the clone in the 
> group, but
> the original one.

Hey, you did not mention GROUP in your first posting! 8-)

The groups layer is obviously LOWER that the one of your image-to-be-copied in 
this case,
so just add:
...
set the name of last image OF GRP "map" to ("mill" & ML1 & "," & ML2)
...
and you are done.

> Richmond.

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: name vs short name

2019-07-04 Thread Klaus major-k via use-livecode
Hi Paul,

> Am 04.07.2019 um 14:12 schrieb Paul Dupuis via use-livecode 
> :
> 
> No it is not consistent, but some of the syntax was baked into Metacard long 
> ago,
> often in response to some specific customer asking for a way to do some 
> specific thing. 
> Remember, Metacard was effectively a product of a single person.

Yes, I am using Dr. Raneys wonderful piece of software since 1999. :-)

> For LiveCode to change it now would break far fr too many existing stacks

Au contraire, mon ami! 

Simply because this (being able to set the SHORT name of an object) is not 
allowed until now, 
but would make a lot of sense! 

So this would be an addition and nothing that might break older syntax.

> On 7/4/2019 6:03 AM, Klaus major-k via use-livecode wrote:
>> Hi friends,
>> 
>> this is on my mind for a very long time.
>> 
>> put the name of img 1 -> image "xyz"
>> put the short name of img 1 -> xyz
>> 
>> However:
>> set the short name of img 1 to "xyz2" -> compilation error, see below...
>> 
>> We have to:
>> set the name of img 1 to "xyz2"
>> 
>> This does not seem logical at all to me!?
>> 
>> Can someone please explain in a comprehensible (sic!) way why this is so? :-)
>> 
>> BTW:
>> Looks like the dictionary is wrong here (or am I missing something obvious?)
>> Entry about name:
>> ...
>> set the [{ long | abbreviated | short }] name of object to string
>> ...
>> ?
>> 
>> I tried:
>> set the long name of btn 1 to "hello sailor!"
>> set the abbreviated name of btn 1 to "hello sailor!"
>> set the short name of btn 1 to "hello sailor!"
>> 
>> And got "Compilation error: can't set this property..." in all three cases.
>> 
>> Thanks a lot in advance!

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: Rename object

2019-07-04 Thread Richmond via use-livecode

However . . .

If I do this:

onmouseUp

setthelockScreentotrue

setthemoveSpeedto65000

putitem 1 ofthemouseLocintoML1

putitem 2 ofthemouseLocintoML2

moveimg "mill" toML1, ML2

copyimg "mill" togroup"map"

setthenameoflast image to("mill" & ML1 & "," & ML2)

setthemoveSpeedto200

setthelockScreentofalse

endmouseUp


The "funny" thing is that the image that gets renamed is NOT the clone 
in the group, but


the original one.


Richmond.



On 4.07.19 11:30, Klaus major-k via use-livecode wrote:

Hi Richmond,


Am 04.07.2019 um 10:26 schrieb Richmond via use-livecode 
:

I've lost this . . . having done it several times before . . .

So: I duplicate an object, let's call it img "XXX", so I end up with
2 objects called "XXX" (which is problematic), and I wish to
rename the new version of "XXX" . . .
err . . .
set the name of the last/recent/latest/headache

...
set the name of last img to "XXX_2"
...


Richmond.

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: name vs short name

2019-07-04 Thread Paul Dupuis via use-livecode
No it is not consistent, but some of the syntax was baked into Metacard 
long ago, often in response to some specific customer asking for a way 
to do some specific thing. Remember, Metacard was effectively a product 
of a single person.


For LiveCode to change it now would break far fr too many existing stacks



On 7/4/2019 6:03 AM, Klaus major-k via use-livecode wrote:

Hi friends,

this is on my mind for a very long time.

put the name of img 1 -> image "xyz"
put the short name of img 1 -> xyz

However:
set the short name of img 1 to "xyz2" -> compilation error, see below...

We have to:
set the name of img 1 to "xyz2"

This does not seem logical at all to me!?

Can someone please explain in a comprehensible (sic!) way why this is so? :-)

BTW:
Looks like the dictionary is wrong here (or am I missing something obvious?)
Entry about name:
...
set the [{ long | abbreviated | short }] name of object to string
...
?

I tried:
set the long name of btn 1 to "hello sailor!"
set the abbreviated name of btn 1 to "hello sailor!"
set the short name of btn 1 to "hello sailor!"

And got "Compilation error: can't set this property..." in all three cases.

Thanks a lot in advance!


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: Do variable vs field as AppleScript

2019-07-04 Thread David V Glasgow via use-livecode
Thanks, Bob, that’s what I suspected.

From the UI point of view, its just feels a bit clunky - combined with being 
uncertain about whether the speechrecognitionserver is still working or whether 
recognition has failed, and whether the human  needs to repeat the phrase or 
not.

Maybe I am conflating two issues, but I wondered whether I could get it all to 
be a bit more brisk.

Cheers,

David G

> On 3 Jul 2019, at 3:55 pm, Bob Sneidar via use-livecode 
>  wrote:
> 
> Relative to the speech recognition, and there only being several hundred 
> iterations, I would say hardly. if it added 20 milliseconds to a process that 
> takes many tens of minutes (I suspect the speech has to be uttered in real 
> time) I hardly call that a delay. 
> 
> Bob S
> 
> 
>> On Jul 3, 2019, at 03:28 , David V Glasgow via use-livecode 
>>  wrote:
>> 
>> I have a script which in the fullness of time will repeatedly (several 
>> hundred times) run a list of commands as an Applescript.  It will take a 
>> fair bit of time to loop through because each iteration involves speech 
>> recognition.
>> 
>> My question is, will there be any meaningful speed advantage to storing the 
>> AppleScript in a variable rather than field?  This doesn’t mean finishing 
>> all 340 iterations faster, because the slowdown is the human thinking about 
>> the question and giving a response.  I’m thinking about a bit more 
>> responsivity from 
>> 
>> tell application "SpeechRecognitionServer"
>>  local tresult, choicesLanguageModel, titem
>>  set choicesLanguageModel to {"false", "slightly true", "mainly true", 
>> "very true"}
>> set tPrompt to "item 6"
>>  set tresult to listen for choicesLanguageModel with prompt tPrompt 
>> giving up after 30
>>  say tresult
>>  return tresult
>> end tell
>> 
>> (I should say that the line "set tPrompt to "item 6”” looks a bit weird 
>> because it is incremented under script control, and when that happens the 
>> indent is lost.)
>> 
>> I know I could test, but if someone just knows….
>> 
>> Cheers
>> 
>> David Glasgow
> 
> ___
> 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: Rename object

2019-07-04 Thread Klaus major-k via use-livecode
Hi Richmond,

> Am 04.07.2019 um 14:02 schrieb Richmond via use-livecode 
> :
> 
> Thank you, Klaus,
> 
> makes me feel even more stupid than I was feeling already. ;-)

you are welcome! :-D

> Richmond.

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: Rename object

2019-07-04 Thread Richmond via use-livecode

Thank you, Klaus,

makes me feel even more stupid than I was feeling already. ;-)

Richmond.

On 4.07.19 11:30, Klaus major-k via use-livecode wrote:

Hi Richmond,


Am 04.07.2019 um 10:26 schrieb Richmond via use-livecode 
:

I've lost this . . . having done it several times before . . .

So: I duplicate an object, let's call it img "XXX", so I end up with
2 objects called "XXX" (which is problematic), and I wish to
rename the new version of "XXX" . . .
err . . .
set the name of the last/recent/latest/headache

...
set the name of last img to "XXX_2"
...


Richmond.

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


name vs short name

2019-07-04 Thread Klaus major-k via use-livecode
Hi friends,

this is on my mind for a very long time.

put the name of img 1 -> image "xyz"
put the short name of img 1 -> xyz

However:
set the short name of img 1 to "xyz2" -> compilation error, see below...

We have to:
set the name of img 1 to "xyz2"

This does not seem logical at all to me!?

Can someone please explain in a comprehensible (sic!) way why this is so? :-)

BTW: 
Looks like the dictionary is wrong here (or am I missing something obvious?)
Entry about name:
...
set the [{ long | abbreviated | short }] name of object to string
...
?

I tried:
set the long name of btn 1 to "hello sailor!"
set the abbreviated name of btn 1 to "hello sailor!"
set the short name of btn 1 to "hello sailor!"

And got "Compilation error: can't set this property..." in all three cases.

Thanks a lot in advance!


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: Rename object

2019-07-04 Thread Sean Cole (Pi) via use-livecode
local tList
repeat with rImgNum = 1 to the number of images [in card "x"]
if the short name of img rImgNum is among the lines of tList then
set the name of img rImgNum to the name of tImg rImgNum & "x"
end if
put the short name of img rImgNum into line rImgNum of tList
end repeat
-- Done!

Sean Cole
*Pi Digital Productions Ltd*
'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!'


On Thu, 4 Jul 2019 at 09:30, Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Richmond,
>
> > Am 04.07.2019 um 10:26 schrieb Richmond via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > I've lost this . . . having done it several times before . . .
> >
> > So: I duplicate an object, let's call it img "XXX", so I end up with
> > 2 objects called "XXX" (which is problematic), and I wish to
> > rename the new version of "XXX" . . .
> > err . . .
> > set the name of the last/recent/latest/headache
>
> ...
> set the name of last img to "XXX_2"
> ...
>
> > Richmond.
>
> 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: Rename object

2019-07-04 Thread Klaus major-k via use-livecode
Hi Richmond,

> Am 04.07.2019 um 10:26 schrieb Richmond via use-livecode 
> :
> 
> I've lost this . . . having done it several times before . . .
> 
> So: I duplicate an object, let's call it img "XXX", so I end up with
> 2 objects called "XXX" (which is problematic), and I wish to
> rename the new version of "XXX" . . .
> err . . .
> set the name of the last/recent/latest/headache

...
set the name of last img to "XXX_2"
...

> Richmond.

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


Rename object

2019-07-04 Thread Richmond via use-livecode

I've lost this . . . having done it several times before . . .

So: I duplicate an object, let's call it img "XXX", so I end up with
2 objects called "XXX" (which is problematic), and I wish to
rename the new version of "XXX" . . .

err . . .

set the name of the last/recent/latest/headache

Richmond.

___
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