Re: sort question for today

2014-09-29 Thread Paul Hibbert
Larry, This should work… put line 7 to -1 of fld myStats into tLinesToSort sort lines of tLinesToSort by word 2 of each put tLinesToSort into line 7 to -1 of fld myStats You can only sort all Lines or Items of a container, so if you need to sort specific lines or items, you must put

OT: Need a quick look into your OS X 10.9

2014-09-29 Thread Tiemo Hollmann TB
Hello, I accidentially changed the rights on my /users/ dir on OS X 10.9.5 with chmod and I am not sure what the original setting was. For testing my app with different user rights I need to know the original rights of the dirs: /Users/ and /Users/Shared/ for the different user groups. If you

Re: OT: Need a quick look into your OS X 10.9

2014-09-29 Thread Thierry Douez
Hallo Tiemo, Send to you privately... Regards, Thierry Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage 2014-09-29 11:11 GMT+02:00 Tiemo Hollmann TB toolb...@kestner.de: Hello, I accidentially changed the

Re: sort question for today

2014-09-29 Thread larry
Hi Paul, That is essentially what I did, but not as elegantly as your solution. But it works and it is very quick, so I'm happy. Thanks very much for helping me see an even better way. Larry - Original Message - From: Paul Hibbert paulhibb...@mac.com To: How to use LiveCode

Re: use-livecode Digest, Vol 132, Issue 61

2014-09-29 Thread bernd . gottwald
Bis zum 12.10.2014 bin ich nicht verfügbar. Ich werde meine Emails nicht lesen. In dringenden Fällen erreichen Sie mich über mein Mobiltelefon. I will be out of office until 12.10.2014. I won't read me emails. In urgent matter please call me on my mobile.

Re: Replacing Characters

2014-09-29 Thread JB
The code I posted is not accurate. For one thing it should have been put 71 into i because the return will make the 72 char in the line. Another problem is it does not end with the last line being 72 chars or less. Anyway this is a start to the fix. John Balgenorth On Sep 28, 2014, at 3:44 PM,

How do you grant executing rights to your app for all users?

2014-09-29 Thread Tiemo Hollmann TB
Hello, When creating a new standalone, this standalone doesn't have executing rights for other users on OS X. Everytime after creating the standalone I grant all users executing rights with chmod -R a+rx * This works for me, but because my OS X knowledge is very limited, I am interested, if

Re: Replacing Characters

2014-09-29 Thread JB
Instead of my goofy repeat command your replace can be modified to some thing like the code below. command replace_maybe @rString repeat with i = 58 to length( rString ) step 58 put return after char i of rString end repeat end replace_maybe But the problem is similar to what

Re: Problem/strange behavior with older version of Mergpop (2.0.7) and Retina screens?

2014-09-29 Thread Chris Sheffield
William, I’ve run into this as well. I’m still not totally sure where the problem lies. I don’t know how you’re saving your image, but in my case I am taking a screenshot. I finally got it to work correctly with: export snapshot from this card to file [file_path] as PNG Hopefully that’ll work

Re: How do you grant executing rights to your app for all users?

2014-09-29 Thread Earthednet-wp
Tiemo, What I do is use the finder for this action. Single click on the app bundle, use the menu at the top to get info. An info window comes up and there is a little popup at the bottom where you can set access rights. You should then use the adjacent popup to make all files in the same

Re: Problem/strange behavior with older version of Mergpop (2.0.7) and Retina screens?

2014-09-29 Thread Earthednet-wp
There was a problem with snapshot that, I think, got fixed in 6.7, or possibly one of the 6.6 releases. I use snapshot heavily in my app, reported a bug a while ago, and it was verified and fixed. You might try one of the newer releases. I'm doing all of my work on 7.0 now, and the app I'm

File Walker

2014-09-29 Thread Bob Sneidar
Hi all. I remember reading in a post that someone had made a stack that would walk through a file folder and enumerate all the files and folders. I cannot for the life of me find it in the Livecode Share site or the forums. I cannot search for “list files” or “find all files” because the

Re: General error function? (was Re: Should dispatch be extended for timers?)

2014-09-29 Thread Bob Sneidar
Doesn’t Applescript have an On Error function handler? I was looking for something of this sort when I first began working with Revolution and of course was directed to try/catch, but having an on error function, and then being able to turn off debugging would be a cleaner way of doing it. This

Re: File Walker

2014-09-29 Thread Richard Gaskin
http://www.sonsothunder.com/devres/livecode/tips/file007.htm -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.com

Re: File Walker

2014-09-29 Thread Bob Sneidar
Thanks Richard! I will work this into what I am doing, and also take the time to study what it was I was doing wrong. Bob S On Sep 29, 2014, at 09:01 , Richard Gaskin ambassa...@fourthworld.com wrote: http://www.sonsothunder.com/devres/livecode/tips/file007.htm -- Richard Gaskin

Re: Delete columns... How?

