Re: Updating Text-Script Only Stacks in Run-Time, Message Path Memory

2016-11-06 Thread Monte Goulding
> On 7 Nov. 2016, at 6:37 pm, Mark Wieder wrote: > > Really? > I can assign substacks to script-only stacks? > I can use a script-only stack as a substack? Sure but nothing but the stack script will save. I think for sanity we have disabled setting of substacks via the

Re: Updating Text-Script Only Stacks in Run-Time, Message Path Memory

2016-11-06 Thread Mark Wieder
On 11/06/2016 01:00 PM, Monte Goulding wrote: The IDE doesn’t know much about script only stacks so I’d be surprised if any differences in behaviour can be attributed to the fact it’s script only. There really is very little difference between a script only stack and a regular stack other

Re: Updating Text-Script Only Stacks in Run-Time, Message Path Memory

2016-11-06 Thread stephen barncard
On Sun, Nov 6, 2016 at 4:27 PM, Monte Goulding wrote: > Sure you can edit them in a text editor that’s fine. What we are talking > about is having those changes update the version that is currently loaded > into a running IDE. I remember Jacque something about using 'revert'

Re: Updating Text-Script Only Stacks in Run-Time, Message Path Memory

2016-11-06 Thread Monte Goulding
> On 7 Nov. 2016, at 11:23 am, stephen barncard > wrote: > > We already edit livecode script-only-stacks on server. Sure you can edit them in a text editor that’s fine. What we are talking about is having those changes update the version that is currently

Re: Updating Text-Script Only Stacks in Run-Time, Message Path Memory

2016-11-06 Thread stephen barncard
On Sun, Nov 6, 2016 at 1:00 PM, Monte Goulding wrote: > You only need to do that if you don’t edit in the IDE. I don’t believe > there’s ever been official support for editing stack scripts outside the > IDE. We already edit livecode script-only-stacks on server. The only

Re: Updating Text-Script Only Stacks in Run-Time, Message Path Memory

2016-11-06 Thread Monte Goulding
> On 7 Nov. 2016, at 7:52 am, Mark Wieder wrote: > > If I edit a behavior script then I expect objects using that behavior script > to use the new features as soon as I compile the script. I would expect that > the same would be true of script-only stacks: I edit the

Re: Updating Text-Script Only Stacks in Run-Time, Message Path Memory

2016-11-06 Thread Mark Wieder
On 11/06/2016 11:36 AM, Monte Goulding wrote: This introduces some interesting initialisation issues. What if the initialisation is the thing that changed? What if script local values are not appropriate for the new version? What if there’s some self generating UI that isn’t there because

Re: Stack name conflicts resolved?

2016-11-06 Thread Monte Goulding
> On 7 Nov. 2016, at 3:57 am, Mark Wieder wrote: > > Now rename the second stack to "Untitled 1" > > The property inspector allows this, but now gets very confused. Ah… well that’s probably a bug. If the IDE can’t handle multiple stacks with the same name it should not

Re: How can we dynamically create variable names from changing value "x" on a loop?

2016-11-06 Thread dunbarx
Hi. Arrays are so new_fashioned. But do you mean something like this, from the stone age, that creates variables on the fly, in this case with 2X the value of an index? on mouseUp repeat with y = 1 to 10 do "put y * 2 into onTheFlyVar" & y end repeat end mouseUp Craig -- View

Re: export snapshot

2016-11-06 Thread Paul Hibbert
> On Nov 6, 2016, at 11:54 AM, hh wrote: > > Tested to work here in LC 9.0.0-dp1 on > > MacOS 10.12.1 > Win 7/10 > Linux (Mint173) > > on mouseUp > put specialfolderPath(home)&"/test.png" into sph > export snapshot from img "test" to file sph as PNG > end mouseUp > > So

Re: export snapshot

2016-11-06 Thread hh
Tested to work here in LC 9.0.0-dp1 on MacOS 10.12.1 Win 7/10 Linux (Mint173) on mouseUp put specialfolderPath(home)&"/test.png" into sph export snapshot from img "test" to file sph as PNG end mouseUp So you could test whether you have write permission in the folder where you wish to

Re: selectedText

