Re: Find Replace in Script Editor with cr

2021-04-05 Thread Sean Cole (Pi) via use-livecode
Bob, Regex only appears to operate on the read of the text, so
;
in the *find* field will locate all of the places a semicolon is found, but
putting
/n
into the *replace* field will not replace the ; with a cr

Brian, The project is huge and I don't yet have the time to invest in
porting it all to github just yet. As it is I have created my own simple
regex text operator that I copy/paste the script into.

https://www.dropbox.com/s/glq6pco70d3zgt3/Screenshot%202021-04-06%20at%2006.21.22.png?dl=0

Richard, I've tried in the Find, Find and replace of the script editor and
the Find/Replace from the main menu. I can't seem to place a carriage
return (or line feed or whatever) into the replacement field. This is what
I am trying to achieve. Replace ";" with "cr" in myScript. I can do it in
code, but not from the find/replace windows. :(

Sean
___
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: Help! I'm stuck

2021-04-05 Thread William Prothero via use-livecode
Hot Dang! It built the App. 
Sean and Jacqueline, you made my day!
Thanks!
Bill

> On Apr 4, 2021, at 6:08 AM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> You can also turn off messages and errors from the Toolbar before you
> build. This should prevent any pre/open or pre/close scripts from running.
> And make sure all inspectors, message box and project browser are closed
> too as well as any windows/stacks other than your main stack.
> 
> Sean
> 
> On Sun, 4 Apr 2021 at 13:57, Sean Cole (Pi)  wrote:
> 
>> ResolveID is referring to the stack, card and object IDs to tie it to your
>> breakpoints.
>> 
>> Focus on your main stack. In the Development menu bar, choose Clear All
>> Breakpoints. It’s a good idea to do this every time before a main
>> standalone build.
>> 
>> So, Delete all your breakpoints. Then resave. (Close and reopen your stack
>> and LC if you like). Rebuild. It will be ok.
>> 
>> Sean
>> 
>> On Sun, 4 Apr 2021 at 01:10, William Prothero via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Matthias, or anybody:
>>> 
>>> I got side-tracked but am back to needing to build this standalone and
>>> guess what the error message from the builder means. This build problem has
>>> been known for some time, as Matthias kindly notified me.
>>> 
>>> My question is:Is it possible to tell what stacks are causing the
>>> problem, from the builder error codes. I have But it seems a bit odd that I
>>> would have to disable the preopenStack, openstack, closestack, preopencard,
>>> opencard, etc, etc ad-nauseum.
>>> 
>>> Before I cause myself a bunch of thrashing around changing a bunch of
>>> stacks, is there anything in the error dialog that’s attached that would
>>> give me a hint as to where this is happening? Also, I wonder if disabling
>>> all these open …. handlers during build might cause build problems. If it
>>> was a universal problem/bug, I would think it would have been fixed by LC
>>> version 9.6.2 (RC3).???
>>> 
>>> Thanks for any insight and direction. (I”m on Big Sur 11.2.2). I have 10
>>> stacks and a number of script only lib stacks in this project.
>>> 
>>> Bill
>>> 
>>> Links to the error dialog:
>>> page 1: https://www.dropbox.com/s/f4bmxx3zkuoy0zq/ErrorWindow-p1.png?dl=0
>>> 
>>> page 2: https://www.dropbox.com/s/zc18s3gkzv92w2w/Errors-page-2.pdf?dl=0
>>> 
>>> 
 On Mar 20, 2021, at 1:38 PM, matthias rebbe via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
 
 Bill,
 
 i've just checked the release notes of 9.0.x
 The release notes of 9.0.2 contain updated information about this topic
>>> and an enhanced script example.
 opencard scripts should also be adjusted.
 https://downloads.livecode.com/livecode/9_0_2/LiveCodeNotes-9_0_2.pdf
 
 Please excuse me for pointing to 9.0.1rc1 release notes yesterday.
 
 
 Regards
 Matthias
 
 
 
 
 
 
 -
 Matthias Rebbe
 Life Is Too Short For Boring Code
 
> Am 20.03.2021 um 18:22 schrieb William Prothero via use-livecode <
>>> use-livecode@lists.runrev.com>:
> 
> Matthias:
> I see that openstack and closestack messages are inhibited during
>>> application build, using:
> 
> on closeStack
> if the mode of stack “revStandaloneProgress” > 0 then
> exit closeStack
> end if
> end
> 
> So, before I start adding this to all openstack, closestack, scripts
>>> of my 12 stacks, I'm’ wondering if I could mess up the build process by
>>> by-passing some of the scripts in these handlers. Is there any way to tell
>>> more precisely what is causing the problem? Any recommendations on
>>> strategy? Should I just change one stack at a time and look for changes in
>>> the error window, or just change all them and wonder what affect that would
>>> have on the integrity of the build process?
> 
> Also, opencard scripts are also called when a stack in launched and I
>>> wonder if those need to be escaped too.
> 
> Best,
> Bill
> 
>> On Mar 19, 2021, at 5:46 PM, matthias rebbe via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>> 
>> Another thing. I am not sure if your problems are also a result of
>>> the following, but you could giv it a try.
>> 
>> There was something changed in Standalonebuilder process starting  in
>>> LC 9.0 or so to fix a problem. But this fix could cause other problems in
>>> some situation.
>> While before that fix the main stacks did not receive any openstack
>>> and closestack messages during standalone build, now with the fixed
>>> standalone builder they do.
>> Therefore some lines of code need to be added to avoid this.
>> 
>> See here on page 2 for an explanation what you have to add to your
>>> openstack and closestack handler
>> 
>>> 

Re: Help! I'm stuck

2021-04-05 Thread William Prothero via use-livecode
Thanks so much, Sean and Jacqueline!
I’ll try that.
Bill

> On Apr 4, 2021, at 9:04 AM, J. Landman Gay via use-livecode 
>  wrote:
> 
> It's not a bug, it was intentionally introduced to allow a couple of 
> features, like retaining script local variables after a build. Given the 
> amount of extra scripting to work around it for existing stacks, I think it 
> may have introduced more problems than it tried to cure.
> 
> I did try turning off messages before a build but it didn't work.
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On April 3, 2021 7:13:25 PM William Prothero via use-livecode 
>  wrote:
> 
>> Also, I wonder if disabling all these open …. handlers during build might 
>> cause build problems. If it was a universal problem/bug, I would think it 
>> would have been fixed by LC version 9.6.2 (RC3).???
> 
> 
> 
> 
> ___
> 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

William Prothero
waproth...@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: Find Replace in Script Editor with cr

2021-04-05 Thread Richard Gaskin via use-livecode

The Find feature in the Script Editor is limited to the script being viewed.

For larger-scope searches type Cmd-F in any other window.

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: Find Replace in Script Editor with cr

2021-04-05 Thread Brian Milby via use-livecode
If using Atom would be helpful for your task, then ScriptTracker could 
facilitate that:

https://github.com/bwmilby/scriptTracker

It exports all of the scripts of a stack to files and can watch that directory 
for changes and automatically import the changes back into the stack.  (I would 
be curious at the performance on a project that large.)

Another option would be to use the code from button 1003 as inspiration to 
write a script that would make your change in all scripts in a stack (thinking 
of the logic that I used to get to every script of a stack without going into 
shared objects more than once).

I know you didn’t want to deal with doing it in code, but just wanted to offer 
a possibility.

Thanks,
Brian

Sent from my iPhone

> On Apr 5, 2021, at 11:44 AM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> No. I mean using the find/replace tool panel of the script editor to insert
> line feed characters to create a new line.
> 
> For instance, suppose I have multiple commands on one line separated by ;
> and I want to search for semicolon and replace with semicolon followed by
> return character to drop the remaining script onto a new line. That kind of
> thing. It’s just easier than taking the whole script and pasting into
> another text editor to do the same operation. With 17,000 scripts to go
> through, it’s a bit tedious doing it by copy paste fix copy paste all the
> time.
> 
>> On Mon, 5 Apr 2021 at 15:22, Craig Newman via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> Of course you have to extract the script first (it is a property) then
>> work it, then reset the property/
>> 
>> Craig
>> 
>>> On Apr 3, 2021, at 1:43 PM, Sean Cole (Pi) via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Hi all,
>>> 
>>> Just wondering if there is a way of replacing using cr in the
>> find/replace
>>> panel of the script editor. For example, I have a lot of instances in my
>>> inherited code that has 'then put' ... that I want to put over two lines
>>> and then, if necessary add an end if later on. Is there a way to insert a
>>> cr between 'then' and 'put' from the panel? It would be useful to know
>> for
>>> other things too.
>>> 
>>> Cheers
>>> 
>>> Sean
>>> ___
>>> 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
>> 
> -- 
> Pi Digital
> ___
> 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: Find Replace in Script Editor with cr

2021-04-05 Thread Bob Sneidar via use-livecode
Probably want to use regex then. 

Bob S


> On Apr 5, 2021, at 08:42 , Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> No. I mean using the find/replace tool panel of the script editor to insert
> line feed characters to create a new line.
> 
> For instance, suppose I have multiple commands on one line separated by ;
> and I want to search for semicolon and replace with semicolon followed by
> return character to drop the remaining script onto a new line. That kind of
> thing. It’s just easier than taking the whole script and pasting into
> another text editor to do the same operation. With 17,000 scripts to go
> through, it’s a bit tedious doing it by copy paste fix copy paste all the
> time.

___
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: Find Replace in Script Editor with cr

2021-04-05 Thread Sean Cole (Pi) via use-livecode
No. I mean using the find/replace tool panel of the script editor to insert
line feed characters to create a new line.

For instance, suppose I have multiple commands on one line separated by ;
and I want to search for semicolon and replace with semicolon followed by
return character to drop the remaining script onto a new line. That kind of
thing. It’s just easier than taking the whole script and pasting into
another text editor to do the same operation. With 17,000 scripts to go
through, it’s a bit tedious doing it by copy paste fix copy paste all the
time.

On Mon, 5 Apr 2021 at 15:22, Craig Newman via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Of course you have to extract the script first (it is a property) then
> work it, then reset the property/
>
> Craig
>
> > On Apr 3, 2021, at 1:43 PM, Sean Cole (Pi) via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hi all,
> >
> > Just wondering if there is a way of replacing using cr in the
> find/replace
> > panel of the script editor. For example, I have a lot of instances in my
> > inherited code that has 'then put' ... that I want to put over two lines
> > and then, if necessary add an end if later on. Is there a way to insert a
> > cr between 'then' and 'put' from the panel? It would be useful to know
> for
> > other things too.
> >
> > Cheers
> >
> > Sean
> > ___
> > 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
>
-- 
Pi Digital
___
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] This Week in LiveCode 261