2014-09-29 Thread Bob Sneidar
Might just be simpler to put the data into a memory based sqLite table, then delete the column and put the data back into a string list. But of course that begs the question, why are you not using arrays and sql tables in the first place? I’ve pointed out before that the array retuned in Trevor

Re: File Walker

2014-09-29 Thread JB
Here is a link for a file and folder lister that uses recursive. http://lessons.runrev.com/m/4071/l/17080-files-and-folders-part-2 It appears recursive is limited to 400,000. As for the File Walker link I tried it in one of my folders that has a lot of files and subfolders and it did not work

convertTextToBinary

2014-09-29 Thread JB
A few years ago there was a discussion about converting ascii to binary code and ff I am correct the code below was the final version. function convertTextToBinary varText --THE FASTEST repeat with n = 1 to the number of chars of varText put chartonum(char n of varText) into

Re: convertTextToBinary

2014-09-29 Thread JB
This will do it. function convertTextToBinary varText --THE FASTEST repeat with n = 1 to the number of chars of varText add 1 to x put chartonum(char n of varText) into theNum put baseConvert(theNum,10,2) into tBaseConverted put char -8 to -1 of

Re: getting data from the memory space of a hung app

2014-09-29 Thread David Simpson
Phil, You would probably have to prepare in advance for a situation like this, and use arrayEncode to create a binary form of the array and save it to disk. Maybe you would do this as certain intervals in preparation for a possible crash. Otherwise, there are debugging/hacking tools which can

Re: getting data from the memory space of a hung app

2014-09-29 Thread Phil Davis
Thanks David. Ah yes... I'm finding some of these as I Google memory scraping tools. Phil On 9/29/14 12:32 PM, David Simpson wrote: Phil, You would probably have to prepare in advance for a situation like this, and use arrayEncode to create a binary form of the array and save it to disk.

getting data from the memory space of a hung app

2014-09-29 Thread Phil Davis
Hi folks, Are you aware of any way to save the in-memory data of a standalone app that's currently not responding? This is on a Mac, probably OS 10.8.x or maybe 10.9.x. Right-clicking the app's icon in the Dock gives you the force quit option. The data is in an array. I created a stack my

Re: getting data from the memory space of a hung app

2014-09-29 Thread Richard Gaskin
Phil Davis wrote: Thanks David. Ah yes... I'm finding some of these as I Google memory scraping tools. Unfortunately, even if you could sort through a core dump, if my understanding of arrays is correct it'll be very difficult to piece together the many different memory locations where array

Re: getting data from the memory space of a hung app

2014-09-29 Thread Phil Davis
Good point, Richard. Thanks. Phil On 9/29/14 12:55 PM, Richard Gaskin wrote: Phil Davis wrote: Thanks David. Ah yes... I'm finding some of these as I Google memory scraping tools. Unfortunately, even if you could sort through a core dump, if my understanding of arrays is correct it'll be

Re: Delete columns... How?

2014-09-29 Thread Michael Doub
Bob, how do you control whether SQLite pages the table in from disk or maintains it entirely in memory? -= Mike On Sep 29, 2014, at 12:14 PM, Bob Sneidar bobsnei...@iotecdigital.com wrote: Might just be simpler to put the data into a memory based sqLite table, then delete the column and

Re: File Walker

2014-09-29 Thread Alex Tweedly
recursive is limited to 400,000 ? Is that 400,000 files, or folders, or ?? The File Walker link (i.e. http://www.sonsothunder.com/devres/livecode/tips/file007.htm ) should work - it would be very interesting to find out why it doesn't (maybe URL encoding of the file names??) However, it too

Re: File Walker

2014-09-29 Thread JB
That is a good question. The way I found out it was limited is I was using the code supplied in the File Lister 2 tutorial. I was accessing a folder with a lot of files and subfolders but I do not think it had 400,000 files and sub folders in it so I am thinking it is limited to 400,000

Re: File Walker

2014-09-29 Thread JB
I found some folders buried tn the folder I was accessing and I forgot where I stored them. I do have more than 400,000 files in the folder so it might be files and folders it is counting. The script was going to list all files and all folders. John Balgenorth On Sep 29, 2014, at 4:47 PM, JB

Re: use-livecode Digest, Vol 132, Issue 62

2014-09-29 Thread bernd . gottwald
Bis zum 12.10.2014 bin ich nicht verfügbar. Ich werde meine Emails nicht lesen. In dringenden Fällen erreichen Sie mich über mein Mobiltelefon. I will be out of office until 12.10.2014. I won't read me emails. In urgent matter please call me on my mobile.

Re: File Walker

2014-09-29 Thread Kay C Lan
If I enter the following into OS X's Terminal: find $PWD the output is the over half a million folders and files in my /Users/[your name here]/ directory. So none of the System level stuff or anything from other User accounts if they exist on your computer. It does include though all hidden

User scroll direction preference

2014-09-29 Thread John
I have a group with a scroll bar. Groups with scroll bars, as near as I can tell, don’t support a mouse scroll wheel so I wrote a script (handling the rawKeyDown) to provide my own. So far so good. In OSX, the user can set an OS preference to either scroll the content with the