Re: dates (was: use-livecode Digest, Vol 133, Issue 20)

2014-10-12 Thread Peter M. Brigham
be expressed like this: 20141012 - great for sorting. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use

Re: use-livecode Digest, Vol 133, Issue 20

2014-10-12 Thread Mark Schonewille
this: 20141012 - great for sorting. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode

AW: Re: Codesigning standalones for Mac OS 10.9.5

2014-10-12 Thread Paul Dupuis
On 10/9/2014 8:25 PM, David Beck wrote: Does anybody know what the status is with codesigning standalones built for Mac OS in a way that works with OS 10.9.5? I have not been able to find a definitive answer. I take it this article is out of date?

Re: use-livecode Digest, Vol 133, Issue 20

2014-10-12 Thread stephen barncard
Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 10/11/2014 23:11, stephen barncard wrote: actually I think dates should be expressed like this: 20141012 - great for sorting

problem with counting words

2014-10-12 Thread larry
Hello, I'm posting this to help any other poor saps who run into this insanity: I want to count the words in a field. I have: set the itemDel to space put the number of words of field myTest into field myNumber Here is what happens: I am testing the word count in LiveCode 6.1.1. Believe

Re: problem with counting words

2014-10-12 Thread Colin Holgate
The dictionary clearly says that quoted strings are counted as a single word. If you wanted to work around that as an issue by using the itemDelimiter, you would then look at the number of items in the field, not the number of words. There’s a better option though, you can see how many

Re: problem with counting words

2014-10-12 Thread larry
Please tell me where it says that in the dictionary - I could find nothing about it. I also searched the User Guide for quoted strings and also smart quotes and found nothing. I also searched both the dictionary and the User Guide for truewords and found nothing. So I'm very mystified where

Re: problem with counting words

2014-10-12 Thread Colin Holgate
Here are some of the relevant parts from the Dictionary entry for ‘word’: Summary: Designates a space-delimited or quoted string as part of a chunk expression. Comments: A word is delimited by one or more spaces, tabs, or returns, or enclosed by double quotes. A single word can contain

Re: problem with counting words

2014-10-12 Thread Mark Schonewille
Larry, From the word entry: Comments: A word is delimited by one or more spaces, tabs, or returns, or enclosed by double quotes. A single word can contain multiple characters and multiple items, but not multiple lines. Note: Words are delimited by double quotes (), but not by curved quotes

Re: problem with counting words

2014-10-12 Thread Jerry Jensen
Hi Larry, the itemDel is the character that delimits ITEMS, not words. You could use it to get around your problem with quotes. If you set the itemDel to space, you would then look for the number of ITEMS in the field. Thats not quite the end of it though, because there may not be a space

Re: problem with counting words

2014-10-12 Thread Jerry Jensen
Ah, and then there are tabs to deal with, and double-spaces will count an empty item between. It may be better to just replace the quotes with curly-quotes, count the words, and then replace the curly-quotes back to quotes if you want. On Oct 12, 2014, at 12:20 PM, Jerry Jensen j...@jhj.com

Re: problem with counting words

2014-10-12 Thread J. Landman Gay
On 10/12/2014, 1:56 PM, la...@significantplanet.org wrote: Please tell me where it says that in the dictionary - I could find nothing about it. Under the entry for word: Designates a space-delimited or quoted string as part of a chunk expression. Note: Words are delimited by double quotes

Re: problem with counting words

2014-10-12 Thread J. Landman Gay
On 10/12/2014, 1:17 PM, la...@significantplanet.org wrote: btw, I spoke to a programmer friend of mine (who used to work for Novell) and he said he'd never heard anything like that in the several programming languages he knows. It's been in x-talk since HyperCard. BTW, the trueword token was

Re: problem with counting words

2014-10-12 Thread Terence Heaford
Wouldn’t it be good if RunRev could add WordDelimiter to the dictionary, would that solve the problem. I believe it exists in SuperCard. I thought LiveCode was a more modern version of SuperCard and would surely have this option. All the best Terry On 12 Oct 2014, at 20:20, Jerry Jensen

Re: problem with counting words

2014-10-12 Thread Jerry Jensen
Yes, but the current concept of delimiting words is not a single character. Space, tab, return all work. Now, if you could say: set the wordDel to space or tab or return That would be the ticket! Or you could extend it using that pesky unicode definition and call it trueword. H... On Oct

Re: problem with counting words

2014-10-12 Thread larry
Easy to say, but how does one replace the quotes with curly-quotes? I can't find out where it says how to do that. Sorry I'm so lame. Larry - Original Message - From: Jerry Jensen j...@jhj.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Sunday, October 12, 2014 1:26 PM