2021-04-05 Thread panagiotis merakos via use-livecode
Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #261 here: https://bit.ly/3fHxxNW

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project. New issues will be
released weekly on Mondays. We have a dedicated mailing list that will
deliver each issue directly to your e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.

-- 
Panagiotis Merakos 
LiveCode Software Developer

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


Re: Find Replace in Script Editor with cr

2021-04-05 Thread Craig Newman via use-livecode
Of course you have to extract the script first (it is a property) then work it, 
then reset the property/

Craig

> On Apr 3, 2021, at 1:43 PM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> Hi all,
> 
> Just wondering if there is a way of replacing using cr in the find/replace
> panel of the script editor. For example, I have a lot of instances in my
> inherited code that has 'then put' ... that I want to put over two lines
> and then, if necessary add an end if later on. Is there a way to insert a
> cr between 'then' and 'put' from the panel? It would be useful to know for
> other things too.
> 
> Cheers
> 
> Sean
> ___
> 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: Find Replace in Script Editor with cr

2021-04-05 Thread Craig Newman via use-livecode
Hi.

Do you mean something like “replace “then put” with “then /“ & return & “put” 
in yourScript?

> On Apr 3, 2021, at 1:43 PM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> Hi all,
> 
> Just wondering if there is a way of replacing using cr in the find/replace
> panel of the script editor. For example, I have a lot of instances in my
> inherited code that has 'then put' ... that I want to put over two lines
> and then, if necessary add an end if later on. Is there a way to insert a
> cr between 'then' and 'put' from the panel? It would be useful to know for
> other things too.
> 
> Cheers
> 
> Sean
> ___
> 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: "tsnet (1) Received HTTP/0.9 when not allowed"?

