Digging around

2015-08-08 Thread Richmond
Recently my younger son liberated my Revolution 1.1.1 User Guide from the attic of our house in Scotland when he was up there. I would be extremely grateful if anyone could point me to a digital version of that. Richmond. ___ use-livecode mailing

Write variable to a file on a server?

2015-08-08 Thread Tim Selander
Hi, Messing with a LC script in a web page, writing a variable to a text file on my on-rev server account. The dictionary says the postmyData toURLhttp://www.example.net/indications.cgi; should work, but it doesn't. I get an 404 error. I am trying to save a variable's text contents by

Extracting a reference to a stack

2015-08-08 Thread David Bovill
Given the long id of a control - how do I extract the reference to the stack ti belongs to? I have a function that i have used since the dawn of time for this - but I recall seeing a new chunk / target / reference feature of Livecode in the last year that makes this easier. Did I imagine it?

Re: Write variable to a file on a server?

2015-08-08 Thread Mike Bonner
You need to set up a script to catch the data, and you need to send the data using a key=data type format. So for example if you're sending a book chapter to your server, and the text of the chapter is in variable tChapter post (chapter1= urlencode(tChapter)) to URL

Re: Extracting a reference to a stack

2015-08-08 Thread dunbarx
Interesting. I wonder if there is a property that gives this directly. But I suppose you can always find the owner of the control, and if that is a group (or a series of groups, continue until you find an owner with the word stack in it. Craig Newman -Original Message- From: David

Re: Extracting a reference to a stack

2015-08-08 Thread dunbarx
Wait just a doggone minute. The long id of a control contains the stack reference. Craig -Original Message- From: David Bovill david@viral.academy To: How to use LiveCode use-livecode@lists.runrev.com Sent: Sat, Aug 8, 2015 8:24 am Subject: Extracting a reference to a stack Given

Re: Write variable to a file on a server?

2015-08-08 Thread Tim Selander
Hi Mike, Worked great!! Thank you very much. Exactly what I'm trying to do. Tim On 15/08/08 22:05, Mike Bonner wrote: You need to set up a script to catch the data, and you need to send the data using a key=data type format. So for example if you're sending a book chapter to your server,

Re: Extracting a reference to a stack

2015-08-08 Thread Peter M. Brigham
Here's a quick solution: function ownerStack pObjLongID replace of with numtochar(8) in pObjLongID set the itemdel to numtochar(8) return item -1 of pObjLongID end ownerStack A more general solution is what I use in my library. The getItem() function is so useful that I use it

Re: Extracting a reference to a stack

2015-08-08 Thread David Bovill
There was a recent feature added to the language that would help - maybe it was something to do with the owner I have a similarly convoluted function and getprop - one of the issues is that if you want the long name of the stack the control is part of - this could be a mainstack or a substack

Jane Austen's peculiarity

2015-08-08 Thread Richmond
Jane Austen [amongst others] uses an interesting type of grammatical construction of this sort: After breakfast, the girls walked to Meryton to inquire if Mr. Wickham _were returned_, and to lament over his absence from the Netherfield ball. Pride and Prejudice. I would like to analyse a

Re: Extracting a reference to a stack

2015-08-08 Thread Mark Wieder
On 08/08/2015 07:45 AM, David Bovill wrote: There was a recent feature added to the language that would help - maybe it was something to do with the owner I LC7 you can now set whole words as delimiters. So (off the top of my head) set the itemDelimiter to stack get item -1 of the long id

Re: Extracting a reference to a stack

2015-08-08 Thread Peter M. Brigham
OK, Here's a revision: function ownerStack pObjLongID -- returns the name of the stack immediately containing pObjLongID -- by Peter M. Brigham, pmb...@gmail.com — freeware -- tags: control -- requires getprop robustName replace of with cr in pObjLongID put lineoffset(cr

Re: Extracting a reference to a stack

2015-08-08 Thread Peter Haworth
I do it like this function stackOfObject pobject local tObject put pobject into tObject repeat if word 1 of tObject is stack then return tObject end if On Sat, Aug 8, 2015 at 10:31 AM Peter M. Brigham pmb...@gmail.com wrote: OK, Here's a revision: function ownerStack pObjLongID

Re: Jane Austen's peculiarity

2015-08-08 Thread Peter M. Brigham
On Aug 8, 2015, at 12:42 PM, Richmond wrote: Jane Austen [amongst others] uses an interesting type of grammatical construction of this sort: After breakfast, the girls walked to Meryton to inquire if Mr. Wickham _were returned_, and to lament over his absence from the Netherfield ball.

Re: Extracting a reference to a stack

2015-08-08 Thread Peter Haworth
Whoops, hit send too soon, should be: function stackOfObject pobject repeat if word 1 of pobject is stack then return pobject else put the long owner of pobject into pobject end repeat end stackOfObject On Sat, Aug 8, 2015 at 10:45 AM Peter Haworth

Re: Extracting a reference to a stack

2015-08-08 Thread Peter M. Brigham
On Aug 8, 2015, at 1:45 PM, Peter Haworth wrote: I do it like this function stackOfObject pobject local tObject put pobject into tObject repeat if word 1 of tObject is stack then return tObject end if I assume you meant to include a line delete word 1 of tObject at the end

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
On 08/08/15 20:48, Peter M. Brigham wrote: On Aug 8, 2015, at 12:42 PM, Richmond wrote: Jane Austen [amongst others] uses an interesting type of grammatical construction of this sort: After breakfast, the girls walked to Meryton to inquire if Mr. Wickham _were returned_, and to lament over

Re: Jane Austen's peculiarity

2015-08-08 Thread Peter M. Brigham
On Aug 8, 2015, at 1:56 PM, Richmond wrote: On 08/08/15 20:48, Peter M. Brigham wrote: On Aug 8, 2015, at 12:42 PM, Richmond wrote: Jane Austen [amongst others] uses an interesting type of grammatical construction of this sort: After breakfast, the girls walked to Meryton to inquire if

Re: Extracting a reference to a stack

2015-08-08 Thread Thierry Douez
Here is a regex solution. and as a bonus, in 3 variants: on mouseUp --button id 1003 of card id 1002 of stack stack 2 --of stack /Users/t/Desktop/stack.livecode put fld L1 into aLongID put theStackOwner( aLongID) into field L2 put theMainStackOwner(

Re: Odd behavior in Win8-I'm stuck fixing it, Help??

2015-08-08 Thread Paul Hibbert
Hi Bill, Sorry for the delay replying, I’ve been away from home for a few days. I don’t think line 6 will give the result you are looking for, I would change it to: 6. export snapshot from Group snapshotGrp with metadata theMetadataArray to image mySnapShot i.e. Remove the “from rect” part

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
On 08/08/15 21:18, Peter M. Brigham wrote: On Aug 8, 2015, at 1:56 PM, Richmond wrote: On 08/08/15 20:48, Peter M. Brigham wrote: On Aug 8, 2015, at 12:42 PM, Richmond wrote: Jane Austen [amongst others] uses an interesting type of grammatical construction of this sort: After breakfast,

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
I seem to be going wrong: I have a fld WERBS containing: found returned become and my test to be analysed in a fld TEKST: My Dad ate cheese. My Mum and Dad were returned home when it began to rain. He had a house in Spain.

Re: Jane Austen's peculiarity

2015-08-08 Thread Paul Looney
Richmond, The key here is the “if” - which creates a conditional clause - which requires the past plural of the verb (in this case “were”). This is similar to the “wenn clause in German (Deutsch) and the “ut” clause in Latin. If I were able, I’d thank you in person for mentioning this. Paul

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
On 08/08/15 22:56, Paul Looney wrote: Richmond, The key here is the “if” - which creates a conditional clause - which requires the past plural of the verb (in this case “were”). This is similar to the “wenn clause in German (Deutsch) and the “ut” clause in Latin. If I were able, I’d thank you

Re: Jane Austen's peculiarity

2015-08-08 Thread Paul Looney
In your last example: Mr. Rushworth _was returned_” “was returned” (singular, past tense, passive) is correct (although a simple “returned” would have been more powerful). There is no conditional, no “if”; as in your first example: to inquire if Mr. Wickham_were returned_, Haven’t had this

Re: Jane Austen's peculiarity

2015-08-08 Thread Peter M. Brigham
On Aug 8, 2015, at 3:41 PM, Richmond wrote: I seem to be going wrong: I have a fld WERBS containing: found returned become and my test to be analysed in a fld TEKST: My Dad ate cheese. My Mum and Dad were returned home when it began to

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
On 08/08/15 23:33, Peter M. Brigham wrote: On Aug 8, 2015, at 3:41 PM, Richmond wrote: I seem to be going wrong: I have a fld WERBS containing: found returned become and my test to be analysed in a fld TEKST: My Dad ate cheese. My Mum and Dad were returned home

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
On 08/08/15 23:23, Paul Looney wrote: In your last example: Mr. Rushworth _was returned_” “was returned” (singular, past tense, passive) I'm not sure if that is a passive, or an older form of the past perfect (= had returned) ??? is correct (although a simple “returned” would have been

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
On 08/08/15 23:33, Peter M. Brigham wrote: snip Missing an of in the two lines above: put line textLine *of* $TEKST into line cookedLine of fld COOKED etc Don't know if that's the problem. snip Your script logic seems unnecessarily complex. Since it looks as if only the last occurrence

Re: English usage [OT] (used to be Re: Jane Austen's peculiarity)

2015-08-08 Thread Peter M. Brigham
On Aug 8, 2015, at 4:44 PM, Richmond wrote: On 08/08/15 23:23, Paul Looney wrote: In your last example: Mr. Rushworth _was returned_” “was returned” (singular, past tense, passive) I'm not sure if that is a passive, or an older form of the past perfect (= had returned) ??? I believe

Re: English usage [OT] (used to be Re: Jane Austen's peculiarity)

2015-08-08 Thread Richmond
On 08/08/15 23:59, Peter M. Brigham wrote: On Aug 8, 2015, at 4:44 PM, Richmond wrote: On 08/08/15 23:23, Paul Looney wrote: In your last example: Mr. Rushworth _was returned_” “was returned” (singular, past tense, passive) I'm not sure if that is a passive, or an older form of the past

Re: Jane Austen's peculiarity

2015-08-08 Thread Peter M. Brigham
On Aug 8, 2015, at 4:51 PM, Richmond wrote: On 08/08/15 23:33, Peter M. Brigham wrote: snip Missing an of in the two lines above: put line textLine *of* $TEKST into line cookedLine of fld COOKED etc Don't know if that's the problem. snip Your script logic seems unnecessarily

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
On 09/08/15 00:26, Peter M. Brigham wrote: On Aug 8, 2015, at 4:51 PM, Richmond wrote: On 08/08/15 23:33, Peter M. Brigham wrote: snip Missing an of in the two lines above: put line textLine *of* $TEKST into line cookedLine of fld COOKED etc Don't know if that's the problem. snip Your

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
on mouseUp put fld TEKST into TEKST put fld WERBS into WERBS put findWere(TEKST) into linesList repeat for each item i in linesList put line i of TEKST cr after relevantLines end repeat put char 1 to -2 of relevantLines into fld COOKED end mouseUp function findWere pText --

Local Path for Mobile

2015-08-08 Thread Brahmanathaswami
Complete mobile newbie here... will be coming with my begging bowl out a lot in the days to come. Is this good for mobile also? function localPath put the effective filename of this stack into tPath set the itemdel to / delete item -1 of tPath put / after tPath return tPath

RE: Local Path for Mobile

2015-08-08 Thread Ralph DiMola
File in the stack are in the engine folder and it's sub folders. This is read only. You can store files in the documents folder. Check the docs for other folder options.  I have a function TheEngineFolder that returns the engine folder on mobile and the location of the included assets when in

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
Oddly enough this does NOT seem to be a problem with my counters. If I reorder my verbList the stack still only finds text bits with 'found'. Retyping the list (rather than importing it from RTF) the first occurrence of the first verb in the list results. There seems to be a problem with the

LiveCode-bijeenkomst September 2015 / LiveCode Meeting September 2015

2015-08-08 Thread Mark Schonewille
*** LiveCode-bijeenkomst September 2015 *** (see below for English version) Het is alweer bijna een jaar geleden, dat we elkaar hebben ontmoet. Het wordt dus de hoogste tijd, dat we elkaar weer eens treffen. Ik heb daarom het plan opgevat na de vakantie weer eens een LiveCode-bijeenkomst te

Re: Local Path for Mobile

2015-08-08 Thread Colin Holgate
The function Ralph alludes to is specialFolderPath(). ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Jane Austen's peculiarity

2015-08-08 Thread Richard Gaskin
Richmond wrote: function findWere pText -- returns a comma-delim list of all the line offsets matching were *ed --or were a word in your preterite list. put fld WERBS into pretList put wordOffsets(were, pText, true) into offList Unless the build you're using a custom build,

Re: Extracting a reference to a stack

2015-08-08 Thread Richard Gaskin
dunbarx wrote: Wait just a doggone minute. The long id of a control contains the stack reference. Yep - and being a lazy person this is how I get the stack reference: function ObjectStack pObj return char (offset( of stack , pObj)+4) to -1 of pObj end ObjectStack -- Richard Gaskin

[OT-ish] naming a MeetUp group

2015-08-08 Thread Colin Holgate
I attend a programming user group that has gotten more and more quiet over the years. Sometimes nobody shows up! We’ve been wondering whether to change it to be a Meetup group instead, which has the advantages of knowing how many people will come, and some have a pre-pay $5 system, so if nobody

Re: [OT-ish] naming a MeetUp group

2015-08-08 Thread Richard Gaskin
Colin Holgate wrote: I attend a programming user group that has gotten more and more quiet over the years. Sometimes nobody shows up! We’ve been wondering whether to change it to be a Meetup group instead Yes and double yes! Once our local Linux group opened a Meetup page attendance has

Emulate thumb drag on desktop

2015-08-08 Thread Brahmanathaswami
To scroll a field on mobile I'm going to try this: on createQuoteScroller local tScrollerRect,tContentRect,sScrollerID if environment() is not mobile then exit createQuoteScroller mobileControlCreate scroller, quoteScroller put the result into sScrollerID put the rect of fld quote

Re: [OT-ish] naming a MeetUp group

2015-08-08 Thread Colin Holgate
Thanks for the “Swift” reply! Can you say something about the costs of running a Meetup group? I do think the presentations would range from Swift, Javascript, and TypeScript, at the low end, and not a line of code typed all night presentations at the high end. The target audience would be

RE: Local Path for Mobile

2015-08-08 Thread Ralph DiMola
The specialFolderPath() has many more options. I later versions (post 5.5?) there are 2 short cuts also. These folders are common for both mobile platforms. IOS has a few more. specialFolderPath(engine) = the engine folder. specialFolderPath(documents) = the documents folder.

Re: Emulate thumb drag on desktop

2015-08-08 Thread Mike Bonner
To do it with this method, the traversal of the field needs to be off. (though this can probably be worked around) Put this script into the field. local sMouseLoc on mouseDown put the mouseloc into sMouseLoc setScroll end mouseDown on setScroll if the mouse is down then lock

Re: Extracting a reference to a stack

2015-08-08 Thread David Bovill
Wow - lot's of cool examples. Richards is one of the shortest - but breaks theoretically if a stack is named weirdly. Thierry gets the nerdy award, and mark for digging up the new offset feature (which I think is the feature I remember). By the way one of the most puzzling aspects of software

Re: Extracting a reference to a stack

2015-08-08 Thread Thierry Douez
Yep - and being a lazy person this is how I get the stack reference: function ObjectStack pObj return char (offset( of stack , pObj)+4) to -1 of pObj end ObjectStack Not always beneficial to be lazy :) I tried your code with the long ID I gave previously without success. Regards,

Re: [OT-ish] naming a MeetUp group

2015-08-08 Thread Richard Gaskin
Colin Holgate wrote: Can you say something about the costs of running a Meetup group? It's not cheap but affordable, and worth every penny. Meetup.com has become the go-to place folks use the most when looking for events like yours. In our Linux group we took up a collection among members

Re: [OT-ish] naming a MeetUp group

2015-08-08 Thread Colin Holgate
I progressed with the Meetup page. I settled on: NYC High Level App Development Tools Meetup that covers desktop and mobile. I didn’t go for rapid development because apps take a long time to develop, even if the coding part is made easier. It’s generally not rapid. I can’t see how to edit my

Re: Jane Austen's peculiarity

2015-08-08 Thread Alex Tweedly
I think I'd agree that a conditional clause should be equired (could it be any of 'if', 'unless', 'whether', ...)? Otherwise, you'd be finding false positives like: I gave two shillings to my brother and last night they _were returned_ to me. -- Alex. On 08/08/2015 20:56, Paul Looney

Re: Extracting a reference to a stack

2015-08-08 Thread J. Landman Gay
On 8/8/2015 6:20 PM, David Bovill wrote: the new offset feature (which I think is the feature I remember). The offset feature hasn't changed, but you may be thinking of the itemDelimiter, which in LC 7 can be more than one character. -- Jacqueline Landman Gay |

Re: Extracting a reference to a stack

2015-08-08 Thread Richard Gaskin
Thierry Douez wrote: Yep - and being a lazy person this is how I get the stack reference: function ObjectStack pObj return char (offset( of stack , pObj)+4) to -1 of pObj end ObjectStack Not always beneficial to be lazy :) I tried your code with the long ID I gave previously without

Re: Extracting a reference to a stack

2015-08-08 Thread David Bovill
The test case would be this is a stack of rubish as a substack - that would break your code? On 9 August 2015 at 00:59, Richard Gaskin ambassa...@fourthworld.com wrote: Thierry Douez wrote: Yep - and being a lazy person this is how I get the stack reference: function ObjectStack pObj

Making a browser smaller

2015-08-08 Thread David Bovill
I've a web site that I want to make smaller in Livecode. In Chrome or Firefox I can shrink the browser view using Zoom In / Zoom Out. In Livecode we have revBrowserMakeTextSmaller - but this only shrinks the text. Any CSS or other tricks to zoom / shrink an entire web site? I guess not - just

Re: Extracting a reference to a stack

2015-08-08 Thread Richard Gaskin
David Bovill wrote: Richard Gaskin wrote: function ObjectStack pObj return char (offset( of stack , pObj)+4) to -1 of pObj end ObjectStack The test case would be this is a stack of rubish as a substack - that would break your code? It would have to be this is a of stack of rubbish

Re: Extracting a reference to a stack

2015-08-08 Thread David Bovill
Yes - you're right. The long name is the only case and like you I only use long ids in the use cases I have. Except when I store references when I use the ruggedID handler of the IDE - that should be a native reference I think? On Sunday, August 9, 2015, Richard Gaskin ambassa...@fourthworld.com

Re: Extracting a reference to a stack

2015-08-08 Thread Richard Gaskin
David Bovill wrote: Yes - you're right. The long name is the only case and like you I only use long ids in the use cases I have. Except when I store references when I use the ruggedID handler of the IDE - that should be a native reference I think? It would be nice to have an engine version

Visual Effects on Mobile

2015-08-08 Thread Brahmanathaswami
The only visual effect I really think works in most scenarios is dissolve at least for my use case... having things flip, or move wipe down etc... all very distracting. but the Dictionary indicates that only scroll and reveal work on iOS and Android. But I have seen apps in iOS that have

Re: Local Path for Mobile

2015-08-08 Thread Brahmanathaswami
Can you share that function? i could guess what it is... but why re-invent the wheel? Ralph DiMola wrote: I have a function TheEngineFolder that returns the engine folder on mobile and the location of the included assets when in the IDE. This allows testing using the same code.

Re: Visual Effects on Mobile

2015-08-08 Thread Scott Rossi
I believe curl and flip are the only visual effects that are exclusive to mobile (iOS only?), while the others should work. I know for a fact that push and wipe work fine, as I use these in mobile stacks, combined with limiting transitions to defined rects: lock screen for visual effect in

Re: Jane Austen's peculiarity

2015-08-08 Thread Peter M. Brigham
On Aug 8, 2015, at 6:41 PM, Richard Gaskin wrote: Richmond wrote: function findWere pText -- returns a comma-delim list of all the line offsets matching were *ed --or were a word in your preterite list. put fld WERBS into pretList put wordOffsets(were, pText, true) into

Re: Jane Austen's peculiarity

2015-08-08 Thread Peter M. Brigham
On Aug 8, 2015, at 5:44 PM, Richmond wrote: executing at 12:43:43 AM TypeFunction: error in function handler ObjectBrigham Lineput wordOffsets(were, pText, true) into offList HintwordOffsets Probably you didn't include the wordOffsets() handler from my post earlier

Re: Emulate thumb drag on desktop

2015-08-08 Thread dunbarx
Hi. Are you asking if there is a way to make the scroll of a field track the mouseLoc? If so, then you are right to use the mouseMove message, and scale the y-value of its included parameter to the vScroll of the field. Or am I missing it? Craig Newman -Original Message- From:

Reliable Custom Window Dragging in LC7?

2015-08-08 Thread Scott Rossi
Hi All: Is anyone still making custom-shaped stacks out there that use scripts to manage window dragging? I've noticed for some time now that custom window drag routines which used to work in all past versions of LiveCode now seem to be ineffective in LC7. For example, if you have a couple of

Re: Extracting a reference to a stack

2015-08-08 Thread Mike Bonner
This may not do things in the required way, but.. If you have a library stack with a function or command that just grabs the name of this stack then you can dispatch or send the request to the object and POOF it'll tell you what stack its on, no parsing necessary. Just tried it here, and it