Re: problem with counting words

2014-10-12 Thread larry
Hi Terry, Here is the real problem. I don't know much. I'm sitting here assuming that a word is a word, regardless of whether it is inside quotes. Now I find out there is trueword. It's just hard for me to reconcile LiveCode's boast of simple English and stuff like this. The other thing I

Re: problem with counting words

2014-10-12 Thread Jerry Jensen
Not lame. Good question! I've always tried to get RID of curly-quotes, never tried to use them. So, I pasted one in from Word and found out using charToNum that its number 210. replace quote with numToChar(210) in field foo --do your counting replace numToChar(210) with quote in field foo

Re: problem with counting words

2014-10-12 Thread dunbarx
Larry. But you can make your own dictionary. Without limit. Most of that, too, has been possible since Hypercard. You can define your own properties, commands and functions, and place them in permanent use in several ways, for example, as a library stack in use or a plug-in. Have you ever

Re: problem with counting words

2014-10-12 Thread larry
Hi Craig, I've written several functions within stacks, but have no idea how to create a library stack or, seems better, as a plug-in. For example, one function I use in many of the programs I'm writing is: commaInsert: on commaInsert put round(thisFigure) into thisFigure if thisFigure 0

Re: problem with counting words

2014-10-12 Thread Richard Gaskin
larry wrote: Here is the real problem. I don't know much. I'm sitting here assuming that a word is a word, regardless of whether it is inside quotes. Now I find out there is trueword. It's just hard for me to reconcile LiveCode's boast of simple English and stuff like this. I hear ya',

Re: problem with counting words

2014-10-12 Thread Mark Wieder
Terence- Sunday, October 12, 2014, 12:38:53 PM, you wrote: Wouldn’t it be good if RunRev could add WordDelimiter to the dictionary, would that solve the problem. I believe it exists in SuperCard. I thought LiveCode was a more modern version of SuperCard and would surely have this option.

Re: problem with counting words

2014-10-12 Thread larry
Hello Mark, It truly pleases me that you explained a reason for text within quotes being a single word. I don't have enough experience (actually none) in defining arguments for commandline syntax and would never have thought of that. So now I must say, OK, there is a reason. However, I would

Re: problem with counting words

2014-10-12 Thread Mark Wieder
larry- Sunday, October 12, 2014, 5:16:45 PM, you wrote: Hello Mark, It truly pleases me that you explained a reason for text within quotes being a single word. Glad I could help. I don't have enough experience (actually none) in defining arguments for commandline syntax and would never

Re: Could not Compile Application Class

2014-10-12 Thread Ray
Roger - thanks for the suggestion. That worked well for me. I also discovered in poking around a little that bluetooth transfers work, too. On 10/11/2014 9:48 PM, Roger Eller wrote: I have found that if the device doesn't mount as a USB drive, the next best method is dropbox. Install

Re: problem with counting words

2014-10-12 Thread larry
Mark, This is why personal functions are so important. You like having all the words within quotes being seen as a single word for commandline calls. On the other hand, it is giving me fits having to go from regular quotes to curly quotes (for counting) and then back to regular quotes for

Re: problem with counting words

2014-10-12 Thread Robert Brenstein
Larry, Change the first line of your function to function commaInsert thisFigure Better yet: function commaInsert pFigure put pFigure into thisFigure Then add before the last end the following line return thisFigure If you have your function anywhere in the path (like in the stack script

Re: problem with counting words

2014-10-12 Thread larry
Hi Robert, I understand what you wrote. That is not a problem for me. What I want is to be able to put my function into the LC IDE so that I can use it in other stacks. You mention a library stack. I do not know how to make one or use one. Is there some tutorial or something that will tell me

Re: problem with counting words

2014-10-12 Thread Kay C Lan
On Mon, Oct 13, 2014 at 7:45 AM, Richard Gaskin ambassa...@fourthworld.com wrote: I hear ya', but like so many other oddities in the language this one came from Apple, Sheer brilliance! One of the first analogies of HyperCard was that it was a an electronic rolodex. Here is a list of names:

Re: problem with counting words

2014-10-12 Thread Kay C Lan
On Mon, Oct 13, 2014 at 9:58 AM, Kay C Lan lan.kc.macm...@gmail.com wrote: sort lines of myListOfNames by word of -1 each sort lnes of myListOfNames by word -1 of each Hate it when I hit send and then immediately see an error in my typing. ___

lock screen question and detect field question

2014-10-12 Thread larry
Hello, 2 questions this time: 1) I have a program where I'm creating and deleting fields. If I try to delete a field that hasn't yet been created, I get a script error. So is there a way to first find out if the field exists? Something like: if field myField01 exists then do stuff end if