2016-11-06 Thread Paul Hibbert
> On Nov 6, 2016, at 9:41 AM, Richmond > wrote: > > I wonder why this: > > set text of the selectedText to numToCodePoint(2309) > > [when I have a textField with a selection point within it] > > doesn't work (LC 8.1). > >

Re: Updating Text-Script Only Stacks in Run-Time, Message Path Memory

2016-11-06 Thread Monte Goulding
> On 7 Nov. 2016, at 3:23 am, Mark Wieder wrote: > > But... > shouldn't that be the big advantage of script-only stacks? I think this would be relatively handy for trivial stacks but have issues for more complicated ones. Also consider why should this only be the case

Re: export snapshot

2016-11-06 Thread Paul Hibbert
> On Nov 6, 2016, at 3:27 AM, Richmond > wrote: > > I wonder why? It seems the ‘export snapshot from’ doesn’t like the ‘img’ form, whereas, in a simple experiment the following does work in LC8.1.1(rc2); export snapshot from

Re: Background colour of a new stack

2016-11-06 Thread Randy Hengst
Glad it helped. be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Nov 5, 2016, at 5:46 PM, Graham Samuel wrote: > > Thanks Randy, I hadn’t realised I could do that. Excellent! > > Graham > >> On 5 Nov 2016, at 22:40, Randy Hengst

selectedText

2016-11-06 Thread Richmond
I wonder why this: set text of the selectedText to numToCodePoint(2309) [when I have a textField with a selection point within it] doesn't work (LC 8.1). Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: How can we dynamically create variable names from changing value "x" on a loop?

2016-11-06 Thread Mike Bonner
Why not just leave it as an array? In fact, if you want to have separate preferences categories, that's easy enough to do too. local sPrefsA put getPref ("preferences/modules/color-meditation") into sPrefsA[ColorMedPrefs] at this point you have an local script array variable structured like

Re: OT - cross platform zero slashed font

2016-11-06 Thread David V Glasgow
Belated thanks Richmond and Jeanne Best David Glasgow > On 24 Oct 2016, at 6:37 am, Jeanne A. E. DeVoto > wrote: > > At 4:52 PM +0100 10/18/2016, David V Glasgow wrote: >> Is there really no cross platform zero slashed (like Monaco 0) font? Is >> there one which is

Re: Stack name conflicts resolved?

2016-11-06 Thread Mark Wieder
On 11/05/2016 09:38 PM, Monte Goulding wrote: On 6 Nov. 2016, at 1:31 pm, Mark Wieder wrote: When new stacks are created in memory they are assigned the id 1002. Why? If there's a stack already in memory why not create the new stack with the next sequential id? Then

Re: export snapshot

