Re: Suffixes Rename_Anomaly - Renaming batch files in Livecode

2010-12-12 Thread stephen barncard
Thanks for responding, Scott. I will check the stack again. It's about as simple as I can make it. If files weren't created, then obviously nothing else will happen. For the demonstration to work a group of files must be created with the names that are in the left hand column. These files are re

Re: Suffixes Rename_Anomaly - Renaming batch files in Livecode

2010-12-12 Thread stephen barncard
Good one Mike. Now I have to find out how to detect and filter the damn things. The list of songs on the right comes from some very old CD and DAT labeling stacks that were saved as RTF. What's happening is that I'm transferring all my DAT tapes to a hard drive archive, but all I get are files n

Re: Suffixes Rename_Anomaly - Renaming batch files in Livecode

2010-12-12 Thread Mike Bonner
Can you do something like.. if char -6 of item 2 of tln is not a character then put empty into char -6 of item 2 of tln? Haven't tried it here. On Sun, Dec 12, 2010 at 1:22 AM, stephen barncard < stephenrevoluti...@barncard.com> wrote: > Good one Mike. Now I have to find out how to detect and f

Re: Suffixes Rename_Anomaly - Renaming batch files in Livecode

2010-12-12 Thread Mike Bonner
Assuming the strangeness is reliable, this should solve the issue. put replacetext(b,"[^a-zA-Z]\.",".") into b On Sun, Dec 12, 2010 at 1:25 AM, Mike Bonner wrote: > Can you do something like.. if char -6 of item 2 of tln is not a character > then put empty into char -6 of item 2 of tln? > Have

Re: RevServer set-up on OSX Server

2010-12-12 Thread Keith Clarke
Andre, Thanks for playing this new game(!) but it looks like round 2 may take a while yet... I prepared my home server with a new virtual host for revserver development; added a dyndns host to access the server from the Internet and tested with my iPhone; added revserver with CGI settings, etc.

Re: How to write the "|" char in a script

2010-12-12 Thread André Bisseret
Le 11 déc. 2010 à 21:51, Keith Clarke a écrit : > ...I'd recommend PopChar for Mac - any character is just a click away. Thanks much Keith for your reply. I had a quick look at the ergonis site ; PopChar seems to be a very usefull tool indeed! I will go back there to see their video and conside

Re: Something strange with On-Rev

2010-12-12 Thread Medard
Alex Tweedly wrote: > That's just the way "ls -l" works . > > if the modification date is a while ago, words 6 - 8 contain the date, > month and year > if the modification date is recent enough, words 6 - 8 contain the date, > month and time Okay! You solved the mystery :-) ___

Re: How to write the "|" char in a script

2010-12-12 Thread André Bisseret
Le 11 déc. 2010 à 22:01, Colin Holgate a écrit : > > On Dec 11, 2010, at 3:51 PM, Keith Clarke wrote: > >> ...I'd recommend PopChar for Mac - any character is just a click away. > > Alternately you can go to Keyboard in System Preferences, and check the box > that says "Show Keyboard & Charac

A curious script editor error on saving a stack

2010-12-12 Thread Medard
As I was testing some scripts on a demo stack, I got a curious error... It seems that this error lies in the script editor; a figure worthing 1000 words, please go and see here: http://medard.on-rev.com/tempo/erreur_livecode.PNG I quitted LC a number of times, saved the stack under a new name,

Re: How to write the "|" char in a script

2010-12-12 Thread Keith Clarke
...yes, I have their productivity bundle in my personal tool-belt. Key-Cue reminds me of short-cuts by just holding down the ⌘ key (which is one of my PopChar favourites!) Best, Keith.. On 12 Dec 2010, at 10:45, André Bisseret wrote: > > Le 11 déc. 2010 à 21:51, Keith Clarke a écrit : > >> ..

Re: How to write the "|" char in a script

