Re: iPhone kiosk

2014-08-26 Thread Mark Wilcox
Obviously I don't know the details but if you're going to run in a single app mode, then complete control of the phone while your app is running is possible without a jailbreak - it's just control whilst in Springboard and other people's apps you need to jailbreak for. -- Mark Wilcox

colorized scripts

2014-08-26 Thread Jacques Hausser
I want a button to automatically put the script of any control in a field, showing the script editor's colors... I'm probably completely dumb, but I didn't find the trick. Thanks for every hint! Jacques ___ use-livecode mailing list

Re: Window manager plugin?

2014-08-26 Thread Peter M. Brigham
Nice. Don't forget to reset the templatestack. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Aug 25, 2014, at 3:49 PM, Mark Schonewille wrote: John, Here's my complete solution: on mouseUp put item 1 of the screenLoc comma round(item 2 of the

Re: colorized scripts

2014-08-26 Thread Peter M. Brigham
Mark Weider came up with this trick, which I use in my library stack (a set of utility handlers, click on the name of a handler and the script is displayed in a field, properly colorized). put thisScript into fld script -- now colorize script -- thanks to Mark Wieder, of the useRev

Re: Window manager plugin?

2014-08-26 Thread JB
Thank you very much, Mark!! That is really nice! John Balgenorth On Aug 25, 2014, at 12:49 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: John, Here's my complete solution: on mouseUp put item 1 of the screenLoc comma round(item 2 of the screenLoc / 3) into

iOS and effective working screenRect

2014-08-26 Thread Jim sims
When I add the following to my iOS app I get the same results (0,0,640,704) for each. Not helpful. How do i get the loc or top of the keyboard (in 3.5, 4.0, and iPad sizes) so i can properly move fields out of the way of the keyboard? on keyboardActivated answer keyboard activated cr the

Re: Window manager plugin?

2014-08-26 Thread Mark Schonewille
Hi Peter, You're right. I thought of it, but forgot to add it. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468

Re: colorized scripts

2014-08-26 Thread Jacques Hausser
Thanks, Peter, As I'm checking version 7.10 DP, your solution is not working... I rummaged into the revNewScriptEditor stack and found that revSEColorize doesn't exist anymore (or it's hidden somewhere else). But it's even simpler! here the script of my button: on mouseUp put the script of

Re : Speed

2014-08-26 Thread Beat Cornaz
Works like a charm, Geoff. Great way of tackling the thing, very original. function P2 N,B -- N is the depth to permute -- B is the ASCII value to start from -- so P2(1,49) returns 21 cr 12 -- P2(2,53) returns 675 cr 765 cr 756 cr 576 cr 657 cr 567 if N = 0 then return numToChar(B) cr

Re: colorized scripts

2014-08-26 Thread Peter M. Brigham
On Aug 26, 2014, at 9:19 AM, Jacques Hausser wrote: As I'm checking version 7.10 DP, your solution is not working... I rummaged into the revNewScriptEditor stack and found that revSEColorize doesn't exist anymore (or it's hidden somewhere else). But it's even simpler! here the script of my

Re: Speed

2014-08-26 Thread Peter M. Brigham
On Aug 26, 2014, at 9:42 AM, Beat Cornaz wrote: Works like a charm, Geoff. Great way of tackling the thing, very original. function P2 N,B -- N is the depth to permute -- B is the ASCII value to start from -- so P2(1,49) returns 21 cr 12 -- P2(2,53) returns 675 cr 765 cr 756 cr 576 cr

Sending Terminal Command (Python) Using LiveCode?

2014-08-26 Thread JOHN PATTEN
Hi All, I manage a lot of accounts in our Google Apps for Education deployment. I have used LiveCode to automate a lot of the csv creation for this process. I use a Terminal application (GAM) created in Python to do some of this too. I would like to be able to call the GAM Python scripts via

Re: Window manager plugin?

2014-08-26 Thread J. Landman Gay
On 8/26/2014, 7:01 AM, JB wrote: Thank you very much, Mark!! That is really nice! Unfortunately, I couldn't get Mark's answer and ask handlers to work on Mac. On Windows the default position is at the location of the default stack, which is why it works there. On Mac, it looks like you'll

Re: Speed

2014-08-26 Thread Peter M. Brigham
A followup on how to handle duplicate characters in the permuting algorithm. The following seems to work, not sure how it will scale. tString can contain any characters -- duplicates, digits, spaces, whatever. function permute tString -- returns all the permutations in the string tString

Re: permuting a string (was Re: Speed)

2014-08-26 Thread Peter M. Brigham
A tune-up on the earlier solution to listing permutations of a string. Obviously, no need to load an array with the values of the characters, just use char c of tString. Also, if tString contains duplicate letters then there will be duplicate entries in the output, so those should be stripped

Re: Population puzzle

2014-08-26 Thread Peter M. Brigham
I haven't tried to actually write script for this, but it occurs to me that you could first find all the sets of numbers whose last digits add up to a multiple of 10 (or whose last 2 digits add up to a multiple of 100, etc), then iterate through a much smaller group of sets to test for their

Re: Open App/file

2014-08-26 Thread Charles Szasz
Colin, What is the path when a PDF document is with your app? Sent from my iPad ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Open App/file

2014-08-26 Thread Colin Holgate
Look in the dictionary for specialFolderPath. On Aug 26, 2014, at 2:30 PM, Charles Szasz csz...@me.com wrote: Colin, What is the path when a PDF document is with your app? Sent from my iPad ___ use-livecode mailing list

Re: Window manager plugin?

2014-08-26 Thread Mark Schonewille
Jacque, It is true that it doesn't work on Mac, but I never needed something like this on Mac. I made this specifically for Windows. On Mac I use as sheet most of the time. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage:

mp3 files not playing on Windows

2014-08-26 Thread FORD JR., CURT
A client's customer (using Windows) had ordered two modules of a series. Both come with their own set of mp3 files in a folder named media. The two modules use the same code for figuring path names and playing sounds. We've had no problems in either module with other customers, but this one

Re: mp3 files not playing on Windows

2014-08-26 Thread Mark Schonewille
Hi Curt, The first thing I would check is the sound encoding of every file. Are the failing MP3 files encoded differently from the working MP3 files? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter:

mp3 files not playing on Windows

2014-08-26 Thread Curt Ford
Hi Mark, Thanks - they are both 16bit; the one that works is 22.1 kHz, bitrate 56 kbps, the ones that don't work are 44.1 kHz, 128 kbps. But we've delivered many other modules with files at 44.1/128 with no issues. Could that cause a problem on this one computer, or is there something else in

._!

2014-08-26 Thread Richard Gaskin
When copying files from a Mac to a volume formatted with NTFS or other Windows-compatible format, for each Mac file it also creates a second file with the same name but with ._ prepended to it. E.g., this: MyFile1.txt MyFile2.txt ...becomes: ._MyFile1.txt ._MyFile2.txt

Re: colorized scripts

2014-08-26 Thread Jacques Hausser
Le 26 août 2014 à 16:10, Peter M. Brigham pmb...@gmail.com a écrit : On Aug 26, 2014, at 9:19 AM, Jacques Hausser wrote: As I'm checking version 7.10 DP, your solution is not working... I rummaged into the revNewScriptEditor stack and found that revSEColorize doesn't exist anymore (or

Re: Sunset, sunrise, twilight calculations in LC?

2014-08-26 Thread William Prothero
Charles: Your function misses a special case. If the negative number is an integer, you wouldn’t want to subtract 1 from trunc(theNegativeNumber). Best, Bill On Aug 23, 2014, at 1:22 PM, Charles E Buchwald char...@buchwald.ca wrote: Jacquie, I tested my script before I posted it, and it works

Re: ._!

2014-08-26 Thread Mark Wieder
Richard Gaskin ambassador@... writes: When copying files from a Mac to a volume formatted with NTFS or other Windows-compatible format, for each Mac file it also creates a second file with the same name but with ._ prepended to it. Those are Finder information files. The OSX Finder would

Re: ._!

2014-08-26 Thread Richard Gaskin
Mark Wieder wrote: Richard Gaskin ambassador at ... writes: When copying files from a Mac to a volume formatted with NTFS or other Windows-compatible format, for each Mac file it also creates a second file with the same name but with ._ prepended to it. Those are Finder information files.

Re: ._!

2014-08-26 Thread Paul Hibbert
Richard, It seems turning off the '._*' file creation could cause problems with the Apple Finder and some MS Office apps. After a quick search I found an old entry on Mac OS X Hints (MacWorld forum) that states using the 'mv' and 'cp' commands (in Terminal) will move or copy files without the

Re: ._!

2014-08-26 Thread Robert Brenstein
On 26.08.2014 at 23:01 Uhr + Mark Wieder apparently wrote: I used to write scripts to remove them after the fact, but it would be much simpler/saner to just turn that off altogether. Removing them by script afterwards is the way to go. There is a way to tell Finder not to copy them

[ANN] The LiveCode Lab

2014-08-26 Thread RunRevPlanet
Hi, For those who aren't in either of the LiveCode groups on Facebook or don't visit the Forums, here is the announcement about The LiveCode Lab. Are you interested in: * Starting an adventure in server-side coding today, without having to setup your own server. * Designing and creating web

Re: ._!

2014-08-26 Thread Richard Gaskin
Robert Brenstein wrote: There is a way to tell Finder not to copy them to external volumes but I seem to have misplaced the details of achieving that. So far I've only been able to turn up a command to stop the ._DStore files, but not the others. Paul Hibbert wrote: It seems turning off

Re: RunRevLive 2014 Conference Mobile App by livecloud.io

2014-08-26 Thread Mark Talluto
On Aug 23, 2014, at 11:47 AM, Colin Holgate co...@verizon.net wrote: I installed it onto my Kindle Fire HDX. You do notice that the transitions and scrolling in the app are sluggish? Might make for a fun session, making your app run smoothly. Quick note that we have updated the RunRevLive

Re: [ANN] The LiveCode Lab

2014-08-26 Thread Alejandro Tejada
Excellent! :D I just register in. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-The-LiveCode-Lab-tp4682508p4682511.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode

Re: Open App/file

2014-08-26 Thread Charles Szasz
Colin, Thanks! I will check it out. I have a PDF manual in the same folder as my app and I want to include the manual as a menu item that could open by either Acrobat Reader on Windows oryx Preview on OS X. Sent from my iPad ___ use-livecode mailing

Should dispatch be extended for timers?

2014-08-26 Thread Richard Gaskin
I love dispatch, and the more I use it the more I find send murky. With dispatch params seem more natural to me: dispatch somecommand to tSomeObj with tArg2, tArg2 But with send it's less clear how params are handled - here's an example from the forums today: send clearVideo

Re: Should dispatch be extended for timers?

2014-08-26 Thread Scott Rossi
Sounds like a good idea. If dispatch is already fast, a timer would just allow you to slow it down. BTW, I believe using quotes should make your message send-able. send clearVideo LayerAlpha, baseLayer, LayerGraphic, LayerAudio to me in 700 milliseconds Regards, Scott Rossi Creative Director

Re: Sending Terminal Command (Python) Using LiveCode?

2014-08-26 Thread Mark Wieder
John- Tuesday, August 26, 2014, 9:43:13 AM, you wrote: Is calling python scripts possible through LiveCode? …in need of an example :) answer folder find the right folder set the defaulfolder to it put shell(python test.py someargument) works for me. -- -Mark Wieder ahsoftw...@gmail.com

Re: Should dispatch be extended for timers?

2014-08-26 Thread Peter Haworth
Sounds like a great idea to me. I seem to remember that one of dispatch/send is blocking and the other isn't. Could that be a possible reason for the lack of in with dispatch? Pete lcSQL Software On Aug 26, 2014 7:09 PM, Richard Gaskin ambassa...@fourthworld.com wrote: I love dispatch, and the

Re: colorized scripts

2014-08-26 Thread Mark Wieder
Peter- Tuesday, August 26, 2014, 4:53:19 AM, you wrote: Mark Weider came up with this trick, which I use in my library stack (a set of utility handlers, click on the name of a handler and the script is displayed in a field, properly colorized). put thisScript into fld script -- now

Re: Speed

2014-08-26 Thread Geoff Canyon
On Tue, Aug 26, 2014 at 1:57 PM, Peter M. Brigham pmb...@gmail.com wrote: A followup on how to handle duplicate characters in the permuting algorithm. The following seems to work, not sure how it will scale. tString can contain any characters -- duplicates, digits, spaces, whatever. I don't

Re: RunRevLive 2014 Conference Mobile App by livecloud.io

2014-08-26 Thread J. Landman Gay
On 8/26/2014, 7:08 PM, Mark Talluto wrote: Quick note that we have updated the RunRevLive 2014 since its release date. I was just your first Android download. I had to uninstall the one I grabbed off your site before I could download the one from the Play Store (apparently the app build

Re: colorized scripts

2014-08-26 Thread J. Landman Gay
On 8/26/2014, 9:57 PM, Mark Wieder wrote: Peter- Tuesday, August 26, 2014, 4:53:19 AM, you wrote: Mark Weider came up with this trick, which I use in my library stack (a set of utility handlers, click on the name of a handler and the script is displayed in a field, properly colorized).

Re: Should dispatch be extended for timers?

2014-08-26 Thread dunbarx
Hi. Send' can, er, send parameters as well as a command. In a button script: on mouseUp send putArg random(99) random(99) XYZ to me in 5 end mouseUp on putArg var put var end putArg You get pairs of random numbers and the text as well. All parameters come across as a batch.

Re: RunRevLive 2014 Conference Mobile App by livecloud.io

2014-08-26 Thread Mark Talluto
Hi Jacque. You can use your account on as many devices as you like. I bet you accidentally misspelled your email or username. That would be the only way to generate that error. The security is the email authentication. Please let me know if that helps. Sorry about the version number. We will

Asynchronous externals interface

2014-08-26 Thread Paul D. DeRocco
A couple years ago, I asked about the possibility of a mechanism for an external to send a message asynchronously from another thread. My suggestion at the time was to provide a simple signal mechanism, which could dispatch a message previously supplied by a send command: