Re: revCopyFile
The advantages derive from the fact that LiveCode isn't doing the actual copying with revCopyFile -- the Finder is. For completeness, the same advantage applies to using a shell command. You don't get a progress dialog though. Okay, I just did a quick one-off test with interface sounds off. For thirty files that were each about 70kb, using a shell command was about 3x faster than using revCopyFile. That's without taking advantage of the ability to move and rename in one step with a shell command. If that's what you're doing, the advantage would be even greater. On Wed, Mar 21, 2012 at 3:04 PM, Pete p...@mollysrevenge.com wrote: Thanks all for the input. Sounds like Stephen's approach is the only way to get rid of it. Seems like that setting will apply to other sounds as well, but I'm OK with that. As far as using AppleScript, I'm using revCopyFile because the dictionary claims there are certain advantages to using it over put URL or any other method, amongst which is that it does not require reading the file into memory, and since some of these files could be pretty large, that's significant. On a Mac, it also displays a progress bar which I don;t think would be possible if I used put URL. Pete On Wed, Mar 21, 2012 at 11:35 AM, Geoff Canyon gcan...@gmail.com wrote: I went straight to the shell command, so I don't know for sure, but this sounds reasonable. There's also the overhead of spinning up AppleScript in the first place. If Apple is doing that badly, that might also cause problems I suppose. On Wed, Mar 21, 2012 at 1:24 PM, stephen barncard stephenrevoluti...@barncard.com wrote: That was probably a big reason why multiple file transfers would take more time - loading and unloading the sound - and perhaps the reason why it failed after memory was exceeded. ___ 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 -- Pete Molly's Revenge http://www.mollysrevenge.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: Setting script in object not working...
On 21/03/2012 22:01, Glen Bojsza wrote: I have a stack where I generate a series of images. I then set the script of each image to a script that is stored in a custom property. I'm *very* new to all of this but...isn't this when the 'behavior' field would come in handy? Put the script into a button, and then for each image you create set the behavior field to the button. -Ken ___ 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: Text formatting for a slider
It is not just the arrays. It omits things like the foregroundcolor and backgroundcolor. I get a rough count of 34 properties using the properties of for a scrollbar and Richard shows 57. Jim Message: 19 Date: Wed, 21 Mar 2012 18:02:35 -0700 From: Mark Wieder mwie...@ahsoftware.net To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: Text formatting for a slider Message-ID: 3677832125.20120321180...@ahsoftware.net Content-Type: text/plain; charset=us-ascii stephen- Wednesday, March 21, 2012, 4:05:46 PM, you wrote: I think what broke Smart properties was that some of the newer properites in never versions are multi-dimensional - and SP was written early in the 2000's. And some of the multidimensional ones don't appear in the list when you get the properties of. Luckily, the list of missing items is short if you don't include custom properties. -- -Mark Wieder mwie...@ahsoftware.net ___ 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: [irev] passing a parameter
This is correct except it is a key value pair: http://kweto.com/receiveData.irev?date=Jan2012,sender=Nicolas%20Cuelo that kind of thing. Also, the data you pass should be URL encoded (as in above replacing the space between your names with the URL encoded version of that character). Kee ___ 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: [irev] passing a parameter
You pass the parameter in the URL using a name=value pair, like http://kweto.com/receiveData.irev?month=Jan2012 or http://kweto.com/receiveData.irev?day=12month=Jan2012 Note that if you are passing this from a script, you should URLencode the value before passing it put URLencode(mydata) into temp get URL (http//kweto.com/receiveData.irev?keyname= temp) into myreturnvalue Within the itev script, you access the keyname value pairs form the_GET array, put $_GET[month into tMonth put URLdecode( $_GET[keyname] ) into tData -- Alex. On 22/03/2012 05:30, Nicolas Cueto wrote: Hello All, I'm streamlining an already working irev setup, and have a two-part question. I have an url that connects to an irev script, and now want to also pass an id parameter thru that same url. For example: http://kweto.com/receiveData.irev?Jan2012 http://kweto.com/receiveData.irev?Feb2012 http://kweto.com/receiveData.irev?Mar2012 How would I append that id parameter to the url? My examples above show ?, but that's just a wild guess on my part. Secondly, how can the irev script at http://kweto.com/receiveData.irev; be modified to read in that id parameter from the url? Thank you. -- Nicolas Cueto ___ 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: [irev] passing a parameter
On 22 Mar 2012, at 08:54, Alex Tweedly wrote: put URLdecode( $_GET[keyname] ) into tData Alex, just a question for future reference. Is it necessary to URLDecode the $_GET values? I'm going on php experience here where $_GET values are already decoded. I was assuming it would be the same with Livecode. Cheers Dave ___ 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: [irev] passing a parameter
No idea - I've just always done it :-) Yep - a quick check says you're right, they are already urlDecoded In fact, the release notes say: $_GET Available when running in CGI mode. It is an array variable, translated from the QUERY_STRING. It assumes the query string is encoded as url-form-encoded data. The data will be converted to the native character set from the character set defined in the outputTextEncoding. (and it's the same for $_POST, etc.) Thanks - I can go remove a whole bunch of urlDecode calls now :-) -- Alex. On 22/03/2012 09:56, Dave Cragg wrote: On 22 Mar 2012, at 08:54, Alex Tweedly wrote: put URLdecode( $_GET[keyname] ) into tData Alex, just a question for future reference. Is it necessary to URLDecode the $_GET values? I'm going on php experience here where $_GET values are already decoded. I was assuming it would be the same with Livecode. Cheers Dave ___ 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: [irev] passing a parameter
On 22 Mar 2012, at 10:47, Alex Tweedly wrote: No idea - I've just always done it :-) Yep - a quick check says you're right, they are already urlDecoded Thanks for checking. ___ 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
Playing Flash Video?
I know someone who would like to add Flash video playback to a LiveCode project that already supports QuickTime and DirectShow. It must be possible to query the duration and current time of the video, set the current time, and play/pause the video via script. I'm looking for anyone who has done work in this area and might be able to help them out. Please contact me off-list. Thanks, -- Trevor DeVore Blue Mango Learning Systems www.clarify-it.com-www.screensteps.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
Two More Resolutions On The Way
In case you missed it, the rumor on the iPhone 5's new display: http://www.reuters.com/article/2012/03/22/us-apple-iphone-idUSBRE82L01G20120322 I think it's time to discuss a better way to do geometry design for iOS in LC. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ 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
LiveCode Player for 5.5
I've always downloaded the plugin at: http://revweb.runrev.com/ This gives me version (R9) which does not run standalones built for Web in Livecode 5.5. Is there another site to get the LiveCode player which will run standalones built in 5.5? Thanks, Ray Horsley LinkIt! Software ___ 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: LiveCode Player for 5.5
Ray, no. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 22 mrt 2012, at 17:18, Ray Horsley wrote: I've always downloaded the plugin at: http://revweb.runrev.com/ This gives me version (R9) which does not run standalones built for Web in Livecode 5.5. Is there another site to get the LiveCode player which will run standalones built in 5.5? Thanks, Ray Horsley LinkIt! Software ___ 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
Need an example of how to use try and catch
The dictionary needs an example of how the try command is used to catch an error. Anyone have an illustration? For example, suppose one wanted to catch an error in the statement: put the {some built-in property of an object] of button soAndso into tProp Where the built in property may not exist.How would one catch the error and perhaps proceed on the basis of the particular error message? Thanks, 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
Re: revCopyFile
Could you share the shell script that does the copy? That would be useful to many I think. Bob On Mar 21, 2012, at 11:25 PM, Geoff Canyon wrote: The advantages derive from the fact that LiveCode isn't doing the actual copying with revCopyFile -- the Finder is. For completeness, the same advantage applies to using a shell command. You don't get a progress dialog though. Okay, I just did a quick one-off test with interface sounds off. For thirty files that were each about 70kb, using a shell command was about 3x faster than using revCopyFile. That's without taking advantage of the ability to move and rename in one step with a shell command. If that's what you're doing, the advantage would be even greater. On Wed, Mar 21, 2012 at 3:04 PM, Pete p...@mollysrevenge.com wrote: Thanks all for the input. Sounds like Stephen's approach is the only way to get rid of it. Seems like that setting will apply to other sounds as well, but I'm OK with that. As far as using AppleScript, I'm using revCopyFile because the dictionary claims there are certain advantages to using it over put URL or any other method, amongst which is that it does not require reading the file into memory, and since some of these files could be pretty large, that's significant. On a Mac, it also displays a progress bar which I don;t think would be possible if I used put URL. Pete On Wed, Mar 21, 2012 at 11:35 AM, Geoff Canyon gcan...@gmail.com wrote: I went straight to the shell command, so I don't know for sure, but this sounds reasonable. There's also the overhead of spinning up AppleScript in the first place. If Apple is doing that badly, that might also cause problems I suppose. On Wed, Mar 21, 2012 at 1:24 PM, stephen barncard stephenrevoluti...@barncard.com wrote: That was probably a big reason why multiple file transfers would take more time - loading and unloading the sound - and perhaps the reason why it failed after memory was exceeded. ___ 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 -- Pete Molly's Revenge http://www.mollysrevenge.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 ___ 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: LiveCode Player for 5.5
Hi all, did you read the copyright notice on the download page: Copyright RunRev Ltd 2009 All rights reserved. That's the year when the plug-in was updated the last time! Well... Am 22.03.2012 um 16:27 schrieb Mark Schonewille: Ray, no. -- Best regards, Mark Schonewille On 22 mrt 2012, at 17:18, Ray Horsley wrote: I've always downloaded the plugin at: http://revweb.runrev.com/ This gives me version (R9) which does not run standalones built for Web in Livecode 5.5. Is there another site to get the LiveCode player which will run standalones built in 5.5? Thanks, Ray Horsley LinkIt! Software Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.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: LiveCode Player for 5.5
So building standalones for Web has been discontinued for quite some time now in LiveCode? On Mar 22, 2012, at 10:36 AM, Klaus on-rev wrote: Hi all, did you read the copyright notice on the download page: Copyright RunRev Ltd 2009 All rights reserved. That's the year when the plug-in was updated the last time! Well... Am 22.03.2012 um 16:27 schrieb Mark Schonewille: Ray, no. -- Best regards, Mark Schonewille On 22 mrt 2012, at 17:18, Ray Horsley wrote: I've always downloaded the plugin at: http://revweb.runrev.com/ This gives me version (R9) which does not run standalones built for Web in Livecode 5.5. Is there another site to get the LiveCode player which will run standalones built in 5.5? Thanks, Ray Horsley LinkIt! Software Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.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: Two More Resolutions On The Way
I don't see anything in that article that suggests there are new resolutions. If the new phone used the same dpi as the new iPad, instead of the dpi of the iPhone 4, then you would get a 4.3 inch screen that is still 640x960. ___ 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 an example of how to use try and catch
try put foo into myVar put the value of myVarr catch theError, theNum -- breakpoint answer theNum cr line1 of theError as sheet exit to top end try Is that what you mean? Bob On Mar 22, 2012, at 8:33 AM, Jim Hurley wrote: The dictionary needs an example of how the try command is used to catch an error. Anyone have an illustration? For example, suppose one wanted to catch an error in the statement: put the {some built-in property of an object] of button soAndso into tProp Where the built in property may not exist.How would one catch the error and perhaps proceed on the basis of the particular error message? Thanks, 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 ___ 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: LiveCode Player for 5.5
Ray, We know as much as you do. Also, I would consider it a waste of money if RunRev were to invest in the plugin again. I'd rather expect them to invest in HTML5 export. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 22 mrt 2012, at 17:44, Ray Horsley wrote: So building standalones for Web has been discontinued for quite some time now in 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 an example of how to use try and catch
On Mar 22, 2012, at 11:33 AM, Jim Hurley wrote: The dictionary needs an example of how the try command is used to catch an error. Anyone have an illustration? For example, suppose one wanted to catch an error in the statement: put the {some built-in property of an object] of button soAndso into tProp Where the built in property may not exist.How would one catch the error and perhaps proceed on the basis of the particular error message? example: try put sha1digest(tString) into tDigest catch tErr put md5digest(tString) into tDigest -- if version 4.5.3 end try -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ 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 an example of how to use try and catch
Bob, Yes that would be fine, except that I get a compilation error at the line: catch theError, theNum RR says: (try: not a command), char 7 Jim Bob Sneidar wrote: try put foo into myVar put the value of myVarr catch theError, theNum -- breakpoint answer theNum cr line1 of theError as sheet exit to top end try Is that what you mean? Bob ___ 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
iOS Caching?
Greetings, I am experiencing an issue on my iPad with my LiveCode project that is puzzling me. It appears that my iOS app is caching data from a server. Once I read a file from my server in my app, that's the only version of the file that I get. For example, I read the file and I get the correct data. I then change the data on the server. I then read the data again on the iPad, and I get the original copy of the data! The same thing happens even if I alter the data on the server from the iPad its self! To read the data, I am using a simple put: put decompress(url myFilePath) into tMyData I can write to the server without issue. Using a simple put, I can write the data to the server without issue. I have verified this is working. However, re-reading the data returns the original version of the data! I don't think the issue is my server as the EXACT code is working perfectly on the desktop version of LC (and has been for years). Any thoughts or ideas of what could cause this?? ANY advice is appreciated as I have already pulled most of my hair out on this! -Dan ___ 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 an example of how to use try and catch
On Mar 22, 2012, at 11:33 AM, Jim Hurley wrote: For example, suppose one wanted to catch an error in the statement: put the {some built-in property of an object] of button soAndso into tProp Where the built in property may not exist.How would one catch the error and perhaps proceed on the basis of the particular error message? Note that getting the customProp of an object where the property doesn't exist will return empty but won't trigger any error. If you want to catch this then don't use a try statement, do something like put the myProperty of btn x into tProp if tProp empty then -- do something with the property else -- handle error here end if -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ 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: Two More Resolutions On The Way
I guess I didn't think about them using the new iPad's pixel density instead of the iPhone 4's density. I guess we'll find out... ___ 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: LiveCode Player for 5.5
I like the idea of HTML5 export, too. But regarding building standalones for Web, why do you think that option is still in the Standalone Application Settings window? On Mar 22, 2012, at 10:53 AM, Mark Schonewille wrote: Ray, We know as much as you do. Also, I would consider it a waste of money if RunRev were to invest in the plugin again. I'd rather expect them to invest in HTML5 export. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 22 mrt 2012, at 17:44, Ray Horsley wrote: So building standalones for Web has been discontinued for quite some time now in 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: Need an example of how to use try and catch
On Mar 22, 2012, at 12:22 PM, Jim Hurley wrote: Bob, Yes that would be fine, except that I get a compilation error at the line: catch theError, theNum RR says: (try: not a command), char 7 The syntax for the try construction is try command here catch tError other commands here end try and the error number is put into the variable tError. So the other commands could be, eg, if tError = 314 then answer range error in loading array else if ... etc. end if -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ 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: iOS Caching?
Hi Dan, Although the internet library is no included in the iOS version of LiveCode as far as I know, you could try to unload the url before loading it again. If that doesn't work, you could try to use a different url every time, e.g. put decompress(url myFilePath ?= the millisecs) into tMyData I'd expect to have a neat way to clear the cache but I don't know of that. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 22 mrt 2012, at 17:26, Dan Friedman wrote: Greetings, I am experiencing an issue on my iPad with my LiveCode project that is puzzling me. It appears that my iOS app is caching data from a server. Once I read a file from my server in my app, that's the only version of the file that I get. For example, I read the file and I get the correct data. I then change the data on the server. I then read the data again on the iPad, and I get the original copy of the data! The same thing happens even if I alter the data on the server from the iPad its self! To read the data, I am using a simple put: put decompress(url myFilePath) into tMyData I can write to the server without issue. Using a simple put, I can write the data to the server without issue. I have verified this is working. However, re-reading the data returns the original version of the data! I don't think the issue is my server as the EXACT code is working perfectly on the desktop version of LC (and has been for years). Any thoughts or ideas of what could cause this?? ANY advice is appreciated as I have already pulled most of my hair out on this! -Dan ___ 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
Dismiss iOS KB
OK, this is weird - I can't seem to get rid of the iOS KB, even after the field that was being edited loses the focus by changing cards. This works in one project but not another. ___ 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: LiveCode Player for 5.5
Ray, I think it is just in case someone wants to use that feature and is willing to pay for it. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 22 mrt 2012, at 18:34, Ray Horsley wrote: I like the idea of HTML5 export, too. But regarding building standalones for Web, why do you think that option is still in the Standalone Application Settings window? ___ 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: revCopyFile
Hi Geoff, Thanks for the speed test info. I'm not very familiar with shell commands so maybe you could let me know the command to use? What I need to do is copy a file to a different folder with a different file name. The lack of a progress bar might be a problem, but if the speed differences are as much as you found, there may not be a need for a progress bar at all. Also, I assume the shell commands would be different on Windows and Mac. That's an inconvenience because it means extra coding, but not a show stopper. Thanks, Pete On Wed, Mar 21, 2012 at 11:25 PM, Geoff Canyon gcan...@gmail.com wrote: The advantages derive from the fact that LiveCode isn't doing the actual copying with revCopyFile -- the Finder is. For completeness, the same advantage applies to using a shell command. You don't get a progress dialog though. Okay, I just did a quick one-off test with interface sounds off. For thirty files that were each about 70kb, using a shell command was about 3x faster than using revCopyFile. That's without taking advantage of the ability to move and rename in one step with a shell command. If that's what you're doing, the advantage would be even greater. On Wed, Mar 21, 2012 at 3:04 PM, Pete p...@mollysrevenge.com wrote: Thanks all for the input. Sounds like Stephen's approach is the only way to get rid of it. Seems like that setting will apply to other sounds as well, but I'm OK with that. As far as using AppleScript, I'm using revCopyFile because the dictionary claims there are certain advantages to using it over put URL or any other method, amongst which is that it does not require reading the file into memory, and since some of these files could be pretty large, that's significant. On a Mac, it also displays a progress bar which I don;t think would be possible if I used put URL. Pete On Wed, Mar 21, 2012 at 11:35 AM, Geoff Canyon gcan...@gmail.com wrote: I went straight to the shell command, so I don't know for sure, but this sounds reasonable. There's also the overhead of spinning up AppleScript in the first place. If Apple is doing that badly, that might also cause problems I suppose. On Wed, Mar 21, 2012 at 1:24 PM, stephen barncard stephenrevoluti...@barncard.com wrote: That was probably a big reason why multiple file transfers would take more time - loading and unloading the sound - and perhaps the reason why it failed after memory was exceeded. ___ 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 -- Pete Molly's Revenge http://www.mollysrevenge.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 -- Pete Molly's Revenge http://www.mollysrevenge.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 an example of how to use try and catch
You're getting an error because the catch part of try takes only 1 parameter - the variable that holds the error - not two as in the script. Also, as noted by Peter, the try statement doesn't help you with the specific example you used since getting a non-existant custom property doesn't cause an error. I've sometimes wished there was a preference similar to the Strict Compilation Mode to deal with that. Pete On Thu, Mar 22, 2012 at 9:22 AM, Jim Hurley jhurley0...@sbcglobal.netwrote: Bob, Yes that would be fine, except that I get a compilation error at the line: catch theError, theNum RR says: (try: not a command), char 7 Jim Bob Sneidar wrote: try put foo into myVar put the value of myVarr catch theError, theNum -- breakpoint answer theNum cr line1 of theError as sheet exit to top end try Is that what you mean? Bob ___ 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 -- Pete Molly's Revenge http://www.mollysrevenge.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 an example of how to use try and catch
Whoops maybe the second argument is not valid. On Mar 22, 2012, at 9:22 AM, Jim Hurley wrote: Bob, Yes that would be fine, except that I get a compilation error at the line: catch theError, theNum RR says: (try: not a command), char 7 Jim Bob Sneidar wrote: try put foo into myVar put the value of myVarr catch theError, theNum -- breakpoint answer theNum cr line1 of theError as sheet exit to top end try Is that what you mean? Bob ___ 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 an example of how to use try and catch
Also I forgot the finally part try -- some statements catch theError -- do some stuff if there is an error finally -- do some other stuff no matter what end try On Mar 22, 2012, at 9:22 AM, Jim Hurley wrote: Bob, Yes that would be fine, except that I get a compilation error at the line: catch theError, theNum RR says: (try: not a command), char 7 Jim Bob Sneidar wrote: try put foo into myVar put the value of myVarr catch theError, theNum -- breakpoint answer theNum cr line1 of theError as sheet exit to top end try Is that what you mean? Bob ___ 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: LiveCode Player for 5.5
There was some discussion about this in the past, and a lot of people seemed to think that making people install a plugin to run a web app was very undesirable these days. I think Runrev at that point put it on the back burner. I mean the stove in the shed on the north 40. Bob On Mar 22, 2012, at 9:48 AM, Keith Clarke wrote: I think if the option was pulled, there would be a hue and cry from the developer community, whereas leaving it to whither on the vine has meant that most have just given up asking for an update. Given RunRev's 'no more roadmaps' policy, any web or enterprise developers who were waiting have probably been forced to move to alternative tools. It's a shame - so much potential but nothing to plan against. Best, Keith.. ___ 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 an example of how to use try and catch
It does give an error here. I get the error message: button Button: execution error at line n/a (Object: object does not have this property) Jim Message: 2 Date: Thu, 22 Mar 2012 09:55:20 -0700 From: Pete p...@mollysrevenge.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: Need an example of how to use try and catch Message-ID: CABx6j9=UY=3n6-vjpmxastopezh0ewj6kpopa01vxcxke3t...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 You're getting an error because the catch part of try takes only 1 parameter - the variable that holds the error - not two as in the script. Also, as noted by Peter, the try statement doesn't help you with the specific example you used since getting a non-existant custom property doesn't cause an error. I've sometimes wished there was a preference similar to the Strict Compilation Mode to deal with that. Pete * ___ 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 an example of how to use try and catch
Thanks Peter. The problem now is what do these bloody error numbers translate into. Is the a list somewhere? When I try: on mouseUP try put the cantdelete of me into temp catch tErr --- if tErr is ?? end try end mouseUP I get an error of 348,0,0 Jim Peter Brigham wrote: The syntax for the try construction is try command here catch tError other commands here end try and the error number is put into the variable tError. So the other commands could be, eg, if tError = 314 then answer range error in loading array else if ... etc. end if -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig ___ 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 an example of how to use try and catch
On 3/22/12 12:21 PM, Jim Hurley wrote: Thanks Peter. The problem now is what do these bloody error numbers translate into. Is the a list somewhere? The list is explained in the errordialog entry in the dictionary. You can retrieve the list with the line of script the dictionary provides. There is also this utility for manual lookups: http://dl.dropbox.com/u/23431607/LiveCode%20Error%20Lookup.livecode.zip -- 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: Need an example of how to use try and catch
On Mar 22, 2012, at 1:11 PM, Jim Hurley wrote: It does give an error here. I get the error message: button Button: execution error at line n/a (Object: object does not have this property) Sounds as if you're trying to get a built-in property that doesn't apply to that type of object. If you try to get the scroll of a button, you'll get an error. If you try to get the mycustomProp of a button and you've never set the mycustomProp of that button to anything (so it doesn't exist), you'll get empty with no error message. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ 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 an example of how to use try and catch
Does anyone have any guidelines as to when you should use the try and catch structure? I don't really know when or when not to use it. -= Mike On Mar 22, 2012, at 1:21 PM, Jim Hurley wrote: Thanks Peter. The problem now is what do these bloody error numbers translate into. Is the a list somewhere? When I try: on mouseUP try put the cantdelete of me into temp catch tErr --- if tErr is ?? end try end mouseUP I get an error of 348,0,0 Jim Peter Brigham wrote: The syntax for the try construction is try command here catch tError other commands here end try and the error number is put into the variable tError. So the other commands could be, eg, if tError = 314 then answer range error in loading array else if ... etc. end if -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig ___ 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 an example of how to use try and catch
On Mar 22, 2012, at 1:21 PM, Jim Hurley wrote: Thanks Peter. The problem now is what do these bloody error numbers translate into. Is the a list somewhere? Jacque posted this two days ago: On 3/20/12 12:37 PM, Ralph DiMola wrote: OK, I give up. How do you translate error number into descriptive text? There's a plugin that Richard Gaskin and I developed. I've been trying to upload it to RevOnline for some time but it won't let me. Until that gets fixed, anyone who wants it can grab it from my Dropbox: http://dl.dropbox.com/u/23431607/LiveCode%20Error%20Lookup.livecode.zip The advantage of this little stack over a static resource (besides being free) is that it dynamically loads the error list from the currently running copy of LiveCode. That means it will never go out of date, and will change depending on which version of LiveCode you open it in. There's a second card that's intended for use with debugging iOS errors copied from the Console app. There's an Info button in the stack for more details. It hasn't been thoroughly tested but I've been using it for some time without any problems. The scripts are open, so you can change it if you want. If you do, please let me know so I can update the master copy. - When I try: on mouseUP try put the cantdelete of me into temp catch tErr --- if tErr is ?? end try end mouseUP I get an error of 348,0,0 first item is the error number, second item is the line number of the script where it hangs, and the third is the character number in the line. Error 348 is: 348 Object: object does not have this property Not sure what line 0 char 0 means. Maybe someone else knows? -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ 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: LiveCode Player for 5.5
I'm in the K-12 education field. Teachers are quickly moving away from downloading anything and their IT guys are even worse, sometimes setting up systems which disallow downloading a desktop app. I hadn't looked at building for Web in a while but this is very discouraging to find it's gone. I had hoped it had been cleaned up since I last worked with it, not abandoned. From what I see the education industry is not the only area moving rapidly toward doing everything in a browser. Healthcare, finance, you name it, everybody spends most of the day in browsers today. Does this mean the majority of us Livecoders are doing nothing more than writing mobile apps? Ray Horsley LinkIt! Software On Mar 22, 2012, at 12:05 PM, Bob Sneidar wrote: There was some discussion about this in the past, and a lot of people seemed to think that making people install a plugin to run a web app was very undesirable these days. I think Runrev at that point put it on the back burner. I mean the stove in the shed on the north 40. Bob On Mar 22, 2012, at 9:48 AM, Keith Clarke wrote: I think if the option was pulled, there would be a hue and cry from the developer community, whereas leaving it to whither on the vine has meant that most have just given up asking for an update. Given RunRev's 'no more roadmaps' policy, any web or enterprise developers who were waiting have probably been forced to move to alternative tools. It's a shame - so much potential but nothing to plan against. Best, Keith.. ___ 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 an example of how to use try and catch
I second this! Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net Also, as noted by Peter, the try statement doesn't help you with the specific example you used since getting a non-existant custom property doesn't cause an error. I've sometimes wished there was a preference similar to the Strict Compilation Mode to deal with that. ___ 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 an example of how to use try and catch
On Mar 22, 2012, at 1:32 PM, J. Landman Gay wrote: On 3/22/12 12:21 PM, Jim Hurley wrote: Thanks Peter. The problem now is what do these bloody error numbers translate into. Is the a list somewhere? The list is explained in the errordialog entry in the dictionary. You can retrieve the list with the line of script the dictionary provides. There is also this utility for manual lookups: http://dl.dropbox.com/u/23431607/LiveCode%20Error%20Lookup.livecode.zip Or, here's something for your library, so you can call it from a script or from the message box: function expandError tErr repeat for each line e in tErr put item 1 of e into errNbr put item 2 of e into tLineNbr put item 3 of e into tCharNbr put errNbr (line tLineNbr , char tCharNbr ): \ line errNbr of the cErrorsList of card 1 of stack revErrorDisplay \ into tErrMsg put tErrMsg cr after errorlist end repeat if char -1 of errorlist = cr then delete char -1 of errorlist return errorlist end expandError -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ 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 an example of how to use try and catch
I use it to determine if there has been an error executing a sequel query for example. All my database calls go inside a try catch statement. If you put it into a repeat loop, you can test to see if perhaps you have been disconnected, or if a runtime error occurred due to a bad query, and then act accordingly, either try to reconnect if disconnected, or bail out gracefully if a runtime error has occurred. Bob On Mar 22, 2012, at 10:33 AM, Michael Doub wrote: Does anyone have any guidelines as to when you should use the try and catch structure? I don't really know when or when not to use it. -= Mike On Mar 22, 2012, at 1:21 PM, Jim Hurley wrote: Thanks Peter. The problem now is what do these bloody error numbers translate into. Is the a list somewhere? When I try: on mouseUP try put the cantdelete of me into temp catch tErr --- if tErr is ?? end try end mouseUP I get an error of 348,0,0 Jim Peter Brigham wrote: The syntax for the try construction is try command here catch tError other commands here end try and the error number is put into the variable tError. So the other commands could be, eg, if tError = 314 then answer range error in loading array else if ... etc. end if -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig ___ 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: Need an example of how to use try and catch
Interesting, never thought of that. Is there an advantage to doing that over just issuing the database call and checking for an error right after? I've mostly thought of try/catch for as a debugging tool. I also use it any place where I put together a command in a variable and execute the command with a do statement. Pete On Thu, Mar 22, 2012 at 11:30 AM, Bob Sneidar b...@twft.com wrote: I use it to determine if there has been an error executing a sequel query for example. All my database calls go inside a try catch statement. If you put it into a repeat loop, you can test to see if perhaps you have been disconnected, or if a runtime error occurred due to a bad query, and then act accordingly, either try to reconnect if disconnected, or bail out gracefully if a runtime error has occurred. Bob On Mar 22, 2012, at 10:33 AM, Michael Doub wrote: Does anyone have any guidelines as to when you should use the try and catch structure? I don't really know when or when not to use it. -= Mike On Mar 22, 2012, at 1:21 PM, Jim Hurley wrote: Thanks Peter. The problem now is what do these bloody error numbers translate into. Is the a list somewhere? When I try: on mouseUP try put the cantdelete of me into temp catch tErr --- if tErr is ?? end try end mouseUP I get an error of 348,0,0 Jim Peter Brigham wrote: The syntax for the try construction is try command here catch tError other commands here end try and the error number is put into the variable tError. So the other commands could be, eg, if tError = 314 then answer range error in loading array else if ... etc. end if -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig ___ 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 -- Pete Molly's Revenge http://www.mollysrevenge.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
Translation s'il vous plâit/por favor :-)
Hi friends, could you please translate this into french and spanish for me? ... Copy XXX to your Applications folder. ... Vielen Dank! Thanks a lot! Merci beaucoup! Muchas gracias! :-) Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.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: Translation s'il vous plâit/por favor :-)
We've already got them, so here you go: Francais: Copiez le fichier mon_fichier à votre dossier Applications Espanol:Copie thefile a su carpeta Aplicaciones If others could vet these JUST TO BE SURE :-). Tim On Mar 22, 2012, at 12:04 PM, Klaus on-rev wrote: Hi friends, could you please translate this into french and spanish for me? ... Copy XXX to your Applications folder. ... Vielen Dank! Thanks a lot! Merci beaucoup! Muchas gracias! :-) Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.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: Translation s'il vous plâit/por favor :-)
On Mar 22, 2012, at 12:15 PM, Tim Jones wrote: We've already got them, so here you go: Francais: Copiez le fichier mon_fichier à votre dossier Applications Also may be: Copiez le fichier mon_fichier sur votre dossier Applications Tim ___ 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: Translation s'il vous plâit/por favor :-)
Le 22 mars 2012 à 20:04, Klaus on-rev a écrit : Hi friends, could you please translate this into french and spanish for me? ... Copy XXX to your Applications folder. Copiez XXX dans votre dossier Applications. ___ 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: Translation s'il vous plâit/por favor :-)
or : Copiez le fichier mon_fichier dans votre dossier Applications -- Pierre Sahores mobile : 06 03 95 77 70 www.spimsco.net : la première solution saas open source et commerciale de développement sémantique préprogrammé Le 22 mars 2012 à 20:18, Tim Jones a écrit : On Mar 22, 2012, at 12:15 PM, Tim Jones wrote: We've already got them, so here you go: Francais: Copiez le fichier mon_fichier à votre dossier Applications Also may be: Copiez le fichier mon_fichier sur votre dossier Applications Tim ___ 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: Translation s'il vous plâit/por favor :-)
Pierre, would you mind explaining the tense differences between the three options: à votre sur votre dans votre It turns out that one of our products has the first two as the text for this exact message. Your option is a third variant and I'm now completely confused :-/ Thanks, Tim On Mar 22, 2012, at 12:24 PM, Pierre Sahores wrote: or : Copiez le fichier mon_fichier dans votre dossier Applications ___ 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
datagrid in iOS scroller
Okay, so I decided to devote myself to a little toy project: download a list, display it to the user, and filter according to tags. Precisely the sort of thing I'd want a high-level language for, and LiveCode should be ideal, as I want it on Android devices as well! Okay, so I dig around and find dataGrid. Brilliant, it does exactly what I want. I spend the day figuring out how to make custom templates, populate things from a script, filter according to my custom needs, everything. Fantastic! Okay, let's run it on iOS. Oh rats. That motif scrollbar has to go. Okay, let's dig around a bit more. Find a thread on the forums DataGrid and a native Scroller. After playing around with it, it seems to only work with a table datagrid, not a form datagrid. Oh dear. The symptom is that a limited amount of the datagrid is rendered at the beginning. When scrolled, that is painfully obvious. Can anyone here save me from dataGrid purgatory? Is there an easy solution, or should I just dive back into iOS tables? -Ken ___ 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: datagrid in iOS scroller
I have successfully used form data grids on IOS with no problem. Can you be more clear on the symptoms of your problem? Are you setting the layer mode of the grid to scrolling and AcceleratedRendering of the stack to true? http://livecodejournal.com/forum/viewtopic.php?f=23t=54 -= Mike On Mar 22, 2012, at 3:50 PM, Ken Corey wrote: Okay, so I decided to devote myself to a little toy project: download a list, display it to the user, and filter according to tags. Precisely the sort of thing I'd want a high-level language for, and LiveCode should be ideal, as I want it on Android devices as well! Okay, so I dig around and find dataGrid. Brilliant, it does exactly what I want. I spend the day figuring out how to make custom templates, populate things from a script, filter according to my custom needs, everything. Fantastic! Okay, let's run it on iOS. Oh rats. That motif scrollbar has to go. Okay, let's dig around a bit more. Find a thread on the forums DataGrid and a native Scroller. After playing around with it, it seems to only work with a table datagrid, not a form datagrid. Oh dear. The symptom is that a limited amount of the datagrid is rendered at the beginning. When scrolled, that is painfully obvious. Can anyone here save me from dataGrid purgatory? Is there an easy solution, or should I just dive back into iOS tables? -Ken ___ 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 an example of how to use try and catch
On Mar 22, 2012, at 10:33 AM, Michael Doub wrote: Does anyone have any guidelines as to when you should use the try and catch structure? I don't really know when or when not to use it. Here's another use (and apropos a different thread here) In order to recreate a control you'd want to 1. get the list of properties and their values 2. create a new control of the same type 3. set each of the properties to the original value One problem with this is that some properties are read-only, and some can only be applied to the parent object (can't set the rect of a card, for example). So I do something like repeat for each element tProp in tPropertyArray try set the tProp of tNewControl to tPropertyArray[tProp] catch e -- just ignore the error here end try end repeat -- Mark Wieder ___ 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
Using Quicktime to record sounds in Livecode
Hi All, Recently, I have been struggling in Windows XP with sound recording in LiveCode using QuickTime 7.7.1 When I start recording, I see that hard disk is writing but when I click the button Stop recording, there is no file written. This is the code that I am using, copied from a forum post. Please, test in your own setup and post your results using the development environment and the more recent version of StackRunner: http://www.sonsothunder.com/devres/revolution/downloads/StackRunner.htm Thanks in advance! Al -- Button Record Sound: on mouseUp set the recordInput to dflt -- default -- other options are imic (internal microphone) emic (external microphone), etc set the recordRate to 48 put the platform into tPlatform if tPlatform is win32 then set the recordFormat to wave put .wav into tSuffix else set the recordFormat to aiff put .aif into tSuffix end if set the playLoudness to 100 record sound file (specialfolderpath(desktop) /SoundTest tSuffix) end mouseUp Button Stop Recording on mouseup stop recording end mouseup -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Using-Quicktime-to-record-sounds-in-Livecode-tp4496711p4496711.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: Translation s'il vous plâit/por favor :-)
Hi Tim, No big semantical differences but the use is to say dans votre à votre -- to your sur votre -- on your dans votre -- in your Best, -- Pierre Sahores mobile : 06 03 95 77 70 www.spimsco.net : la première solution saas open source et commerciale de développement sémantique préprogrammé Le 22 mars 2012 à 20:41, Tim Jones a écrit : Pierre, would you mind explaining the tense differences between the three options: à votre sur votre dans votre It turns out that one of our products has the first two as the text for this exact message. Your option is a third variant and I'm now completely confused :-/ Thanks, Tim On Mar 22, 2012, at 12:24 PM, Pierre Sahores wrote: or : Copiez le fichier mon_fichier dans votre dossier Applications ___ 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 an example of how to use try and catch
No advantage per se, but I use sqlYoga and the only way to determine what went wrong is in a try catch statement as the libSQLYoga stack is locked. Bob On Mar 22, 2012, at 11:49 AM, Pete wrote: Interesting, never thought of that. Is there an advantage to doing that over just issuing the database call and checking for an error right after? I've mostly thought of try/catch for as a debugging tool. I also use it any place where I put together a command in a variable and execute the command with a do statement. Pete On Thu, Mar 22, 2012 at 11:30 AM, Bob Sneidar b...@twft.com wrote: I use it to determine if there has been an error executing a sequel query for example. All my database calls go inside a try catch statement. If you put it into a repeat loop, you can test to see if perhaps you have been disconnected, or if a runtime error occurred due to a bad query, and then act accordingly, either try to reconnect if disconnected, or bail out gracefully if a runtime error has occurred. Bob On Mar 22, 2012, at 10:33 AM, Michael Doub wrote: Does anyone have any guidelines as to when you should use the try and catch structure? I don't really know when or when not to use it. -= Mike On Mar 22, 2012, at 1:21 PM, Jim Hurley wrote: Thanks Peter. The problem now is what do these bloody error numbers translate into. Is the a list somewhere? When I try: on mouseUP try put the cantdelete of me into temp catch tErr --- if tErr is ?? end try end mouseUP I get an error of 348,0,0 Jim Peter Brigham wrote: The syntax for the try construction is try command here catch tError other commands here end try and the error number is put into the variable tError. So the other commands could be, eg, if tError = 314 then answer range error in loading array else if ... etc. end if -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig ___ 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 -- Pete Molly's Revenge http://www.mollysrevenge.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: Need an example of how to use try and catch
RunRev was thinking of calling the try construct, TryAndDontStopDeadInYourTracksUponAnError but they opted for the shorter version. ;-) Bob On Mar 22, 2012, at 1:08 PM, Mark Wieder wrote: On Mar 22, 2012, at 10:33 AM, Michael Doub wrote: Does anyone have any guidelines as to when you should use the try and catch structure? I don't really know when or when not to use it. Here's another use (and apropos a different thread here) In order to recreate a control you'd want to 1. get the list of properties and their values 2. create a new control of the same type 3. set each of the properties to the original value One problem with this is that some properties are read-only, and some can only be applied to the parent object (can't set the rect of a card, for example). So I do something like repeat for each element tProp in tPropertyArray try set the tProp of tNewControl to tPropertyArray[tProp] catch e -- just ignore the error here end try end repeat -- Mark Wieder ___ 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: Translation s'il vous plâit/por favor :-)
I agree with Pierre answer. Examples : mettez le fichier sur votre bureau put the file on your desktop copiez le fichier dans votre dossier copy the file to (into) your folder mettez la montre à votre poignet put the watch on your wrist Hope this help Jacques Clavel 2012/3/22 Tim Jones tolis...@me.com Pierre, would you mind explaining the tense differences between the three options: à votre sur votre dans votre It turns out that one of our products has the first two as the text for this exact message. Your option is a third variant and I'm now completely confused :-/ Thanks, Tim On Mar 22, 2012, at 12:24 PM, Pierre Sahores wrote: or : Copiez le fichier mon_fichier dans votre dossier Applications ___ 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: Translation s'il vous plâit/por favor :-)
Make's perfect sense. dans votre is the proper direction and I've changed the strings in our lang files. Thanks to you and Pierre for the clarification. Tim On Mar 22, 2012, at 1:30 PM, jacques CLAVEL wrote: I agree with Pierre answer. Examples : mettez le fichier sur votre bureau put the file on your desktop copiez le fichier dans votre dossier copy the file to (into) your folder mettez la montre à votre poignet put the watch on your wrist Hope this help Jacques Clavel 2012/3/22 Tim Jones tolis...@me.com Pierre, would you mind explaining the tense differences between the three options: à votre sur votre dans votre It turns out that one of our products has the first two as the text for this exact message. Your option is a third variant and I'm now completely confused :-/ Thanks, Tim On Mar 22, 2012, at 12:24 PM, Pierre Sahores wrote: or : Copiez le fichier mon_fichier dans votre dossier Applications ___ 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: LiveCode Player for 5.5
Ray Horsley wrote: I like the idea of HTML5 export, too. Me too, but although translating layout isn't hard, given the vast differences between LiveCode and its object model and JavaScript/DOM, I wouldn't bet on it. -- 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: LiveCode Player for 5.5
Ray Horsley wrote: I'm in the K-12 education field. Teachers are quickly moving away from downloading anything and their IT guys are even worse, sometimes setting up systems which disallow downloading a desktop app. I hadn't looked at building for Web in a while but this is very discouraging to find it's gone. I had hoped it had been cleaned up since I last worked with it, not abandoned. If it's gone someone should let RunRev know: http://www.runrev.com/products/web/ From what I see the education industry is not the only area moving rapidly toward doing everything in a browser. Healthcare, finance, you name it, everybody spends most of the day in browsers today. Does this mean the majority of us Livecoders are doing nothing more than writing mobile apps? Ironically, a mobile app is very much like the most viable, flexible, and cost-effective alternative to RevWeb: net-savvy standalones. Whether the LiveCode engine is wrapped as a browser plugin or your own standalone, either way it'll need institutional buy-in to get your stacks distributed. Any org that will allow a third-party binary browser plugin should also allow a standalone. Like the browser plugin, a standalone can easily download stacks from a server, even compressed stacks for quick delivery. But unlike a browser you have far more options: Your users can enjoy the flexibility any desktop app has in terms of a UI dedicated for its workflow, along with local file access and other traditional app features, which can be used to provide an offline mode, smart caching, and more. And if needed, a standalone can be more secure than a browser: just turn on the secureMode as the first line in your startup handler, and your app will be prevented from many any changes at all on the local machine. I suspect that most of the laments from not being able to use RevWeb for deployment fall into two camps: a) Devs who've had to work with orgs run by dumb really dumb IT staff who somehow think that a proprietary binary executable that's called a browser plugin is somehow inherently safer than an application b) Devs who haven't really pursued such conversations with their clients seriously, so the issue is largely just theoretical for them. -- 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: accessing colorized script
Peter M. Brigham, MD pmbrig@... writes: Yes. When I use -1 instead of the lengthier form, it won't compile, and the long form compiles but doesn't do anything when I execute it. No error, no action. MacBook, OSX 10.6.8, Rev Studio 4.5.3, build 1210, operating on an ordinary text field. I was so hopeful! Any other ideas? As long as you're staying in the IDE, you can let the IDE's script editor set up the colorization tables for you: on mouseUp pMouseBtnNo local tScript local tNum put field fldScript into tScript put the number of lines of field fldScript into tNum send sePrefInit to stack revNewScriptEditor send revSEColorize tScript,default to stack revNewScriptEditor _internal script colorize line 1 to tNum of field fldScript end mouseUp -- Mark Wieder ___ 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 an example of how to use try and catch
I have been using the try/catch idiom for years. I like the structure it gives my code - visually it makes it very clear where I am expecting problematic sections to be. I rarely use 'finally'. However the problem has always been with interpreting the error codes that arise. For years I got round that by incorporating Mark Schonewille's errorLib in my stacks. Like you, I find that sqlYoga really needs try/catch. I did see somewhere else that Trevor recommended having some specific error handler implemented, but for me just wrapping the calls that go to the database in try/catch solves the problem. Bernard On Thu, Mar 22, 2012 at 8:25 PM, Bob Sneidar b...@twft.com wrote: No advantage per se, but I use sqlYoga and the only way to determine what went wrong is in a try catch statement as the libSQLYoga stack is locked. Bob ___ 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: datagrid in iOS scroller
On 22/03/2012 20:02, Michael Doub wrote: I have successfully used form data grids on IOS with no problem. Can you be more clear on the symptoms of your problem? Are you setting the layer mode of the grid to scrolling and AcceleratedRendering of the stack to true? http://livecodejournal.com/forum/viewtopic.php?f=23t=54 Hi Michael, Thanks for writing. The symptom is that when I touch and drag to scroll the formatted area of the dataGris scrolls up too without revealing any more of the details of itself. -Ken ___ 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 an example of how to use try and catch
The following script will provide a start in finding all the property values of a given object, in this case the button button It starts with the propertynames which is a list of ALL built-in property names in LC. It then attempts to put the value of each of these properties for the given object. If the attempt was successful, it goes into the object property list, otherwise not. on mouseUp put the propertynames into tProps repeat for each line tLine in tProps put into tErr try put the tLine of button button into tPropVal catch tErr put tLine cr after tOmits next repeat end try if tPropVal is not empty then put tLine tab tPropVal cr after tSaves end repeat put tSaves into field saves put tOmits into field omits end mouseUp ___ 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: Translation s'il vous pl?it/por favor :-)
Hi, Better... Copiar XXX a su carpeta Aplicaciones Salut, Josep M El 22/03/2012, a las 21:30, use-livecode-requ...@lists.runrev.com escribió: Espanol:Copie thefile a su carpeta Aplicaciones ___ 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: Translation s'il vous pl?it/por favor :-)
Josep - As with my French, would you mind clarifying the difference between Copie and Copiar? Thanks, Tim On Mar 22, 2012, at 3:31 PM, Josep M Yepes wrote: Hi, Better... Copiar XXX a su carpeta Aplicaciones Salut, Josep M El 22/03/2012, a las 21:30, use-livecode-requ...@lists.runrev.com escribió: Espanol:Copie thefile a su carpeta Aplicaciones ___ 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 an example of how to use try and catch
When you are in a standalone, a runtime error that would halt execution might be fatal. Try/Catch allows you to handle the error gracefully without presenting the user with an ugly dialog and a QTD afterwards. You can politely inform the user that something has gone wrong and you have to exit the application, after tidying things up a bit if necessary. Databases can just go away sometimes, like the IT guy deciding it's time to update the servers and restart them while the user is working late on an important project. Setting a repeat loop around a try/catch construct allows you to attempt a reconnect a certain number of times, or present the user with a Retry/Cancel dialog, allowing you to clean up and exit gracefully if necessary. As a case in point, I was having a problem with a low level broadcast storm which was causing the uplinks on our switches to reset (they are designed to do that). Anyone who uses Microsoft SQL knows this can be fatal, depending on how the software is written. Our accounting software was not very well written, and as a result, the end user was subject to a never ending stream of error dialogs allowing a cancel, retry or abort! None of them exited gracefully. ICK!! Had the developer accounted for the possibility that the user could be disconnected from the database, and provided a graceful exit, my reputation would not now be so tarnished, because they all blamed me of course. :-) To the accounting girl's credit however, they did make me brownies when I found the source of the broadcast storm and fixed it. Bob On Mar 22, 2012, at 3:31 PM, Pete wrote: Sorry to keep this thread going but I'm trying to figure out if I should be using try/catch more, particularly for database calls. As far as I know, you can tell if any of the standard rev db calls fail by checking their returned value or the result. Are there circumstances where that's not the case or does SQLYoga silent about errors? I have experienced silent datagrid problems that were only revealed by enclosing the datagrid access statements in try/catch. Pete ___ 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: revCopyFile
I scripted this using the read as binary etc. using 16KB buffers some time ago in pure LC. Much faster, and cross-platform. Idon'thave the code here at hand, but it is really straightforward: Open the source file for read binary Open the destination file for write binary Read 16KB or whatever is left if it's less from the source into a buffer Append the buffer to the destination Loop until done Close the files Faster then revCopyFile (in fact, why doesn't itdo it this way) and no hassle with shells or external processes where you need to check if they actually did what you asked. HTH, Maarten On Thursday, March 22, 2012, Pete p...@mollysrevenge.com wrote: Hi Geoff, Thanks for the speed test info. I'm not very familiar with shell commands so maybe you could let me know the command to use? What I need to do is copy a file to a different folder with a different file name. The lack of a progress bar might be a problem, but if the speed differences are as much as you found, there may not be a need for a progress bar at all. Also, I assume the shell commands would be different on Windows and Mac. That's an inconvenience because it means extra coding, but not a show stopper. Thanks, Pete On Wed, Mar 21, 2012 at 11:25 PM, Geoff Canyon gcan...@gmail.com wrote: The advantages derive from the fact that LiveCode isn't doing the actual copying with revCopyFile -- the Finder is. For completeness, the same advantage applies to using a shell command. You don't get a progress dialog though. Okay, I just did a quick one-off test with interface sounds off. For thirty files that were each about 70kb, using a shell command was about 3x faster than using revCopyFile. That's without taking advantage of the ability to move and rename in one step with a shell command. If that's what you're doing, the advantage would be even greater. On Wed, Mar 21, 2012 at 3:04 PM, Pete p...@mollysrevenge.com wrote: Thanks all for the input. Sounds like Stephen's approach is the only way to get rid of it. Seems like that setting will apply to other sounds as well, but I'm OK with that. As far as using AppleScript, I'm using revCopyFile because the dictionary claims there are certain advantages to using it over put URL or any other method, amongst which is that it does not require reading the file into memory, and since some of these files could be pretty large, that's significant. On a Mac, it also displays a progress bar which I don;t think would be possible if I used put URL. Pete On Wed, Mar 21, 2012 at 11:35 AM, Geoff Canyon gcan...@gmail.com wrote: I went straight to the shell command, so I don't know for sure, but this sounds reasonable. There's also the overhead of spinning up AppleScript in the first place. If Apple is doing that badly, that might also cause problems I suppose. On Wed, Mar 21, 2012 at 1:24 PM, stephen barncard stephenrevoluti...@barncard.com wrote: That was probably a big reason why multiple file transfers would take more time - loading and unloading the sound - and perhaps the reason why it failed after memory was exceeded. ___ 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 -- Pete Molly's Revenge http://www.mollysrevenge.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 -- Pete Molly's Revenge http://www.mollysrevenge.com ___ use-liv ___ 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: revCopyFile
Ohhh... good idea. And a perfect case for try/catch too! ;-) Bob On Mar 22, 2012, at 4:11 PM, Maarten Koopmans wrote: I scripted this using the read as binary etc. using 16KB buffers some time ago in pure LC. Much faster, and cross-platform. Idon'thave the code here at hand, but it is really straightforward: Open the source file for read binary Open the destination file for write binary Read 16KB or whatever is left if it's less from the source into a buffer Append the buffer to the destination Loop until done Close the files Faster then revCopyFile (in fact, why doesn't itdo it this way) and no hassle with shells or external processes where you need to check if they actually did what you asked. HTH, Maarten ___ 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: UrlEncode oddness
Hi Jacque, I should point out that we need control over the way we encode our URL's. The default still is MacRoman on Mac and Latin-1 on Windows. If urlEncode converted all text to UTF8 by default, we'd have a lot of trouble getting MacRoman and Latin-1 encoded URL's. So, no, you don't want urlEncode to just do this for us. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 21 mrt 2012, at 21:48, J. Landman Gay wrote: Thanks. I tried a few things with uniencode before posting but I must not have hit on the right combination. This works. Seems like urlencode should just do this for us. -- 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: Need an example of how to use try and catch
Or - this can be applied to a night out clubbing - try put myBestPickupLine into myMouth catch theResponse If theResponse is not negative -- Oh yeah! set luckynight to true else put wittingComback into myMouth move body to new location finally if not luckynight then goHomeAlone end try Sorry, it's just too obvious… Tim ___ 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: UrlEncode oddness
On 3/22/12 6:24 PM, Mark Schonewille wrote: Hi Jacque, I should point out that we need control over the way we encode our URL's. The default still is MacRoman on Mac and Latin-1 on Windows. If urlEncode converted all text to UTF8 by default, we'd have a lot of trouble getting MacRoman and Latin-1 encoded URL's. So, no, you don't want urlEncode to just do this for us. Okay. As it turns out, the method didn't work anyway, even though it did match the Dropbox URL. iOS 5.1 has changed something in how it handles url encoded paths with high-ascii characters. I can't get your method or the native LiveCode encoding to work. -- 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: UrlEncode oddness
Hi Jacque, Do you mean that the syntax I posted produced different results on OSX and iOS? That could be a bug. What happens if you just try to open the UTF-8 encoded URL on iOS (without urlEncoding it). -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 23 mrt 2012, at 00:36, J. Landman Gay wrote: Okay. As it turns out, the method didn't work anyway, even though it did match the Dropbox URL. iOS 5.1 has changed something in how it handles url encoded paths with high-ascii characters. I can't get your method or the native LiveCode encoding to work. -- 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: revCopyFile
Hi Maarten, That's a nice solution. Fast and doing it in chunks allows me to show a progress bar. I think I'll settle on that method. Is there a way to get the size of a file in LC? With that, I could decide if it's even worth displaying a progress bar. Pete On Thu, Mar 22, 2012 at 4:11 PM, Maarten Koopmans maarten.koopm...@gmail.com wrote: I scripted this using the read as binary etc. using 16KB buffers some time ago in pure LC. Much faster, and cross-platform. Idon'thave the code here at hand, but it is really straightforward: Open the source file for read binary Open the destination file for write binary Read 16KB or whatever is left if it's less from the source into a buffer Append the buffer to the destination Loop until done Close the files Faster then revCopyFile (in fact, why doesn't itdo it this way) and no hassle with shells or external processes where you need to check if they actually did what you asked. HTH, Maarten On Thursday, March 22, 2012, Pete p...@mollysrevenge.com wrote: Hi Geoff, Thanks for the speed test info. I'm not very familiar with shell commands so maybe you could let me know the command to use? What I need to do is copy a file to a different folder with a different file name. The lack of a progress bar might be a problem, but if the speed differences are as much as you found, there may not be a need for a progress bar at all. Also, I assume the shell commands would be different on Windows and Mac. That's an inconvenience because it means extra coding, but not a show stopper. Thanks, Pete On Wed, Mar 21, 2012 at 11:25 PM, Geoff Canyon gcan...@gmail.com wrote: The advantages derive from the fact that LiveCode isn't doing the actual copying with revCopyFile -- the Finder is. For completeness, the same advantage applies to using a shell command. You don't get a progress dialog though. Okay, I just did a quick one-off test with interface sounds off. For thirty files that were each about 70kb, using a shell command was about 3x faster than using revCopyFile. That's without taking advantage of the ability to move and rename in one step with a shell command. If that's what you're doing, the advantage would be even greater. On Wed, Mar 21, 2012 at 3:04 PM, Pete p...@mollysrevenge.com wrote: Thanks all for the input. Sounds like Stephen's approach is the only way to get rid of it. Seems like that setting will apply to other sounds as well, but I'm OK with that. As far as using AppleScript, I'm using revCopyFile because the dictionary claims there are certain advantages to using it over put URL or any other method, amongst which is that it does not require reading the file into memory, and since some of these files could be pretty large, that's significant. On a Mac, it also displays a progress bar which I don;t think would be possible if I used put URL. Pete On Wed, Mar 21, 2012 at 11:35 AM, Geoff Canyon gcan...@gmail.com wrote: I went straight to the shell command, so I don't know for sure, but this sounds reasonable. There's also the overhead of spinning up AppleScript in the first place. If Apple is doing that badly, that might also cause problems I suppose. On Wed, Mar 21, 2012 at 1:24 PM, stephen barncard stephenrevoluti...@barncard.com wrote: That was probably a big reason why multiple file transfers would take more time - loading and unloading the sound - and perhaps the reason why it failed after memory was exceeded. ___ 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 -- Pete Molly's Revenge http://www.mollysrevenge.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 -- Pete Molly's Revenge http://www.mollysrevenge.com ___ use-liv ___ 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 -- Pete Molly's Revenge http://www.mollysrevenge.com ___
Re: revCopyFile
On 3/22/12 7:25 PM, Pete wrote: Hi Maarten, That's a nice solution. Fast and doing it in chunks allows me to show a progress bar. I think I'll settle on that method. Is there a way to get the size of a file in LC? With that, I could decide if it's even worth displaying a progress bar. The reason RR chose AppleScript is because it retains the metadata in a file, which a straight binary copy doesn't do. Apple is veering away from metadata though, so it may not be as important as it used to be. -- 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: revCopyFile
Hi Jacque, Yes, I saw that in the dictionary. I don't think there's any metadata in the files I will be copying (straight .txt files) but I'll have to check that before going down this path. I found the files function in the dictionary and it includes the file size in one of it's formats but it lists all the files in the default folder, not an individual file. I guess it won;t take too long to get that and use filter to narrow it down to the source file for the copy. Pete On Thu, Mar 22, 2012 at 6:55 PM, J. Landman Gay jac...@hyperactivesw.comwrote: On 3/22/12 7:25 PM, Pete wrote: Hi Maarten, That's a nice solution. Fast and doing it in chunks allows me to show a progress bar. I think I'll settle on that method. Is there a way to get the size of a file in LC? With that, I could decide if it's even worth displaying a progress bar. The reason RR chose AppleScript is because it retains the metadata in a file, which a straight binary copy doesn't do. Apple is veering away from metadata though, so it may not be as important as it used to be. -- 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-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode -- Pete Molly's Revenge http://www.mollysrevenge.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: accessing colorized script
Peter- Thursday, March 22, 2012, 6:48:15 PM, you wrote: Works like a charm! Fantastic!!! I am in awe!!! How did you discover this? Can't claim much ingenuity involved. Just poking about in the script editor stack and then just trial and (lots of) error. I was really hoping I could get it down to two lines, but that's been eluding me. -- -Mark Wieder mwie...@ahsoftware.net ___ 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: revCopyFile
On 3/22/12 9:26 PM, Pete wrote: Hi Jacque, Yes, I saw that in the dictionary. I don't think there's any metadata in the files I will be copying (straight .txt files) but I'll have to check that before going down this path. It should be fine with text files. -- 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
[irev] retrieve HTTP header info
Hello All, I want to identify mobile users who visit my webpage. By looking at the HTTP header info. By way of experimentation/curiosity, I figured out a PHP way of doing this. For example, here's the PHP-retrieved header data from my browser: - [Accept] = text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 [Accept-Charset] = ISO-8859-1,utf-8;q=0.7,*;q=0.3 [Accept-Encoding] = gzip,deflate,sdch [Accept-Language] = en-US,en;q=0.8 [Cache-Control] = max-age=259200 [Connection] = keep-alive [Cookie] = myCookie [Host] = kweto.com [User-Agent] = Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.83 Safari/535.11 [Via] = 1.1 unknown:8080 (squid/2.5.STABLE6) [X-Forwarded-For] = 1.1.1.1 ) - All the same, I'd much prefer to use an irev script. Is there already a way for an irev script to do this? Thank you. -- Nicolas Cueto ___ 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 an example of how to use try and catch
Jacque, Thanks. LC is an English muffin. So many nooks and crannies. Jim P.S. There really ought to be an illustration of the try-catch syntax in the dictionary. Message: 5 Date: Thu, 22 Mar 2012 12:32:01 -0500 From: J. Landman Gay jac...@hyperactivesw.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: Need an example of how to use try and catch Message-ID: 4f6b6211.3070...@hyperactivesw.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 3/22/12 12:21 PM, Jim Hurley wrote: Thanks Peter. The problem now is what do these bloody error numbers translate into. Is the a list somewhere? The list is explained in the errordialog entry in the dictionary. You can retrieve the list with the line of script the dictionary provides. There is also this utility for manual lookups: http://dl.dropbox.com/u/23431607/LiveCode%20Error%20Lookup.livecode.zip -- 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: Prevent openStack message
Bill- Thursday, March 22, 2012, 8:56:14 PM, you wrote: I'm trying to suppress openStack messages being sent. Lock messages doesn't prevent it. This script generates an openStack message. How can I prevent that for the duration of the answer command? on mouseUp lock messages answer Hello end mouseUp What I'm trying to do is know when a stack that isn't part of my plugin is opened? Sorry, I'm really confused by this. Do you not want the answer dialog to open? Do you want the answer dialog to be modal? Are you trying to prevent stacks from being opened or do you just want to know that a stack has opened? -- -Mark Wieder mwie...@ahsoftware.net ___ 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 an example of how to use try and catch
On 3/22/12 11:59 PM, Jim Hurley wrote: LC is an English muffin. So many nooks and crannies. I like that. :) P.S. There really ought to be an illustration of the try-catch syntax in the dictionary. I just looked, and I'm amazed there isn't. Myabe you could add a user note. -- 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: Need an example of how to use try and catch
Jacque- Thursday, March 22, 2012, 10:19:59 PM, you wrote: P.S. There really ought to be an illustration of the try-catch syntax in the dictionary. I just looked, and I'm amazed there isn't. Myabe you could add a user note. Yeah - the throw command should be mentioned there as well. -- -Mark Wieder mwie...@ahsoftware.net ___ 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: Prevent openStack message
Mark, I want the dialog box to open but not send an openStack message. I'm writing a plugin for the LiveCode IDE that triggers when a stack is opened. In the case of my own stack I don't want to trigger it when all I'm doing is opening up a dialog box in my own plugin. Bill Vlahos _ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Mar 22, 2012, at 10:16 PM, Mark Wieder wrote: Bill- Thursday, March 22, 2012, 8:56:14 PM, you wrote: I'm trying to suppress openStack messages being sent. Lock messages doesn't prevent it. This script generates an openStack message. How can I prevent that for the duration of the answer command? on mouseUp lock messages answer Hello end mouseUp What I'm trying to do is know when a stack that isn't part of my plugin is opened? Sorry, I'm really confused by this. Do you not want the answer dialog to open? Do you want the answer dialog to be modal? Are you trying to prevent stacks from being opened or do you just want to know that a stack has opened? -- -Mark Wieder mwie...@ahsoftware.net ___ 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: Prevent openStack message
Bill- Thursday, March 22, 2012, 10:36:03 PM, you wrote: I'm writing a plugin for the LiveCode IDE that triggers when a stack is opened. In the case of my own stack I don't want to trigger it when all I'm doing is opening up a dialog box in my own plugin. Hmmm... can you catch openStack in a frontscript and check for the target there? -- -Mark Wieder mwie...@ahsoftware.net ___ 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