2010-12-12 Thread André Bisseret
Le 12 déc. 2010 à 00:32, a écrit : > I often use it as a item delimiter and on my MacPro keyboard it is Shift > backslash, the last key to the right in the third row from the top. > > Joe Wilkins I had tried that but, on my MacBook Pro (french) shift backslash does not work (return backslas

Re: A curious script editor error on saving a stack

2010-12-12 Thread Mark Schonewille
Hi Medard, Cards have no text. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 How to receive a free Color Converter license http://qurl.tk/kv (read the condition

Re: A curious script editor error on saving a stack

2010-12-12 Thread Medard
Mark Schonewille wrote: > Cards have no text. Okay, you're right! I took a more thorough look, and it appears that there were a faulty card script, with ancient test pieces of code ;-> ___ use-livecode mailing list use-livecode@lists.runrev.com Pleas

Re: RevServer set-up on OSX Server

2010-12-12 Thread Andre Garzia
irgh at least the revserver part worked right? What I do here is this: * I use superduper to make a bootable clone of my HD in an external Hard Drive. * In the rare cases that my mac goes crazy, I reboot from the external hd and then fix the problem. most of the times my mac will not hang d

Re: How to write the "|" char in a script

2010-12-12 Thread Colin Holgate
On Dec 12, 2010, at 5:55 AM, André Bisseret wrote: > I have the "Show keyboard & character viewer" checked. > But I don't find it on my Mac! By now you should have a keyboard menu near the right end of your menu bar. Mine is between the AirPort and Sound icons. It would look like a French flag

Re: How to write the "|" char in a script

2010-12-12 Thread André Bisseret
Le 12 déc. 2010 à 16:28, Colin Holgate a écrit : > > > On Dec 12, 2010, at 5:55 AM, André Bisseret wrote: > >> I have the "Show keyboard & character viewer" checked. >> But I don't find it on my Mac! > > By now you should have a keyboard menu near the right end of your menu bar. > Mine is be

closeField and the clear command

2010-12-12 Thread Bill Vlahos
The docs say that if you "put" something from a script into a field no closeField message is sent. This appears to be the same as if you delete (menuItem Clear) as well. Is this the correct behavior because the docs don't mention it? Bill Vlahos _ InfoWallet (http://www.infowall

Re: How to write the "|" char in a script

2010-12-12 Thread Colin Holgate
On Dec 12, 2010, at 11:31 AM, André Bisseret wrote: > > I did not have the idea to have a look there ; I never noticed these > "Character Viewer" and "Keyboard Viewer" in this menu! Well, they weren't there until a short while ago when you made that selection in the system preferences! __

Re: RevServer set-up on OSX Server

2010-12-12 Thread Keith Clarke
On 12 Dec 2010, at 13:37, Andre Garzia wrote: > irgh > > at least the revserver part worked right? I don't know!! I was rebooting to allow me to copy over the test page when it died (aaargh!) > > What I do here is this: > > * I use superduper to make a bootable clone of my HD in an extern

Re: closeField and the clear command

2010-12-12 Thread Peter Brigham MD
On Dec 12, 2010, at 11:35 AM, Bill Vlahos wrote: The docs say that if you "put" something from a script into a field no closeField message is sent. This appears to be the same as if you delete (menuItem Clear) as well. Is this the correct behavior because the docs don't mention it? This a

selectionChanged message

2010-12-12 Thread Peter Haworth
I have a front script that intercepts the selectionChanged message to deal with some special handling of datagrids. The dictionary says that selectionChanged is "Sent to a field or player when the selection is changed." Obviously the datagrid message should be added to that description bu

OT: Powers of Ten

2010-12-12 Thread Mark Wieder
Completely off any topic, but it's Sunday, so... http://micro.magnet.fsu.edu/primer/java/scienceopticsu/powersof10/ -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe

Re: OT: Powers of Ten

2010-12-12 Thread Colin Holgate
On Dec 12, 2010, at 2:08 PM, Mark Wieder wrote: > Completely off any topic, but it's Sunday, so... > > http://micro.magnet.fsu.edu/primer/java/scienceopticsu/powersof10/ Here's something related, a screen recording of a museum kiosk I programmed ten years ago, for the planetarium in NYC: http

Re: OT: Powers of Ten

2010-12-12 Thread Pierre Sahores
Du guidon à la selle, il reste manifestement de la place... ;-) > Le 12 déc. 2010 à 20:08, Mark Wieder a écrit : > Completely off any topic, but it's Sunday, so... > > http://micro.magnet.fsu.edu/primer/java/scienceopticsu/powersof10/ > > -- > -Mark Wieder > mwie...@ahsoftware.net > > >

Re: OT: Powers of Ten

2010-12-12 Thread Pierre Sahores
Colin, Links seems to be out of date there (error 404). Best regards, Pierre Le 12 déc. 2010 à 20:50, Colin Holgate a écrit : > > On Dec 12, 2010, at 2:08 PM, Mark Wieder wrote: > >> Completely off any topic, but it's Sunday, so... >> >> http://micro.magnet.fsu.edu/primer/java/scienceoptics

Re: OT: Powers of Ten

2010-12-12 Thread Colin Holgate
On Dec 12, 2010, at 2:53 PM, Pierre Sahores wrote: > Colin, > > Links seems to be out of date there (error 404). Thanks, I forgot that I was exporting them as MP4: http://xfiles.funnygarbage.com/~colinholgate/video/planetarium/SS.mp4 http://xfiles.funnygarbage.com/~colinholgate/video/planetar

Text Wrapping