2021-04-05 Thread Andre Garzia via use-livecode
oh, I see….

Just catch up on the thread and saw the font loading issue. I can see how that 
becomes even more interesting to implement.

> On 5 Apr 2021, at 01:00, Richard Gaskin via use-livecode 
>  wrote:
> 
> curl is reporting the default because the data it's receiving is zero length:
> http://lists.runrev.com/pipermail/use-livecode/2021-April/264146.html
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> 
> 
> 
> Andre Garzia wrote:> Are you using the time travel external? HTTP/0.9 has 
> been historical for a long while, you can see more about this protocol at:
>> https://medium.com/platform-engineer/evolution-of-http-69cfe6531ba0 
>> 
>> To what server you’re connecting?
>>> On 31 Mar 2021, at 20:29, Richard Gaskin via use-livecode >> lists.runrev.com> wrote:
>>> I have an LC app that recently started reporting this error when calling a 
>>> web service we wrote:
>>> tsnet (1) Received HTTP/0.9 when not allowed
>>> Searching around the web I see many varied descriptions of how one might 
>>> remedy that, but none seem to fit our circumstance.
>>> Anyone else seen this? What was needed to resolve it?
>>> -- 
>>> Richard Gaskin
>>> Fourth World Systems
> 
> 
> ___
> 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: Polygons

2021-04-05 Thread Richmond Mathewson via use-livecode
The problem is that the borders of a polygon are integral parts of that
polygon and not somehow detachable; even if their width is set to 0 they
are still there. Were it possible to set the widths of sides individually
things would be quite different, but to achieve this one would probably
have to assemble some of composite object (c.f. dataGrids).

Richmond.

On Mon, 5 Apr 2021 11:41 Terence Heaford via use-livecode, <
use-livecode@lists.runrev.com> wrote:

> I also have concluded this.
>
> If you miss out lines the opaque setting is irrelevant, it functions as
> being false.
>
> Is this a bug?
>
> My work around is two polygons one underneath (filled) and the other on
> top (with lines)
>
> You could just draw lines between the points that need them, using a
> polygon as a line. I have tried this and it does not impact performance.
>
> Thanks for all your help
>
> Terry
>
>
>
>
> > On 4 Apr 2021, at 19:29, Ian McKnight via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I would hazard a guess that the fill area needs to be bounded by a line.
> If
> > a line is missing the fill routine can't determine where the edge of the
> > fill is and so fails, leaving the grc empty. I may be completely wrong on
> > this but it seems logical.
> >
> > Not much help I know but if you want to emphasise the edge of the bar
> could
> > the special effects settings help? I haven't tried his but have your bar
> as
> > a filled grc with out an edge and play with internal, external glows and
> > shadows etc to emphasise the outline.
> >
> > Regards
> >
> > Ian
>
> ___
> 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: Polygons

2021-04-05 Thread Terence Heaford via use-livecode
I also have concluded this.

If you miss out lines the opaque setting is irrelevant, it functions as being 
false.

Is this a bug?

My work around is two polygons one underneath (filled) and the other on top 
(with lines)

You could just draw lines between the points that need them, using a polygon as 
a line. I have tried this and it does not impact performance.

Thanks for all your help

Terry




> On 4 Apr 2021, at 19:29, Ian McKnight via use-livecode 
>  wrote:
> 
> I would hazard a guess that the fill area needs to be bounded by a line. If
> a line is missing the fill routine can't determine where the edge of the
> fill is and so fails, leaving the grc empty. I may be completely wrong on
> this but it seems logical.
> 
> Not much help I know but if you want to emphasise the edge of the bar could
> the special effects settings help? I haven't tried his but have your bar as
> a filled grc with out an edge and play with internal, external glows and
> shadows etc to emphasise the outline.
> 
> Regards
> 
> Ian

___
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