Re: Shell command syntax in Windows

2014-06-24 Thread Bill Vlahos
I was able to get a dir listing but not at the correct folder. The example I used was to get a directory listing from shell. What I really want to do is send “cmd=show” to the mxie.lnk (shortcut to the application) in the path “C:\ProgramData\Microsoft\Start Menu\Programs\Zultys MX\ . If I navi

Re: Printing Cards to PDF

2014-06-24 Thread Paul Hibbert
Nakia, I tried your script on cards with and without images, I didn't experience any problems at all. Tested with LC 6.6.2 on Mac using OS X 10.8.5 and on Win 7 I can send you my test stack if it's any use. Paul On 2014-06-24, at 2:41 AM, Nakia Brewer wrote: > H card 2 has some images.

Re: Image control in a Background

2014-06-24 Thread Simon
Hi Vaughn, First off "The answer I get is it just takes a long time to learn?" No, but I understand that if you have been a programmer using another language then it is more difficult. Lots of times I just think of a word to describe what I want to do and there it is in the dictionary. This plugin

Re: Image control in a Background

2014-06-24 Thread Scott Rossi
Vaughn: I can't tell if you understand the basics of groups/backgrounds, so apologies if this is redundant for you. First, try to forget anything Hypercard related and start over. In fact, it will probably help you ignore the term "background" and consider groups only (the terms "group" and "bac

Re: Shell command syntax in Windows

2014-06-24 Thread Mike Bonner
Easiest way to do it with shell is with the absolute path. Or you could cd to the location, and use a semicolon to string two commands like so: put shell(merge("cd [[path]] ; dir")) into field one -- changes directory, then gets the dir. Or this with an absolute path. put the shortfilepath of "c:\

Re: "nan" v. try-catch for arithmetic

2014-06-24 Thread Mark Wieder
Graham- Tuesday, June 24, 2014, 11:02:56 AM, you wrote: > I get a result, "nan", and the catch doesn't fire. Why not? Maybe > someone can explain what the engine is doing here - or is it just an > obscure bug? It fires for me in either case. To get the actual error code, change the code to try

Re: Shell command syntax in Windows

2014-06-24 Thread Mark Wieder
Bill- Monday, June 23, 2014, 7:45:52 PM, you wrote: > I’m trying to run a shell command on Windows and the following > code gives an error on the “put the wheel of “dir” into field “one”. > The goal of the script below is to get a directory listing in the Programs > folder. > Setup: A field “o

Re: Image control in a Background

2014-06-24 Thread Vaughn Clement
Hi Your comments: The "then" is superfluous, so its removal shouldn't affect anything. A "then" can only occur at the end of a line that begins with "if". The engine must be ignoring the extra "then" because it isn't throwing an error. At any rate, you don't need it. Question: Not new to coding b

Re: "nan" v. try-catch for arithmetic

2014-06-24 Thread Jerry Jensen
On Jun 24, 2014, at 11:02 AM, Graham Samuel wrote: > If I put > > sqrt(-1) > > that fires too. But if I put > > (-8)^(2/3) > > I get a result, "nan", and the catch doesn't fire. Why not? Gee, you'd expect sqrt(-1) and (-1)^(1/2) to evaluate the same. Apparently, the sqrt function checks th

Re: "nan" v. try-catch for arithmetic

2014-06-24 Thread Mark Schonewille
Hi Graham, If I execute (-8)^(2/3) in LiveCode 6.6.1, I get "execution error at line 7 (pow: range error (overflow)), char 17", i.e. an execution error instead of NaN. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Tw

Re: Image control in a Background

2014-06-24 Thread J. Landman Gay
On 6/24/2014, 10:35 AM, Vaughn Clement wrote: I am somewhat closer to the solution? I tested the correction that J. Landman Gay suggested where I remove the "then" at the end of the this line: "set the defaultfolder to specialFolderPath ("documents") & "/photos/" then <--" This had the effect of

Re: "nan" v. try-catch for arithmetic

2014-06-24 Thread J. Landman Gay
On 6/24/2014, 1:02 PM, Graham Samuel wrote: I get a result, "nan", and the catch doesn't fire. Why not? Maybe someone can explain what the engine is doing here - or is it just an obscure bug? A "catch" only triggers when there is a script error. In this case there is no error, "nan" is a legit

Re: Nested Repeat loops

2014-06-24 Thread Peter Haworth
Submitted QCC report 12691 for this. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jun 21, 2014 at 3:00 PM, Alex Tweedly wrote: > On 21/06/2014 15:22, Richard Gaskin

"nan" v. try-catch for arithmetic

2014-06-24 Thread Graham Samuel
Hi I have a bit of code that looks for input errors where the user is supposed to write an arithmetic expression into a field. The relevant fragment looks like this try put value(fld "myField") into testResult catch answer "oops, that's not a valid real number. Try again" exit mouseUp

Re: Image control in a Background

2014-06-24 Thread Vaughn Clement
Hi I am somewhat closer to the solution? I tested the correction that J. Landman Gay suggested where I remove the "then" at the end of the this line: "set the defaultfolder to specialFolderPath ("documents") & "/photos/" then <--" This had the effect of not updating the image in any card. When I

Re: Printing Cards to PDF

2014-06-24 Thread Nakia Brewer
H card 2 has some images. Think this is where the issue lies. If I print card 1 twice (which has no images) it works as expected... Sent from my iPhone > On 24 Jun 2014, at 7:31 pm, "Nakia Brewer" > wrote: > > FWIW I changed the loop to just print card 2 twice and am still seeing the >

Re: Printing Cards to PDF

2014-06-24 Thread Nakia Brewer
FWIW I changed the loop to just print card 2 twice and am still seeing the error. It seems some sort of automatic scaling is happening after the first print or perhaps after the first print break... Sent from my iPhone > On 24 Jun 2014, at 6:57 pm, "Nakia Brewer" > wrote: > > Hi, > > I have

Printing Cards to PDF

2014-06-24 Thread Nakia Brewer
Hi, I have a mobile App (iOS) that prints 2 template cards from a sub stack to a 2 page pdf file. This has worked flawlessly in LC5.5.3 but seems to fail in 6.6.2 (have tried a few variants of 6.6.2). When I say 'fail' I mean that the first card seems to print at half size (in top LH Quadrant)

Re: [OT] I am giving away Colin´s printed book "LiveCode Mobile Development" to someone in germany

2014-06-24 Thread Matthias Rebbe | M-R-D
Hi again, the book has found its new owner. Regards Matthias Am 24.06.2014 um 09:34 schrieb Matthias Rebbe | M-R-D : > Hi, > > today i received my Kickstarter package with the printed version of Colin´s > excellent book about LC Mobile Development. > > As i already own one copy of the pri

[OT] I am giving away Colin´s printed book "LiveCode Mobile Development" to someone in germany

2014-06-24 Thread Matthias Rebbe | M-R-D
Hi, today i received my Kickstarter package with the printed version of Colin´s excellent book about LC Mobile Development. As i already own one copy of the printed book, i would like to give away the other one for free (i even take the shipping costs ) to someone living in Germany. And no, yo