2010-12-12 Thread Warren Kuhl
I understand that when you have text wrapping on a field, it uses spaces to wrap words. I have situations where the "word" length (data doesn't have spaces) is longer then my field length and the text doesn't wrap. has anyone encountered this? If so...how did you deal with this? Thanks, Warren

Re: OT: Powers of Ten

2010-12-12 Thread Pierre Sahores
Amazing, Thanks Colin ! Pierre Le 12 déc. 2010 à 20:58, Colin Holgate a écrit : > > On Dec 12, 2010, at 2:53 PM, Pierre Sahores wrote: > >> Colin, >> >> Links seems to be out of date there (error 404). > > Thanks, I forgot that I was exporting them as MP4: > > http://xfiles.funnygarbage.com

Re: Text Wrapping

2010-12-12 Thread Mark Schonewille
Hi Warren, Whenever a line is wider than the formattedWidth, you could add a dash somewhere in the middle of the last word of that line. Unfortunately, you might need to create a dictionary for this. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage

Re: closeField and the clear command

2010-12-12 Thread J. Landman Gay
On 12/12/10 10:35 AM, Bill Vlahos wrote: The docs say that if you "put" something from a script into a field no closeField message is sent. This appears to be the same as if you delete (menuItem Clear) as well. Is this the correct behavior because the docs don't mention it? Yes. Scripts don't

How do you compare negative numbers with positive numbers?

2010-12-12 Thread Charles Szasz
I am computing an average of a series of numbers and then comparing each number with the average, which yields a deviation. Of course, there are instances where a negative deviation will occur when it is below the average. Here is my problem. I need to be able to compare a negative number with

Re: selectionChanged message

2010-12-12 Thread J. Landman Gay
On 12/12/10 12:27 PM, Peter Haworth wrote: I have a front script that intercepts the selectionChanged message to deal with some special handling of datagrids. The dictionary says that selectionChanged is "Sent to a field or player when the selection is changed." Obviously the datagrid message sho

Re: Text Wrapping

2010-12-12 Thread Warren Kuhl
Mark, ThanksI was thinking something like that was the answer. Although I was hoping it wasn't. :) Appreciate the quick response! Warren On Sun, Dec 12, 2010 at 2:17 PM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > Hi Warren, > > Whenever a line is wider than the formatted

Re: How do you compare negative numbers with positive numbers?

2010-12-12 Thread Colin Holgate
On Dec 12, 2010, at 3:20 PM, Charles Szasz wrote: > For example, comparing -3.5 with 2.23. How do you do this? You can use abs to get the positive absolute value, and compare those: put abs(-3.5)>abs(2.23) ___ use-livecode mailing list use-livecode@

Re: OT: Powers of Ten

2010-12-12 Thread Richard Gaskin
And for those who haven't seen it (or those who would enjoy seeing it again), the Eames classic: -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJourn

Re: How do you compare negative numbers with positive numbers?

2010-12-12 Thread Mark Schonewille
Hi Charles, It's been a long time for me, but if I remember well you want either the first differences or the standard deviation. function mean theNumbers return sum(theNumbers)/number of items of theNumbers end mean function firstDifferences theNumbers put mean(theNumbers) into myMean re

Re: OT: Powers of Ten

2010-12-12 Thread stephen barncard
Absolutely beautiful UI ! WOW. On 12 December 2010 11:58, Colin Holgate wrote: > > On Dec 12, 2010, at 2:53 PM, Pierre Sahores wrote: > > > Colin, > > > > Links seems to be out of date there (error 404). > > Thanks, I forgot that I was exporting them as MP4: > > http://xfiles.funnygarbage.com/~c

Re: OT: Powers of Ten

2010-12-12 Thread Pierre Sahores
;-) Einstein's Dream, Unification, String Theory http://www.youtube.com/watch?v=h4_uFU-fKTM Ce Qu'Einstein Ne Savait Pas Encore 1/3 http://www.dailymotion.com/video/xhzi7_ce-qu-einstein-ne-savait-pas-encore_news Le 12 déc. 2010 à 21:33, Richard Gaskin a écrit : > And for those who haven't s

Re: How do you compare negative numbers with positive numbers?

2010-12-12 Thread Charles Szasz
Colin, Thanks a lot! I had forgotten about the absolute function. I now have to figure out how to do comparisons of this sort so that if a negative number is bigger than a positive value that it is reported as a weakness (such as -3.5 compared with a value of 2.23). And if a positive number is

Strange edit anomaly

2010-12-12 Thread Joe Lewis Wilkins
Anyone... >From my edit menu - in the app - if I select some text in my stack and choose >Cut or Copy and then Paste, everything works fine; but, if I use the Command >Key equivalents, 2 of the strings copied or cut are pasted; though the >clipBoardData only shows a single string. I thought it

Re: OT: Powers of Ten

