Re: Regex help...

2017-06-04 Thread Mike Kerner via use-livecode
When I'm fighting a regex, I go to http://pythex.org/ On Sun, Jun 4, 2017 at 2:11 PM, Mike Bonner via use-livecode < use-livecode@lists.runrev.com> wrote: > Not sure regex can do what you want, or if it can its far far over my > head. Would it work instead to use lc script to parse? > If you

Re: Regex help...

2017-06-04 Thread hh via use-livecode
Forget it. I'm wrong, it's too late. Sorry. > hh wrote: > [a] all lines starting on page 2 OR ending on page 2 OR containing page 2 > ie > (pPage >= starting page) OR (pPage <= ending page) > > [b] all lines starting on page 2 AND ending on page 2 > ie > (pPage >= starting page) AND (pPage <=

Re: Regex help...

2017-06-04 Thread hh via use-livecode
Your "ie" is not true. So what do you want? [a] all lines starting on page 2 OR ending on page 2 OR containing page 2 ie (pPage >= starting page) OR (pPage <= ending page) [b] all lines starting on page 2 AND ending on page 2 ie (pPage >= starting page) AND (pPage <= ending page) > Paul D.

Re: how to download an image

2017-06-04 Thread Mark Wieder via use-livecode
I dunno. Here's what I just did and it loaded the image with no problems. All 97,183 bytes worth. Do you have write permission to the folder you're downloading to? on mouseUp local tImgUrl local tImgName local tNewFile constant tNewFolder="/home/mwieder/Desktop" put

Re: how to download an image

2017-06-04 Thread Matt Maier via use-livecode
I've only tried it in the IDE so far. On Sun, Jun 4, 2017 at 12:36 PM, tbodine via use-livecode < use-livecode@lists.runrev.com> wrote: > Is this happening in a standalone or the IDE? A standalone would need > revsecurity.dll for https. > > Tom B. > > > > -- > View this message in context:

Re: how to download an image

2017-06-04 Thread tbodine via use-livecode
Is this happening in a standalone or the IDE? A standalone would need revsecurity.dll for https. Tom B. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/how-to-download-an-image-tp4715487p4715503.html Sent from the Revolution - User mailing list archive at

Re: how to download an image

2017-06-04 Thread Matt Maier via use-livecode
Yeah, I've got a list of URLs like the one in the first message //s3.amazonaws.com/appforest_uf/f1496548544475x140387106221169 240/grilled_cheese_on_plate.jpg I'm trying to download the images from AWS to a folder. Previously I couldn't get "put URL into binfile" to work (0kb files) so I tried

Re: Regex help...

2017-06-04 Thread Mike Bonner via use-livecode
Not sure regex can do what you want, or if it can its far far over my head. Would it work instead to use lc script to parse? If you repeat through your data (each line form, with tLine as the current line and pPage as the page to be looked for...) you can use a one liner like this to build a list

Re: how to download an image

2017-06-04 Thread Mark Wieder via use-livecode
On 06/04/2017 10:06 AM, Matt Maier via use-livecode wrote: Hokay, so, apparently post is a blocking command, which is a bad idea for multiple potentially large files. So I'm trying to use this, but it's still downloading 1kb files. *put* "https:" & tImgUrl into tImgUrl *set* itemdelimiter to

How to edit Script Editor and SETemplate

2017-06-04 Thread Bob Hall via use-livecode
I’ve got a couple of things I’d like to try with the Script Editor. I’m having a tough time figuring out how to edit revNewScriptEditor stack and specifically being able to make changes to revSETemplate. Can anyone give me a pointer on what I need to do so that I might be able to try some

Re: how to download an image

2017-06-04 Thread Matt Maier via use-livecode
Hokay, so, apparently post is a blocking command, which is a bad idea for multiple potentially large files. So I'm trying to use this, but it's still downloading 1kb files. *put* "https:" & tImgUrl into tImgUrl *set* itemdelimiter to "/" *put* item -1 of tImgUrl into tImgName *set*

stack & IDE not responding during download

2017-06-04 Thread Matt Maier via use-livecode
Every time my script downloads an image the entire interface and IDE locks up and says "not responding" until the download finishes. I tried adding "lock screen" but that didn't help. *lock* screen *put* tImg into tDis["img_thing"] *set* the httpHeaders to "Content-Type: application/json" & cr

Re: how to download an image

2017-06-04 Thread Matt Maier via use-livecode
I got bubble.is to send the base64 encoded image data instead of a link. So just putting the base64decoded data into URL is working. On Sun, Jun 4, 2017 at 12:41 AM, Colin Holgate via use-livecode < use-livecode@lists.runrev.com> wrote: > Scott’s routine worked for me too. It’s worth checking

Re: HTML5 deployment: progress comes into sight

2017-06-04 Thread Mark Wieder via use-livecode
On 06/04/2017 02:53 AM, Jonathan Lynch via use-livecode wrote: No need to loop. Set three flags to false. After each callback comes in and the flag gets switched, check all three flags. After the last ones comes in, all three flag variables will be switched and can trigger the next action.

Regex help...

2017-06-04 Thread Paul Dupuis via use-livecode
I have a tab and cr delimited table of data, a sample line of which is below: 1Test4052,125941,4052,3,2388 The last tab delimited item "1,4052,3,2388" is actually ,,, So the starting page number is 1 and ending page is 3 I have a variable pPage which contain a page number, say "2" My regex

Re: HTML5 deployment: progress comes into sight

2017-06-04 Thread Jonathan Lynch via use-livecode
No need to loop. Set three flags to false. After each callback comes in and the flag gets switched, check all three flags. After the last ones comes in, all three flag variables will be switched and can trigger the next action. Sent from my iPhone > On Jun 3, 2017, at 9:04 PM, Mark Wieder via

Re: urgent iOS internet issue (url request timeout setting?)

2017-06-04 Thread Terry Judd via use-livecode
In this case the loss of wifi was intentional and part of a test of offline capability of our app. We do experience occasional loss of wifi on our iPads but I suspect that is down to our university’s wireless network rather than a technical issue with the devices. Terry... On 4/06/2017 11:50

Re: how to download an image

2017-06-04 Thread Colin Holgate via use-livecode
Scott’s routine worked for me too. It’s worth checking where the spaces and returns there are in his test, I had to edit it from the email version. I also just tested in the multiline message box. For testing in a button, in LiveCode 8, you have to declare the variable as well. This was the

Re: how to download an image

2017-06-04 Thread Matt Maier via use-livecode
That gives me a 375b corrupted file. So that's progress. On Sat, Jun 3, 2017 at 9:49 PM, Scott Rossi via use-livecode < use-livecode@lists.runrev.com> wrote: > Remove the first "binfile" usage, so your code reads like this: > > put URL tNewImageLink into URL ("binfile:" & tNewFolder & "/" & >