Re: problem with counting words

2014-10-12 Thread Kay C Lan
Open the User Guide (from the IDE Help Menu select 'User Guide' and type Library in your pdf viewer's search box. Chapter 5.8 'Extending the Message Path' should come up as the first hit. This also may be helpful:

Re: problem with counting words

2014-10-12 Thread larry
Hello Kay, Mark gave me a short explanation of why it is good to see the words within quotes as one word and now you've given a longer and more detailed explanation. So I thank you and I will stop throwing rocks at my computer. Larry P.S. I still want to understand how to write my own

Re: lock screen question and detect field question

2014-10-12 Thread Kay C Lan
On Mon, Oct 13, 2014 at 10:05 AM, la...@significantplanet.org wrote: 1) I have a program where I'm creating and deleting fields. Why are you creating them and deleting them? Why aren't the fields already there and you just show and hide them? ___

Re: problem with counting words

2014-10-12 Thread Robert Brenstein
On 12.10.2014 at 19:58 Uhr -0600 la...@significantplanet.org apparently wrote: Hi Robert, I understand what you wrote. That is not a problem for me. What I want is to be able to put my function into the LC IDE so that I can use it in other stacks. You mention a library stack. I do not know

Re: problem with counting words

2014-10-12 Thread J. Landman Gay
On 10/12/2014, 7:32 PM, Mark Wieder wrote: What I'd need to do in that case is say linecount some file with spaces.txt And then the operating system would treat everything within the quotes as a single parameter. Which is probably the same reason the HC team did it that way, because the

Re: problem with counting words

2014-10-12 Thread larry
Hello Kay, I read the chapter in the user guide about creating a library. I also read insert script in the dictionary and it talks about a limit of 10 scripts(10 front and 10 back) in the compiled app. What I'm unclear about is, may I have multiple functions within, say, a card or stack script?

Re: lock screen question and detect field question

2014-10-12 Thread larry
That is a really good question! And I have a really good answer! Because the fields are dynamic and not always the same ones needed. But you've given me a new thought: Maybe I can just create all the fields I will ever possibly need and then just show and hide them. I'm going to think about

Re: problem with counting words

2014-10-12 Thread J. Landman Gay
On 10/12/2014, 7:42 PM, la...@significantplanet.org wrote: On the other hand, it is giving me fits having to go from regular quotes to curly quotes (for counting) and then back to regular quotes for display (since LC displays a curly quote as some oddball char). But if I could write my own

Re: lock screen question and detect field question

2014-10-12 Thread J. Landman Gay
On 10/12/2014, 9:05 PM, la...@significantplanet.org wrote: 1) I have a program where I'm creating and deleting fields. If I try to delete a field that hasn't yet been created, I get a script error. So is there a way to first find out if the field exists? Did you look up exists in the

Re: problem with counting words

2014-10-12 Thread Kay C Lan
HI Larry, That information is out of date, there are no more script limits, these were removed when LC went Community - yippeee ;-) You can test this by, in the message box: put the scriptLimits it should return, 0,0,0,0 so you are free to make your script library as huge as you want and your

Re: problem with counting words

2014-10-12 Thread Peter M. Brigham
On Oct 12, 2014, at 10:51 PM, J. Landman Gay wrote: A backscript is just a script you write that you can put into the message path; it receives messages after everything else gets a shot at them. The script can live in any object; buttons are common storage places. That's probably what

Re: problem with counting words

2014-10-12 Thread J. Landman Gay
On 10/12/2014, 10:04 PM, Peter M. Brigham wrote: You can create a plugin that opens invisibly when you start up LiveCode, and the plugin can contain a button with a script full of whatever functions and commands you want to have available. Then you can put this into the plugin stack script: on

Re: problem with counting words

2014-10-12 Thread J. Landman Gay
On 10/12/2014, 9:29 PM, la...@significantplanet.org wrote: What I'm unclear about is, may I have multiple functions within, say, a card or stack script? In other words, if I have one script that contains 10 commands within it that could be called up, is that counted as 1 script or as 10

Re: problem with counting words

2014-10-12 Thread Mark Wieder
larry- Sunday, October 12, 2014, 7:10:26 PM, you wrote: So I thank you and I will stop throwing rocks at my computer. LOL. Don't stop throwing rocks - it's an essential part of programming. -- -Mark Wieder ahsoftw...@gmail.com This communication may be unlawfully collected and stored by