2010-12-12 Thread Terry Judd
Really nice Colin and they don't look at all dated. Are they still in use? Terry... On 13/12/10 6:58 AM, "Colin Holgate" wrote: > > On Dec 12, 2010, at 2:53 PM, Pierre Sahores wrote: > >> Colin, >> >> Links seems to be out of date there (error 404). > > Thanks, I forgot that I was exportin

Edit Anomaly

2010-12-12 Thread Joe Lewis Wilkins
Hmn! Turns out I don't have to implement these command keys. LC does it for me, so my routine was making one paste and LC followed it up with another one. Sometimes LC does too much for us. Joe Wilkins ___ use-livecode mailing list use-livecode@list

Re: Edit Anomaly

2010-12-12 Thread Peter Haworth
Interesting that LC implements the command key versions of cut and paste yet doesn't create the scripts for them when you create a menu. Pete Haworth On Dec 12, 2010, at 4:27 PM, Joe Lewis Wilkins wrote: Hmn! Turns out I don't have to implement these command keys. LC does it for me, so my ro

Re: selectionChanged message

2010-12-12 Thread Peter Haworth
Thanks Jacquie. Here's an interesting one. I put an answer information at the top of my selectionChanged handler so I could tell what might be triggering it. Clicking on the line number to set a debug break point didn't trigger it. Moving around with the script editor window (with arrow

Re: Edit Anomaly

2010-12-12 Thread Joe Lewis Wilkins
Yeah Peter. And then not enough. It's all trial and error. Mostly error. I guess if I were a full time LC coder, this wouldn't be so confusing, but it is. I just checked the Undo command key, think it might also be implemented by LC, but doesn't appear that it is. At least not to my satisfaction

Re: Edit Anomaly

2010-12-12 Thread J. Landman Gay
On 12/12/10 6:40 PM, Peter Haworth wrote: Interesting that LC implements the command key versions of cut and paste yet doesn't create the scripts for them when you create a menu. It doesn't create them in a standalone, you have to script it. What was probably happening to Joe's stack is that t

Re: selectionChanged message - Correction

2010-12-12 Thread Peter Haworth
I think I used the wrong terminology when I said the menu bar of the Application Browser. What I meant was the window bar (?), the area at the top of the window that has the window title and the close, minimise and maximise buttons (I didn't click on any of those, just in a blank area of t

Re: Edit Anomaly

2010-12-12 Thread Joe Lewis Wilkins
But does it continue to double paste? I have created a standalone in some time to see what's missing there. Joe Wilkins On Dec 12, 2010, at 4:50 PM, J. Landman Gay wrote: > On 12/12/10 6:40 PM, Peter Haworth wrote: >> Interesting that LC implements the command key versions of cut and paste >>

Re: How do you compare negative numbers with positive numbers?

2010-12-12 Thread Colin Holgate
On Dec 12, 2010, at 3:20 PM, Charles Szasz wrote: > For example, comparing -3.5 with 2.23. How do you do this? This may sum it up: While Google recently updated its mobile version of Google Docs to support editing on smartphones, it acknowledged the feature was somewhat limited. The new vers

Re: How do you compare negative numbers with positive numbers?

2010-12-12 Thread Colin Holgate
For anyone slightly confused by that, I was telling a colleague about changes in Google Docs for iPad, and pasted the reply into th ewrong window! Hope some of you were intrigued anyway. ___ use-livecode mailing list use-livecode@lists.runrev.com P

savingStandalone Problem

2010-12-12 Thread Peter Haworth
I have the following code in a savingStandalone handler in the script of my main stack: go to card "FieldPrompt" of stack "Prompts" as modal if the dialogData is not "Cancel" then set the BandTrakVersion of stack "BandTrak" to the dialogData end if The modal window is displa

Re: closeField and the clear command

2010-12-12 Thread Peter Haworth
..and maybe setting the menuHistory property of a button which generates a menuPick message. I know that's not something a user does directly but it does get set when the user selects an item from an option menu. I actually like that. I can set the label of an option menu button if I don

Re: OT: Powers of Ten

2010-12-12 Thread Colin Holgate
On Dec 12, 2010, at 7:01 PM, Terry Judd wrote: > Really nice Colin and they don't look at all dated. Are they still in use? I'm not sure. It's a few years since I was there, and at that time the size scales ones were still in use, on four screens in this area: http://upload.wikimedia.org/wikip

Re: OT: Powers of Ten

2010-12-12 Thread Terry Judd
On 13/12/10 12:14 PM, "Colin Holgate" wrote: > The kiosks were done using Director 7, and the animations made mostly with > After Effects. I made the spiral galaxy using 50,000 sprites in Director, and > some of the forming of planets were done using Director too. Wow! Director really was (and