Hanging indents?
Has anyone managed to create a hanging indent within a LC field? I’ve played around with tabstops and indents (first, left whatever) but don’t seem to be getting anywhere. Any ideas? Terry… ___ 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: Console container for put function?
Ah k. Honestly, I suspect checking the environment to decide where to output is the best way. Don't think I see an easy way around the way things work. If it wasn't possible to put things into fields in the server environment, I'd say it would be nice if any puts whatsoever defaulted to stdout, but that isn't the case. On Fri, Apr 24, 2015 at 12:09 AM, Peter W A Wood peterwaw...@gmail.com wrote: Hi Mike Thanks for your response. I should have explained why I was asking such a question. I’m planning on writing some library functions for testing that can be called from either a GUI stack or a server script. When called from a GUI script it will display its results in a Field, when called from a server script it will displays its result in the console. I’m trying to find a better way than: if the environment is “server” then put tResult else put tResult after Field tReport end Peter On 24 Apr 2015, at 11:54, Mike Bonner bonnm...@gmail.com wrote: Just a straight put is the way to go. Don't think you can put before because it doesn't have direct control of the console terminal scroll and cursor position. SO to achieve the same thing you could.. put Hello put World put return On Thu, Apr 23, 2015 at 9:52 PM, Peter W A Wood peterwaw...@gmail.com wrote: By experimenting, it seems that “putting” text into or after the message box container results in the test being output to the console (perhaps stdout, perhaps stderr). Running this script under LiveCodeServer: put Hello into message box put World after message box put return Displays this on the terminal: $ ./test.lc Hello World Is there a more correct “container” than message box to use in with the put function to send text to the terminal in LiveCodeServer? Regards Peter ___ 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 ___ 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: fastes way to search an array?
Hi Mike, my first description wasn't very exact. Actually these are two different cases, which occur not together. One time I need a search with begins and another time with contains. And I decided to stay with such a standard repeat loop thru the array, without extracting the keys before or using any extra commands like filter. Thanks for caring Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Mike Bonner Gesendet: Freitag, 24. April 2015 00:39 An: How to use LiveCode Betreff: Re: fastes way to search an array? Did some testing out of curiosity, and WOW this is fast. repeat for each key tKey in tArray if tArray[tKey] begins with tSearchString or \ tArray[tKey] contains tSearchString then put tKey return after tResults end if end repeat The only question I have is.. why search for the same thing twice? If it contains it also begins with so its a redundant check. (making it faster) Am I missing something here? On Thu, Apr 23, 2015 at 4:01 PM, Geoff Canyon gcan...@gmail.com wrote: On Wed, Apr 22, 2015 at 6:22 PM, Peter Haworth p...@lcsql.com wrote: Out of interest, I added a test which used combine and filter. It took around 3 times longer than the other two tests. Yeah, I didn't expect this to be competitive except under specific circumstances -- if the filter command happens to be suited to the (relatively complex) search performed, for example. I didn't see 3x, more like 1.5x to 2x, but still, iterating is generally the way to go. ___ 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: Plain text library stacks
On 2015-04-23 20:41, Michael Doub wrote: Mark, It appears that when you programmatically create a script only stack and save it. The engine auto inserts the first line: script stackname.I see that when I look at the file with a text editor. When I edit the script of the stack in livecode the script stackname line is missing. Yes - that is correct. The best way to think about script only stacks is that there are an alternative file format which can be used if you only want to keep the stack script. It just so happens that (being text) the file format works quite well for use in things such as git :) Will there be any problems if there are two script stackname statements in the text file. This could occur if the user adds it when in the livecode editor. Yes - you shouldn't do that :) Script only stacks should be used and edited just as you would any other stack - the only difference is that you can use them with VCS very easily (of course, you *can* create and edit them with a text editor if that is your want, but that isn't really what they are designed for). What is the recommended method for determining if a stack is a script only stack? There is no direct way to detect whether a stack is script-only currently beyond seeing if the first word of the on-disk file is script. Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ 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: Need Help With FTP
Hi Phil, Thanks for the detailed handler! I’ll give it a whirl. Blocking is not really the problem for me; it’s the session timeouts or dropped connection when downloading many files in a loop. I think the public server does not like repeated calls with the same connection, but I do not know how to make a new connection for, say, every 100 downloads. Gregory Message: 12 Date: Thu, 23 Apr 2015 15:43:11 -0700 From: Phil Davis rev...@pdslabs.net To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: Need Help With FTP Message-ID: 5539757f.8050...@pdslabs.net Content-Type: text/plain; charset=utf-8; format=flowed Hi Gregory, I would probably use the load command because it's a non-blocking way to do it - it doesn't prevent interaction while it's working. ___ 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: where does revsecurity.dll comes from?
Hi Tiemo Am 24.04.2015 um 14:55 schrieb Tiemo Hollmann TB toolb...@kestner.de: Hello, I am building the first time a standalone for a new stack on windows with LC 6.5.2. The build process lasts unusual long (1-2 min) and after build I got a revsecurity.dll in my standalone directoy. I have never seen this dll before and don't find any unknown option in my standalone settings, which could cause this dll. Who can give me a hint, where this dll comes from and how I can get rid of it - and hopefully speed up the build process? I also experience this all the time, looks like a little hiccup in the standalone builder. Delete the file (works for me) and be happy :-) Thanks Tiemo Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ 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: Hanging indents?
Sorry, you wanted a hanging indent. Try something like this: set the firstindent of fld text to -25 set the margins of fld text to 28,3,3,3 -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Apr 24, 2015, at 2:54 AM, Terry Judd wrote: Has anyone managed to create a hanging indent within a LC field? I’ve played around with tabstops and indents (first, left whatever) but don’t seem to be getting anywhere. Any ideas? Terry… ___ 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: where does revsecurity.dll comes from?
Hi Hi Tiemo - your app will need this if it it connects to the internet (at least on a windows machine with anti-virus) Could you please elaborate a bit more ? Do you mean the app won't able to connect to the internet on a windows machine with anti-virus, or do you mean the security will be lowered when the app connects to the internet and revsecurity.dll is not there ? Thanks jbv ___ 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: where does revsecurity.dll comes from?
Hi jvb I've been using it so long with on particular windows app that I'm not 100% sure what will happen now without it. But I did run a test about a year ago on a Win7 machine with that app (which connects to the internet on start-up) With revsecurity.dll included: On first launch of the app my UAC (User Account Control) dialog box popped up asking if I wanted to allow my app to connect, I clicked ok and then think my anti-virus joined the party asking if it should trust my app - both of these dialog boxes were small, non-alarming and easily dismissed With revsecurity.dll NOT included: On first launch I got a much more alarming screen from UAC, possibly preceded by a big warning from my anti-virus - if I remember correctly I was able to get my app to connect but I had to click through a lot more warnings (and think I probably wouldn't have been able to authorise it if I wasn't on an administrator account) - and I just bet I would get some or all of these warnings repeated each time I launched the app Dave - The difference between genius and stupidity is; genius has its limits. - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/where-does-revsecurity-dll-comes-from-tp4691453p4691460.html Sent from the Revolution - User mailing list archive at Nabble.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
where does revsecurity.dll comes from?
Hello, I am building the first time a standalone for a new stack on windows with LC 6.5.2. The build process lasts unusual long (1-2 min) and after build I got a revsecurity.dll in my standalone directoy. I have never seen this dll before and don't find any unknown option in my standalone settings, which could cause this dll. Who can give me a hint, where this dll comes from and how I can get rid of it - and hopefully speed up the build process? Thanks Tiemo ___ 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: where does revsecurity.dll comes from?
Hi Klaus, hmm, it is the first time in years I experience this and because of the long build time, I am not happy :) Schönes WE! Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Klaus major-k Gesendet: Freitag, 24. April 2015 15:04 An: How to use LiveCode Betreff: Re: where does revsecurity.dll comes from? Hi Tiemo Am 24.04.2015 um 14:55 schrieb Tiemo Hollmann TB toolb...@kestner.de: Hello, I am building the first time a standalone for a new stack on windows with LC 6.5.2. The build process lasts unusual long (1-2 min) and after build I got a revsecurity.dll in my standalone directoy. I have never seen this dll before and don't find any unknown option in my standalone settings, which could cause this dll. Who can give me a hint, where this dll comes from and how I can get rid of it - and hopefully speed up the build process? I also experience this all the time, looks like a little hiccup in the standalone builder. Delete the file (works for me) and be happy :-) Thanks Tiemo Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ 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: where does revsecurity.dll comes from?
Hi Dave Thanks for this detailed answer. I must say I have a complete different experience : I have been testing several apps of mine on various win versions (xp, vista, 7) without revsecurity.dll and never got any warning of any kind... Besides, my clients have been using the same apps on the same win versions + win 8, and with various anti-virus, but never informed me of any warning... And since they're all almost 100% computer illiterate, the would surely have ringed my phone in panic in case of any warning... Does anyone have a logical explanation for that ? Thanks in advance. jbv Hi jvb I've been using it so long with on particular windows app that I'm not 100% sure what will happen now without it. But I did run a test about a year ago on a Win7 machine with that app (which connects to the internet on start-up) With revsecurity.dll included: On first launch of the app my UAC (User Account Control) dialog box popped up asking if I wanted to allow my app to connect, I clicked ok and then think my anti-virus joined the party asking if it should trust my app - both of these dialog boxes were small, non-alarming and easily dismissed With revsecurity.dll NOT included: On first launch I got a much more alarming screen from UAC, possibly preceded by a big warning from my anti-virus - if I remember correctly I was able to get my app to connect but I had to click through a lot more warnings (and think I probably wouldn't have been able to authorise it if I wasn't on an administrator account) - and I just bet I would get some or all of these warnings repeated each time I launched the app Dave - The difference between genius and stupidity is; genius has its limits. - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/where-does-revsecurity-dll-comes-from-tp4691453p4691460.html Sent from the Revolution - User mailing list archive at Nabble.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 ___ 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: Hanging indents?
I think you have to set the firstIndent of the field to a positive integer and set the left margin of the field to a negative number. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Apr 24, 2015, at 2:54 AM, Terry Judd wrote: Has anyone managed to create a hanging indent within a LC field? I’ve played around with tabstops and indents (first, left whatever) but don’t seem to be getting anywhere. Any ideas? Terry… ___ 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: where does revsecurity.dll comes from?
Hi Tiemo - your app will need this if it it connects to the internet (at least on a windows machine with anti-virus) - The difference between genius and stupidity is; genius has its limits. - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/where-does-revsecurity-dll-comes-from-tp4691453p4691456.html Sent from the Revolution - User mailing list archive at Nabble.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: Plain text library stacks
Ah, I see. Thanks. And may I say, your presence on this list, even if only occasional, is much appreciated. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Apr 24, 2015, at 2:11 PM, Mark Waddingham wrote: 1. No - substacks are part of the parent stackfile when on disk so they only make sense as normally saved (binary) stacks. 2. Yes - script only stacks are stacks. The script only part only pertains to the on disk format which is a text file. Sent from my iPhone On 24 Apr 2015, at 19:06, Peter M. Brigham pmb...@gmail.com wrote: Questions about these script-only stacks: 1. can they be made substacks of another stack? 2. can you do start using stack… with them? -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Apr 24, 2015, at 12:41 PM, Michael Doub wrote: I just updated the MasterLibrary to allow you to create a Script Only Stack and insert functions and commands with just a few clicks. https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 -= Mike On 4/23/15 2:58 PM, Thierry Douez wrote: Absolutely, that's what Peter was showing in his sample code. Regards, Thierry Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage 2015-04-23 20:56 GMT+02:00 Devin Asay devin_a...@byu.edu: I’m curious—can these plain text stacks be used by LC Server just like a regular stack as a library? Devin Devin Asay Office of Digital Humanities 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 ___ 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 ___ 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: Plain text library stacks
1. No - substacks are part of the parent stackfile when on disk so they only make sense as normally saved (binary) stacks. 2. Yes - script only stacks are stacks. The script only part only pertains to the on disk format which is a text file. Sent from my iPhone On 24 Apr 2015, at 19:06, Peter M. Brigham pmb...@gmail.com wrote: Questions about these script-only stacks: 1. can they be made substacks of another stack? 2. can you do start using stack… with them? -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Apr 24, 2015, at 12:41 PM, Michael Doub wrote: I just updated the MasterLibrary to allow you to create a Script Only Stack and insert functions and commands with just a few clicks. https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 -= Mike On 4/23/15 2:58 PM, Thierry Douez wrote: Absolutely, that's what Peter was showing in his sample code. Regards, Thierry Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage 2015-04-23 20:56 GMT+02:00 Devin Asay devin_a...@byu.edu: I’m curious—can these plain text stacks be used by LC Server just like a regular stack as a library? Devin Devin Asay Office of Digital Humanities 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 ___ 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 ___ 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
Does Version 7.0.4 work with Xcode 6.3.1?
Anybody tried it? Bill William A. Prothero http://es.earthednet.org/ ___ 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: Console container for put function?
Thanks for the insight and suggestion, Richard. I’ve gone with the “MyPut” option for the moment. Regards Peter On 24 Apr 2015, at 23:22, Richard Gaskin ambassa...@fourthworld.com wrote: Peter Wood wrote: I’m planning on writing some library functions for testing that can be called from either a GUI stack or a server script. When called from a GUI script it will display its results in a Field, when called from a server script it will displays its result in the console. I’m trying to find a better way than: if the environment is “server” then put tResult else put tResult after Field tReport end Two options come to mind, each with their own tradeoffs: 1. Custom put handler You could use something like MyPut instead of put, so the branching is in just one place. Easy to write, but difficult to accommodate since it would mean changing every place you currently use put. 2. revMessageBoxRedirect That's a global property which is empty by default, and when empty put output goes to stdOut when faceless and to a stack named Message Box when in the IDE as you found. But when set to the long ID of any object, that object will then receive msgChanged messages for any puts which could be handled however you like, such as displaying the msg string in a field in your own stack. The downside with the latter is that as long as the revMessageBoxRedirect is not empty, you'll be responsible for handling all Message Box actions; that is, you'll lose the IDE's Message Box as a place for output, for any and all scripts that might otherwise put to it. But if that's what you're looking for, revMessageBoxRedirect can be handy. I have a Message Box replacement that uses it and it's been a godsend. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.coms ___ 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: Hanging indents?
Terry, If you are open to your hanging indent lines having an outline or list format, try setting the ListStyle of the block of lines where you want the hanging indent. Here's a tutorial: http://lessons.runrev.com/m/4071/l/58770-how-do-i-use-hierarchical-list-support -- Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Hanging-indents-tp4691448p4691465.html Sent from the Revolution - User mailing list archive at Nabble.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: Need Help With FTP
On 24.04.2015 at 8:43 Uhr -0400 Gregory Lypny apparently wrote: Hi Phil, Thanks for the detailed handler! I'll give it a whirl. Blocking is not really the problem for me; it's the session timeouts or dropped connection when downloading many files in a loop. I think the public server does not like repeated calls with the same connection, but I do not know how to make a new connection for, say, every 100 downloads. Gregory May be if you make a pause between successive downloads, the host won't mind so much. They probably don't like robotic pulls of large volumes. RObert ___ 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: Console container for put function?
Nifty! Thanks! Wow there are a lot of hidden jewels in lc. On Fri, Apr 24, 2015 at 9:22 AM, Richard Gaskin ambassa...@fourthworld.com wrote: Peter Wood wrote: I’m planning on writing some library functions for testing that can be called from either a GUI stack or a server script. When called from a GUI script it will display its results in a Field, when called from a server script it will displays its result in the console. I’m trying to find a better way than: if the environment is “server” then put tResult else put tResult after Field tReport end Two options come to mind, each with their own tradeoffs: 1. Custom put handler You could use something like MyPut instead of put, so the branching is in just one place. Easy to write, but difficult to accommodate since it would mean changing every place you currently use put. 2. revMessageBoxRedirect That's a global property which is empty by default, and when empty put output goes to stdOut when faceless and to a stack named Message Box when in the IDE as you found. But when set to the long ID of any object, that object will then receive msgChanged messages for any puts which could be handled however you like, such as displaying the msg string in a field in your own stack. The downside with the latter is that as long as the revMessageBoxRedirect is not empty, you'll be responsible for handling all Message Box actions; that is, you'll lose the IDE's Message Box as a place for output, for any and all scripts that might otherwise put to it. But if that's what you're looking for, revMessageBoxRedirect can be handy. I have a Message Box replacement that uses it and it's been a godsend. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.coms ___ 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: Need Help With FTP
Gregory Lypny wrote: Blocking is not really the problem for me; it’s the session timeouts or dropped connection when downloading many files in a loop. I think the public server does not like repeated calls with the same connection, but I do not know how to make a new connection for, say, every 100 downloads. That may be a bug in the server configuration. Some of my WebMerge customers upload literally hundreds of thousands of files to simple shared host servers without issue. I'm not even working that hard, just using this form in a loop that iterates through the file list: put url (binfile:tDestFile) into url tDestUrl If this app is used only by yourself you may consider setting up a shared SSH key with the server and using a shell call in LC to rsync, which would be much faster and perhaps a bit more robust, and certainly more secure. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.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: Console container for put function?
Peter Wood wrote: I’m planning on writing some library functions for testing that can be called from either a GUI stack or a server script. When called from a GUI script it will display its results in a Field, when called from a server script it will displays its result in the console. I’m trying to find a better way than: if the environment is “server” then put tResult else put tResult after Field tReport end Two options come to mind, each with their own tradeoffs: 1. Custom put handler You could use something like MyPut instead of put, so the branching is in just one place. Easy to write, but difficult to accommodate since it would mean changing every place you currently use put. 2. revMessageBoxRedirect That's a global property which is empty by default, and when empty put output goes to stdOut when faceless and to a stack named Message Box when in the IDE as you found. But when set to the long ID of any object, that object will then receive msgChanged messages for any puts which could be handled however you like, such as displaying the msg string in a field in your own stack. The downside with the latter is that as long as the revMessageBoxRedirect is not empty, you'll be responsible for handling all Message Box actions; that is, you'll lose the IDE's Message Box as a place for output, for any and all scripts that might otherwise put to it. But if that's what you're looking for, revMessageBoxRedirect can be handy. I have a Message Box replacement that uses it and it's been a godsend. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.coms ___ 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: Console container for put function?
On 04/23/2015 11:09 PM, Peter W A Wood wrote: I’m trying to find a better way than: if the environment is “server” then put tResult else put tResult after Field tReport end That's exactly how I deal with it, with the exception that I wrap it in a log function. That way there's only one place in the stack that needs to check the environment, and I can also put other conditions in the log file as needed command log pMessage if there_are_things_to_add_to_the_message ... end if if verboseMode ... if the environment is ... put ... else put ... end if end if end log log I made it to function param(0) log at this point the value of foo is foo -- Mark Wieder ahsoftw...@gmail.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: Plain text library stacks
I just updated the MasterLibrary to allow you to create a Script Only Stack and insert functions and commands with just a few clicks. https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 -= Mike On 4/23/15 2:58 PM, Thierry Douez wrote: Absolutely, that's what Peter was showing in his sample code. Regards, Thierry Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage 2015-04-23 20:56 GMT+02:00 Devin Asay devin_a...@byu.edu: I’m curious—can these plain text stacks be used by LC Server just like a regular stack as a library? Devin Devin Asay Office of Digital Humanities 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 ___ 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: Plain text library stacks
Questions about these script-only stacks: 1. can they be made substacks of another stack? 2. can you do start using stack… with them? -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Apr 24, 2015, at 12:41 PM, Michael Doub wrote: I just updated the MasterLibrary to allow you to create a Script Only Stack and insert functions and commands with just a few clicks. https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 -= Mike On 4/23/15 2:58 PM, Thierry Douez wrote: Absolutely, that's what Peter was showing in his sample code. Regards, Thierry Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage 2015-04-23 20:56 GMT+02:00 Devin Asay devin_a...@byu.edu: I’m curious—can these plain text stacks be used by LC Server just like a regular stack as a library? Devin Devin Asay Office of Digital Humanities 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 ___ 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: Console container for put function?
Hi Mike Thanks for your response. I should have explained why I was asking such a question. I’m planning on writing some library functions for testing that can be called from either a GUI stack or a server script. When called from a GUI script it will display its results in a Field, when called from a server script it will displays its result in the console. I’m trying to find a better way than: if the environment is “server” then put tResult else put tResult after Field tReport end Peter On 24 Apr 2015, at 11:54, Mike Bonner bonnm...@gmail.com wrote: Just a straight put is the way to go. Don't think you can put before because it doesn't have direct control of the console terminal scroll and cursor position. SO to achieve the same thing you could.. put Hello put World put return On Thu, Apr 23, 2015 at 9:52 PM, Peter W A Wood peterwaw...@gmail.com wrote: By experimenting, it seems that “putting” text into or after the message box container results in the test being output to the console (perhaps stdout, perhaps stderr). Running this script under LiveCodeServer: put Hello into message box put World after message box put return Displays this on the terminal: $ ./test.lc Hello World Is there a more correct “container” than message box to use in with the put function to send text to the terminal in LiveCodeServer? Regards Peter ___ 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: Android Intents/iOS Extensions?
On 4/23/2015 8:07 PM, Monte Goulding wrote: OK, here it is... sorry Jacque for leading you up a garden path on that forum topic we discussed this on. Thanks Monte. The garden path was productive, it led me to a fix. :) However, given your specific case where even if you edit the manifest in the runtime folder it fails I think there's more to the problem. I've certainly been able to do that to add permissions that aren't on the SB dialog etc. I'm still trying to figure out why my manifest isn't working but yours does. Do you think line endings matter? I've got mine set up with Linux endings. -- 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: where does revsecurity.dll comes from?
On Apr 24, 2015, at 5:55 AM, Tiemo Hollmann TB toolb...@kestner.de wrote: Who can give me a hint, where this dll comes from and how I can get rid of it - and hopefully speed up the build process? Hi Teimo, The revsecurity.dll allows you to use encryption in your applications. This would include commands like: encrypt, cipherNames, decrypt, and many others. Best regards, Mark Talluto livecloud.io canelasoftware.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: Hanging indents?
Thanks Peter, that¹s it. firstIndent negative and leftMargin positive! Much appreciated, Terry... On 24/04/2015 11:24 pm, Peter M. Brigham pmb...@gmail.com wrote: Sorry, you wanted a hanging indent. Try something like this: set the firstindent of fld text to -25 set the margins of fld text to 28,3,3,3 -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Apr 24, 2015, at 2:54 AM, Terry Judd wrote: Has anyone managed to create a hanging indent within a LC field? I¹ve played around with tabstops and indents (first, left whatever) but don¹t seem to be getting anywhere. Any ideas? TerryŠ ___ 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: Hanging indents?
Thanks Tom, a list style might have worked but Peter¹s firstIndent and leftMargin combination has done it nicely for me. Regards, Terry... On 25/04/2015 1:10 am, tbodine bod...@bodinetraininggames.com wrote: Terry, If you are open to your hanging indent lines having an outline or list format, try setting the ListStyle of the block of lines where you want the hanging indent. Here's a tutorial: http://lessons.runrev.com/m/4071/l/58770-how-do-i-use-hierarchical-list-su pport -- Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Hanging-indents-tp4691448p4 691465.html Sent from the Revolution - User mailing list archive at Nabble.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 ___ 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