Re: lock screen question and detect field question

2014-10-12 Thread Kay C Lan
On Mon, Oct 13, 2014 at 10:33 AM, la...@significantplanet.org wrote: Maybe I can just create all the fields I will ever possibly need and then just show and hide them. That is certainly an approach I've used many many times, especially if the number of fields is large. If the number of fields

Re: problem with counting words

2014-10-12 Thread Mark Wieder
larry- Sunday, October 12, 2014, 6:58:21 PM, you wrote: You mention a library stack. I do not know how to make one or use one. Is there some tutorial or something that will tell me how? Well, *do* followup on reading Richard Gaskin's writeup on the message path. But meanwhile try this... put

summary question for functions and libraries

2014-10-12 Thread larry
Thanks everyone for the info on libraries and backscripts, etc. I feel like I'm back in college taking an intensive class. If I understand everyone correctly, I could do this if I want my functions to work in a standalone: Make a stack that has a button (or the stack itself, right?) with all

Re: lock screen question and detect field question

2014-10-12 Thread Kay C Lan
Accidently hit the Send button. Here is what I meant to type: lock screen if the label of btn selectMethod = Output then set the height of fld multipurpose to 123 set the width of fld multipurpose to 456 set the loc of fld multipurpose to 200,200 etc put

Re: problem with counting words

2014-10-12 Thread J. Landman Gay
On 10/12/2014, 10:23 PM, Mark Wieder wrote: larry- Sunday, October 12, 2014, 7:10:26 PM, you wrote: So I thank you and I will stop throwing rocks at my computer. LOL. Don't stop throwing rocks - it's an essential part of programming. Absolutely. I keep a pile of rocks next to my desk. By

Re: problem with counting words

2014-10-12 Thread Kay C Lan
On Mon, Oct 13, 2014 at 11:16 AM, J. Landman Gay jac...@hyperactivesw.com wrote: One thing to mention though is that these custom solutions won't transfer to stacks that are distributed to others The other thing to remember is a plugin can't be edited as easily as any other stack. If Larry is

Re: problem with counting words

2014-10-12 Thread J. Landman Gay
On 10/12/2014, 10:42 PM, Jerry Jensen wrote: Jacque has a lovely talent for seeing simple solutions. I have an unfortunate obsession with saving bytes from ye olden days. Thank you, but I'm afraid any talent I have is due to total oblivion about such things. I'm a one-trick language pony, I

Re: summary question for functions and libraries

2014-10-12 Thread J. Landman Gay
On 10/12/2014, 10:29 PM, la...@significantplanet.org wrote: Thanks everyone for the info on libraries and backscripts, etc. I feel like I'm back in college taking an intensive class. If I understand everyone correctly, I could do this if I want my functions to work in a standalone: Make a

Re: problem with counting words

2014-10-12 Thread Jerry Jensen
On Oct 12, 2014, at 9:03 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 10/12/2014, 10:42 PM, Jerry Jensen wrote: Jacque has a lovely talent for seeing simple solutions. I have an unfortunate obsession with saving bytes from ye olden days. Thank you, but I'm afraid any talent I have

Re: problem with counting words

2014-10-12 Thread Kay C Lan
On Mon, Oct 13, 2014 at 12:10 PM, Jerry Jensen j...@jhj.com wrote: On Oct 12, 2014, at 9:03 PM, J. Landman Gay jac...@hyperactivesw.com wrote: My motto is: Bytes be damned, let the engine handle it. I say right out loud that is totally appropriate for this millenium. .Jerry Yes,

Re: problem with counting words

2014-10-12 Thread Geoff Canyon
Here's a function to count the words disregarding quotes. Note that it's important to replace quotes with space, because there are three words in this isthree words and there are three words in this isthree words but you want to count four words, which this will do: function

Re: problem with counting words

2014-10-12 Thread dunbarx
Hi. You have plenty to think about. But maybe something more concrete will get you started. You are certainly game. Make two new stacks. They will be named untitled 1 and untitled 2. No matter. In stack untitled 1 place a button. In its script put: on mouseUp start using stack untitled 2

Re: problem with counting words

2014-10-12 Thread Mark Wieder
Jacque- Sunday, October 12, 2014, 8:43:34 PM, you wrote: Absolutely. I keep a pile of rocks next to my desk. By the end of winter I've usually run out, and there is too much snow to go get more, so then I start throwing my husband. He has opinions about that. When I started out, all we had