Re: Livecode for Digital Signage
Thanks Bill! For the first one, that may be a good alternative. I have not tested it but I do appreciate the idea. I#39;ll try it. It complicates the process of updating the text a bit but I may have to figure out a way to automate that part if i can not get the text scrolling smooth. I#39;ve had someone tell me it runs smooth on a power Mac so that test is next Appreciate the tip, Bill! Jim... ___ 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
Question about Object Names
Hello, I am confused by an inconsistency I am seeing. I think it points to something I missing about object names and references. Using the Object Inspector you can set the name of a card, for example, to MyCardName But when you retrieve the name of the object in line of code you get back the object type followed by the name in Quotes, like this *put *the name of the this card into tCard - card MyCardName Why? Thanks Todd Todd Geist -- geist interactive http://www.geistinteractive.com 805-419-9382 ___ 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
Re: download and save a file
Richmond, Have you actually made a request to the Cyberduck people for a Linux version ? I know there will never be a 'nix version of Outlook, but the Duck is FOSS (GNU). http://trac.cyberduck.ch/browser sqb On 27 May 2011 07:26, Richmond Mathewson richmondmathew...@gmail.comwrote: On 05/27/2011 05:15 PM, stephen barncard wrote: Cyberduck 4 is now cross-platform/ http://cyberduck.ch/ No, it isn't. It is only available for Mac and Windows. Stephen Barncard San Francisco Ca. USA more about sqb http://www.google.com/profiles/sbarncar ___ 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
Re: download and save a file
On 05/27/2011 06:02 PM, stephen barncard wrote: Richmond, Have you actually made a request to the Cyberduck people for a Linux version ? No, I haven't, because there are several perfectly good Linux FTP clients around. I was actually picking holes in your 'cross platform' claim, rather than anything about CyberDuck qua CyberDuck. 'Cross-platform', with the flourishing of perfectly good OSes other than Windows and Mac (whether one considers Windows a 'perfectly good' OS is another bone we can chew on for ages), has become rather ambiguous . . . . . . c.f. claims made by RunRev . . . Perhaps 'cross-platform' is a term best avoided. I know there will never be a 'nix version of Outlook, but the Duck is FOSS (GNU). http://trac.cyberduck.ch/browser sqb ___ 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
Re: Question about Object Names
On Fri, May 27, 2011 at 7:57 AM, Richard Gaskin ambassa...@fourthworld.comwrote: For example, you can call the numToChar function using either of these two forms: numToChar(128) the numToChar of 128 Meanwhile, the sum function can only be called using function syntax: sum(1,2,3) -- works the sum of 1,2,3 -- throws an error Is there a pattern at all in when one is form is not allowed? In the example you gave, the sum function takes a list of numbers, where the numToChar takes a single item. Todd Todd Geist -- geist interactive http://www.geistinteractive.com 805-419-9382 ___ 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
Re: Question about Object Names
Todd Geist wrote: On Fri, May 27, 2011 at 7:57 AM, Richard Gaskin wrote: For example, you can call the numToChar function using either of these two forms: numToChar(128) the numToChar of 128 Meanwhile, the sum function can only be called using function syntax: sum(1,2,3) -- works the sum of 1,2,3 -- throws an error Is there a pattern at all in when one is form is not allowed? In the example you gave, the sum function takes a list of numbers, where the numToChar takes a single item. There may be a pattern; I'm sure it made sense to whomever came up with that sometimes rule at the time. But for myself the problem is easily worked around: I usually just ignore the capability of using property syntax for function calls. I find it much clearer to read code in which functions are called using function syntax and properties are accessed using property syntax. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv ___ 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
Re: Question about Object Names
On May 27, 2011, at 9:30 AM, Richard Gaskin wrote: Todd Geist wrote: On Fri, May 27, 2011 at 7:57 AM, Richard Gaskin wrote: For example, you can call the numToChar function using either of these two forms: numToChar(128) the numToChar of 128 Meanwhile, the sum function can only be called using function syntax: sum(1,2,3) -- works the sum of 1,2,3 -- throws an error Is there a pattern at all in when one is form is not allowed? In the example you gave, the sum function takes a list of numbers, where the numToChar takes a single item. There may be a pattern; I'm sure it made sense to whomever came up with that sometimes rule at the time. My understanding is that the 2nd, prose or property, form can only be used with functions that require 0 or 1 arguments. All others require the funtion(n) form. And the prose form is only allowed for native LiveCode functions, not for user-defined functions. Have you seen any counter examples to this rule? Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ 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
[ANN] Live LiveCode code event #25
Hi all The event continues to churn on, this time with GUI-Superstar Scott Rossi. He will show us more information about his tmControl suite of custom controls, that is currently being developed for desktop and mobile. Note that once finished, this commercial add-on will allow you to have any style of non-native object set, perfectly matched and beautiful enough for the heavens. http://livecode.tv/scott/ Keith Clarke wil be presenting, using his expertise in MVC architecture patterns, to decide what to code where in LiveCode, for web services. He'll cover misusing the message path and a very nice PDF :) http://livecode.tv/keith/ Connect to ChatRev ( http://bjoernke.com/chatrev/ ), and watch the events at these times: Tehran Sat 22:30 Oslo Sat 20:00 Washington DC Sat 14:00 Seattle Sat 11:00 Tokyo Sun 03:00 Remember that there's tons of materials available on http//livecode.tv/ already. Cheers Björnke -- official ChatRev page: http://bjoernke.com/chatrev Chat with other RunRev developers: go stack URL http://bjoernke.com/chatrev/chatrev1.3b3.rev; ___ 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
Re: Question about Object Names
Devin Asay wrote: On May 27, 2011, at 9:30 AM, Richard Gaskin wrote: Todd Geist wrote: On Fri, May 27, 2011 at 7:57 AM, Richard Gaskin wrote: For example, you can call the numToChar function using either of these two forms: numToChar(128) the numToChar of 128 Meanwhile, the sum function can only be called using function syntax: sum(1,2,3) -- works the sum of 1,2,3 -- throws an error Is there a pattern at all in when one is form is not allowed? In the example you gave, the sum function takes a list of numbers, where the numToChar takes a single item. There may be a pattern; I'm sure it made sense to whomever came up with that sometimes rule at the time. My understanding is that the 2nd, prose or property, form can only be used with functions that require 0 or 1 arguments. All others require the funtion(n) form. And the prose form is only allowed for native LiveCode functions, not for user-defined functions. Have you seen any counter examples to this rule? I can't think of any offhand. But it's still not how I would design a language. ;) -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv ___ 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
Re: Question about Object Names
Well we can all at least be thankful that it is not how a woman would design a language either. Can you imagine having to hint at something and then the computer has to figure out what you really meant? ;-) send there sure are a lot of numbers around here not doing anything right now to sum function sum look around gather numbers whose layingaround is true repeat with i = 1 to the number of numbers laying around add number i to theSum end repeat look around some more if the result is true then send I'm not your personal adding machine! to sum with Here we go again! end if return the sum with hopes you got them all end sum Bob On May 27, 2011, at 10:01 AM, Richard Gaskin wrote: My understanding is that the 2nd, prose or property, form can only be used with functions that require 0 or 1 arguments. All others require the funtion(n) form. And the prose form is only allowed for native LiveCode functions, not for user-defined functions. Have you seen any counter examples to this rule? I can't think of any offhand. But it's still not how I would design a language. ;) -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv ___ 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
Re: Question about Object Names
On 05/27/2011 08:54 PM, Bob Sneidar wrote: Well we can all at least be thankful that it is not how a woman would design a language either. Can you imagine having to hint at something and then the computer has to figure out what you really meant? ;-) Nothing like a bit of sexual stereotyping. send there sure are a lot of numbers around here not doing anything right now to sum function sum look around gather numbers whose layingaround is true repeat with i = 1 to the number of numbers laying around add number i to theSum end repeat look around some more if the result is true then send I'm not your personal adding machine! to sum with Here we go again! end if return the sum with hopes you got them all end sum Bob On May 27, 2011, at 10:01 AM, Richard Gaskin wrote: My understanding is that the 2nd, prose or property, form can only be used with functions that require 0 or 1 arguments. All others require the funtion(n) form. And the prose form is only allowed for native LiveCode functions, not for user-defined functions. Have you seen any counter examples to this rule? I can't think of any offhand. But it's still not how I would design a language. ;) -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv ___ 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 ___ 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
Re: Importing Unicode text to a field .. How?
replace uniencode(numtochar(13)) with uniencode(numtochar(10)) That doesn't work either, it does nothing Richmond... these are pure unicode text files. not RTF or HTML... They open fine in Pages or text edit, I get Tamil as expected and proper endlines as expected. I can also copy and paste from those programs into a LiveCode field and it works... I get tamil with end lines. Sivakatirswami On 5/24/11 11:45 PM, Mark Schonewille wrote: Hi Sivakatirswami, Maybe you need to replace the cr's: replace uniencode(numtochar(13)) with uniencode(numtochar(10)). Just a guess. Op 25 mei 2011 om 07:17 heeft Sivakatirswamika...@hindu.org het volgende geschreven: Namaste, Slava: I tried that too, but I lose all the CR's...I get one long line in the LiveCode field, but if I paste it here into the email the CRLF's come back! Or if I copy from Pages.. the CR's are preserved... If I try to process the CR in the usual way, I get them back in the field but the text becomes garbled again on mouseup answer file Choose the Unicode for this song with OK put url (binfile:/ it) into tUnicode set the useUnicode to true set the unicodetext of fld Unicode_Script to tUnicode end mouseup # THE FOLLOWING IS A SINGLE LINE IN THE LC FIELD: Converted from மயிலை text in /Users/sivakatirswami/Documents/Tamil/Natchintanai in Unicode/3 Thannai Thannaal.txt தன்னைத்தன்னால்தன்னைத் தன்னால் அறிந்திட வேண்டுமேதானா யெங்குஞ் செறிந்திட வேண்டுமே[snip] on mouseup answer file Choose the Unicode for this song with OK put url (binfile:/ it) into tUnicode set the useUnicode to true set the unicodetext of fld Unicode_Script to tUnicode replace numtochar(13) with numtochar(10) in fld unicode_Script # the above line restores the line breaks but destroys the text... or rather, converts it to some other encoding displays Japanese characters end mouseup C ___ 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 ___ 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 ___ 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
Re: Importing Unicode text to a field .. How?
On 05/27/2011 10:34 PM, Sivakatirswami wrote: replace uniencode(numtochar(13)) with uniencode(numtochar(10)) That doesn't work either, it does nothing Richmond... these are pure unicode text files. not RTF or HTML... They open fine in Pages or text edit, I get Tamil as expected and proper endlines as expected. I can also copy and paste from those programs into a LiveCode field and it works... I get tamil with end lines. Please send me one of the documents the font offlist; and I will play around a bit . . . :) Sivakatirswami ___ 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
Re: Importing Unicode text to a field .. How?
FYI The Tamil text renders perfectly in Google Mail and Safari. On 27 May 2011 13:04, Richmond Mathewson richmondmathew...@gmail.comwrote: Something just occurred to me . . . # THE FOLLOWING IS A SINGLE LINE IN THE LC FIELD: Converted from மயிலை text in /Users/sivakatirswami/Documents/Tamil/Natchintanai in Unicode/3 Thannai Thannaal.txt தன்னைத்தன்னால்தன்னைத் தன்னால் அறிந்திட வேண்டுமேதானா யெங்குஞ் செறிந்திட வேண்டுமே[snip] Stephen Barncard San Francisco Ca. USA more about sqb http://www.google.com/profiles/sbarncar ___ 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
Re: Importing Unicode text to a field .. How?
Looks good in Apple Mail too. Bit smallish tho. Bob On May 27, 2011, at 1:49 PM, stephen barncard wrote: FYI The Tamil text renders perfectly in Google Mail and Safari. On 27 May 2011 13:04, Richmond Mathewson richmondmathew...@gmail.comwrote: Something just occurred to me . . . # THE FOLLOWING IS A SINGLE LINE IN THE LC FIELD: Converted from மயிலை text in /Users/sivakatirswami/Documents/Tamil/Natchintanai in Unicode/3 Thannai Thannaal.txt தன்னைத்தன்னால்தன்னைத் தன்னால் அறிந்திட வேண்டுமேதானா யெங்குஞ் செறிந்திட வேண்டுமே[snip] Stephen Barncard San Francisco Ca. USA more about sqb http://www.google.com/profiles/sbarncar ___ 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 ___ 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
[ANN] GET INSPIRED to do more with Livecode
How? watch videos, ask questions, get answers - the same day I am launching a new service that is designed to do three things. Present new, high-quality video content each week. Answer your Livecode questions Showcase stacks created by some of the most accomplished Livecode programmers out there. New to Livecode? I start with a really good stack written by an accomplished author, then take it apart, then tell you what it all means... Plain English + very little jargon. Are you an Intermediate or advanced programmer? For those videos, I take the stack apart quickly, then dive into the details of the scripting and message path. The second part of each video I get into how to use the techniques in complex projects. More than 90 minutes of video for each stack, all on a single web page. Come see web pages that are refreshingly clean, simple and to the point. Take a look at great livecode stacks like you have never seen them before. The very cool Alien Spheres stack ( written by Scott Rossi ) Free, and will always be free to access and ask me questions http://jimthewebmaster.com/livecode/PublicFree/pg/ alienSpheresInsp.php TheDrag Sample stack ( written by Scott Rossi ) Free, and will always be free to access and ask me questions http://jimthewebmaster.com/livecode/PublicFree/pg/dragSampleInsp.php (PLEASE respond to the email privately and directly to me. Be responsible rather than bother others on this list) So what is this subscription service about? Each week I will add two new stacks to the library. This means two new web pages with over 90 minutes of video content on each page. Each web page will have lessons designed for beginner, intermediate, and advanced programmers. Every stack featured will be one that has been created by an accomplished Livecode programmer. Every video clip is designed to inspire you to do more with Livecode. Subscribers will be able to watch the videos and ask me questions directly via email. I will respond to the questions in less that 24 hours, most likely much less than 24 hours. The price? Only $ 8.57 per month will get you access to my library and my email inbox for questions. Satisfaction guaranteed or your money back. You can cancel at anytime, and rejoin later, or never. It is your choice, and you are in control. In the course of one month, I will be adding 2 web pages per week, so that is 8 web pages per month, 8 in-depth discussions of great Livecode programming plus bonus material on every page It is simple, Take a look at the always-free pages and see for yourself. Let me know what you think, and I will tell you how you can sign up for the new video content and the weekly newsletter. Only interested in the free newsletter? Then sign up for What CoolTricks Make This Work? - Newsletter and perhaps join later for the videos. I welcome any comments, and will answer your questions promptly. Visit me at http://CoolSecretsRevealed.com/livecode for information, details, privacy policy, and more. Jim Ault Inspriation equals better code and fabulous programs Come see web pages that are refreshingly clean, simple and to the point Take a look at great livecode stacks like you have never seen them before. ___ 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
Re: Importing Unicode text to a field .. How?
nope... that replacement does nothing... on mouseup answer file Choose the Unicode for this song with OK if the result =cancel then exit mouseup set the useUnicode to true set the unicodetext of fld Unicode_Script to url (binfile:/ it) # result: Tamil appears fine, but all one line replace numtochar(13) with numToChar(8232) in fld Unicode_Script #does nothing end mouseup for others who are interested in trying: See if you can import any of these three files into a Live Code field (on the Mac you should have InaiMathi installed by default with the system, if you have Arial MS Unicode alive on the box it should also work.) http://www.himalayanacademy.com/livecode/Unicode-Tamil.zip has three files of pure unicode that works in all programs including LiveCode fields but only if you paste it in. Goal: import by script. Sivakatirswami On 5/27/11 10:04 AM, Richmond Mathewson wrote: Unicode text is double-byte stuff, while the CR and LF are single-byte things. SO . . . double-byte strings SHOULD always consist of an even number of bytes, AND, if a text field is flagged as containing unicodeText when the engine starts reading its contents it will start taking double-byte bites of the string. THEREFORE, inserting either numToChar(10) or numToChar(13) into a double-byte text will throw the engine out of kilter because it will start biting double-bytes off. TAKE A LOOK at this: http://en.wikipedia.org/wiki/Newline and, just possibly, you need to replace you CR/LF with : numToChar(8232) worth a try . . . ___ 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
Re: Importing Unicode text to a field .. How?
On 5/27/11 9:55 PM, Web Admin Himalayan Academy wrote: nope... that replacement does nothing... on mouseup answer file Choose the Unicode for this song with OK if the result =cancel then exit mouseup set the useUnicode to true set the unicodetext of fld Unicode_Script to url (binfile:/ it) # result: Tamil appears fine, but all one line replace numtochar(13) with numToChar(8232) in fld Unicode_Script #does nothing end mouseup It was close though. LiveCode uses ascii 10 instead of ascii 13 for line endings. Those are converted automatically when you paste, but not when you put text into a field by script. So just replace cr with unix line endings and it works: on mouseUp set the textfont of fld 1 to InaiMathi,Unicode answer file Choose the Unicode for this song with OK if the result cancel then get url (binfile: it) replace numtochar(13) with numtochar(10) in it set the unicodetext of fld 1 to it end if end mouseUp -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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
Re: Importing Unicode text to a field .. How?
On 5/27/11 9:55 PM, Web Admin Himalayan Academy wrote: nope... that replacement does nothing... BTW, I think Richmond doesn't have any trouble with unicode lines because he's working on a Linux machine, so his line endings are already ascii 10. It would take a Windows or Mac user to notice. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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