2016-11-06 Thread Mark Wieder
On 11/06/2016 03:31 AM, Peter TB Brett wrote: Because the correct syntax is: export snapshot of img "met" to file "met.png" as png My reading of the syntax from the documentation allows the 'from object' form: export snapshot [from rect[angle] rectangle] [of object(glossary)] [(with

Re: Updating Text-Script Only Stacks in Run-Time, Message Path Memory

2016-11-06 Thread Mark Wieder
On 11/05/2016 09:31 PM, Monte Goulding wrote: > Of course if you are making changes in a text editor and expecting those to be reflected in the running IDE then you are out of luck. But... shouldn't that be the big advantage of script-only stacks? -- Mark Wieder ahsoftw...@gmail.com

How can we dynamically create variable names from changing value "x" on a loop?

2016-11-06 Thread Sannyasin Brahmanathaswami
Given this scenario: We fetch a preference array from some json on disk We want to insert the key-values into separate discrete local vars in the stack script function getUserPreferences # the following function fetches an object in a JSON file: put getPref

Re: Find chars

2016-11-06 Thread Mike Bonner
There is an optional "form" that can be specified with find, so it looks like it still exisits. form enum If no *form* is specified, the normal form is used. anywhere in the field's words One of the following items: - normal -Find each word in textToFind, at start of the field's words -

Re: Recoding: search and replace

2016-11-06 Thread Mike Bonner
Using a backup of course.. You might try something simple like.. repeat for each line tline in the script of stack "yourscripttarget"-- wherever your script is. if tline contains "set the unicodetext of fld " & quote & "fDECODE"& quote & " to (numtocodepoint(" then replace "set the

Re: Recoding: search and replace

2016-11-06 Thread Richmond
Thanks: I hope you manage to get some rest. Richmond On 6.11.2016 15:19, hh wrote: I'm so tired, but there is an exit from my typos: function numToCode n return numToCodePoint(n) end numToCode ;-) ___ use-livecode mailing list

Find chars

2016-11-06 Thread Richmond
Hey: on page 58 of theDanny Goodman Complete Hypercard Handbook 4th Edition there is talk of a "find chars" function in Hypercard . . . it doesn't seem to have survived in Livecode . . . ? Richmond ___ use-livecode mailing list

Re: Recoding: search and replace

2016-11-06 Thread hh
I'm so tired, but there is an exit from my typos: function numToCode n return numToCodePoint(n) end numToCode ;-) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: Recoding: search and replace

2016-11-06 Thread hh
> Richmond M. wrote: > *put (numToCodePoint(107) & numToCodePoint(104)) into \ > fld "fDECODE"* where /(numToCodePoint(107) & numToCodePoint(104))/ vary? You could try put "107,104" & "104,107" & ... into myNums repeat for each line L in myNums put numTocode(item 1 of L) & numToCode(item 2

Re: curioser and curioser

2016-11-06 Thread Richmond
Ha, Ha . . . Where I stay, in the conservative Balkans, there is only one Trans in the town! Richmond. On 6.11.2016 14:11, hh wrote: Richmond M. wrote: .. put numToCodePoint(107) into fld "TRANZ" which worked perfectly OK in 4.5 does NOT work in 8.1 HOWEVER; if I rename fld "TRANZ" to

Recoding: search and replace

2016-11-06 Thread Richmond
I wonder if there is a way to replace this: set the unicodeText of fld "fDECODE" to (numToCodePoint(107) & numToCodePoint(104)) with this: *put (numToCodePoint(107) & numToCodePoint(104)) into fld "fDECODE"* where /(numToCodePoint(107) & numToCodePoint(104))/ vary? I have no great urge to

Re: curioser and curioser

2016-11-06 Thread hh
> Richmond M. wrote: > .. put numToCodePoint(107) into fld "TRANZ" which worked > perfectly OK in 4.5 does NOT work in 8.1 HOWEVER; if I > rename fld "TRANZ" to "fTRANZ" this works: > put numToCodePoint(107) into fld "fTRANZ" Such effects usually indicate that there was more than one field named

curioser and curioser

2016-11-06 Thread Richmond
I am currently recoding my Devawriter Pro from Livecode 4.5 to Livecode 8.1, and it is proving rather more long-winded than I had envisaged. For instance: put numToCodePoint(107) into fld "TRANZ" which worked perfectly OK in 4.5 does NOT work in 8.1 HOWEVER; if I rename fld "TRANZ" to

Re: export snapshot

2016-11-06 Thread Richmond
So: when I did as you instructed I got this: Script compile error: Error description: export: missing 'to' Richmond. On 6.11.2016 13:31, Peter TB Brett wrote: On 06/11/2016 11:27, Richmond wrote: I tried this: export snapshot from img "met" to file "met.png" as PNG and that worked in 7.1.4

Re: export snapshot

2016-11-06 Thread Richmond
Thanks: although I have been using "from" for years with no problems at all: I can only conclude that 8.1 is "fussier" than 7.1.4 Richmond. On 6.11.2016 13:31, Peter TB Brett wrote: On 06/11/2016 11:27, Richmond wrote: I tried this: export snapshot from img "met" to file "met.png" as PNG

Re: export snapshot

2016-11-06 Thread Peter TB Brett
On 06/11/2016 11:27, Richmond wrote: I tried this: export snapshot from img "met" to file "met.png" as PNG and that worked in 7.1.4 but did NOT work in 8.1 I wonder why? Because the correct syntax is: export snapshot of img "met" to file "met.png" as png

export snapshot

2016-11-06 Thread Richmond
I tried this: export snapshot from img "met" to file "met.png" as PNG and that worked in 7.1.4 but did NOT work in 8.1 I wonder why? Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,