Re: revCopyFile

2012-03-21 Thread Geoff Canyon
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 th

[irev] passing a parameter

2012-03-21 Thread Nicolas Cueto
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 h

Re: Setting script in object not working...

2012-03-21 Thread Glen Bojsza
Well it turns out that Jacque is correct it was the script limits... I have resolved the first half of my problem as Mike was also correct on the use of "target" for the group. So, I am over the first hurdle with everything working the second hurdle on how to handle a single new image that is not

Re: Setting script in object not working...

2012-03-21 Thread Mike Bonner
With the mouseup handler at the grouplevel, you can look at 'the target' to determine which image has been clicked. >> The question is how to determine the image below the mouse when the user does click? On Wed, Mar 21, 2012 at 6:48 PM, Glen Bojsza wrote: > I tried a variation of that but for

RE: Setting script in object not working...

2012-03-21 Thread Ralph DiMola
I create option buttons on the fly for the Android menu button and iOS menus from a soft menu button. I have no problem putting a script in them. I do ==>set the script of bname to ("on mouseup" & cr & tab & "ProcessMenu" && quote & (item 2 of line I of MenuList) & quote & cr & "end mouseup") This

Re: Setting script in object not working...

2012-03-21 Thread J. Landman Gay
On 3/21/12 7:02 PM, Glen Bojsza wrote: when I try to set the script of the image with the following text in the field it does nothing (does not set the script of the image at all??) on mouseUp lock screen if exists(img tempPlot) then delete img tempPlot copy me paste set the nam

Re: Text formatting for a slider

2012-03-21 Thread Mark Wieder
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

Re: Setting script in object not working...

2012-03-21 Thread Glen Bojsza
I tried a variation of that but for some reason the images aren't taking the script consistently? It's like the images sometimes work when they do get a script and other times it takes several clicks before the script is executed? I was thinking if there was a way to determine if the user clicks

Re: Setting script in object not working...

2012-03-21 Thread Mike Bonner
Might set up a hidden image object with the script already there and just clone or copy it. That way you don't have to worry about whether its a scriptlimits issue if nothing else. On Wed, Mar 21, 2012 at 5:12 PM, Alex Tweedly wrote: > I'd try adding your 'start' and 'test' buttons to the real s

Re: Setting script in object not working...

2012-03-21 Thread Glen Bojsza
Further testing points to my main project stack has the problem... I rebuilt a smaller stack that creates an image, and derives it's script in the same fashion as my main stack and it works without any issues. It's going to be a long night... thanks for the ideas and help but I have something that

Re: Setting script in object not working...

2012-03-21 Thread Glen Bojsza
Here is where it gets interesting... I created a couple of fields and test buttons one field I add what I want as a script and the button beside it sets the script of the image (just doing one for now) the other button reads what the script is from the image into the field beside it ; also the f

Re: Setting script in object not working...

2012-03-21 Thread Alex Tweedly
I'd try adding your 'start' and 'test' buttons to the real stack, and see if they work there. If they do, add an image 'test1' and have the 'start' button set its script as well. If that works, try doing that *after* you have created all the other images (in case its an issue with total number o

Re: Setting script in object not working...

2012-03-21 Thread Pete
Hi Glen, I guess I'm referring to storing the script of the image, not the image itself. I'm wondering if setting the script of an object invokes a save, same for the tooltip, because you can't save data in a currently executing program. One thing for sure is that the scripts you set would not be

Re: Text formatting for a slider

2012-03-21 Thread stephen barncard
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. On 20 March 2012 15:03, stephen barncard wrote: > I made an attempt at 'fixing' Smart properties a while back, but found > it's not as simple

Re: Setting script in object not working...

2012-03-21 Thread Glen Bojsza
Hi Pete, I am not trying to save the new images in the standalone but only show them. If the user wants to save the images they are exported as png's. But I am now certain that there is something amiss... I can set the tooltip for the images and it works fine in both ide and the application. I h

Re: Setting script in object not working...

2012-03-21 Thread Pete
Is this another manifestation of not being able to save anything in a stack in a standalone program? Pete On Wed, Mar 21, 2012 at 3:01 PM, Glen Bojsza wrote: > Hello, > > 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 c

Re: Setting script in object not working...

2012-03-21 Thread Glen Bojsza
Thanks Alex, I will try the behavior path... The funny thing is I swear that this was working in earlier versions. I even created a new simple stack with two buttons and a field. the stack has a customproperty call mymessage mymessage is on mouseUp put "hello" into fld tOut end mouseUp button

Re: Setting script in object not working...

2012-03-21 Thread Alex Tweedly
Sounds like you're running into something to do with scriptlimits (though I don't see why when you have a very simple short script). It's not clear from your description whether the script you want to set is known ahead of time and simply stored in custom property, or whether it is genuinely d

Setting script in object not working...

2012-03-21 Thread Glen Bojsza
Hello, 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. In the ide the script works when you click an image and when you inspect the image's script in the script editor it is there. But when I take the stack

Re: Text formatting for a slider

2012-03-21 Thread Richmond
On 03/21/2012 10:43 PM, Jim Hurley wrote: Richmond, Here is the definition of Properties in the dictionary: Summary: Specifies SOME of an object's properties and their current values. What? There's more? Shock, Horror! Emphasis mine. Jim Message: 27 Date: Wed, 21 Mar 2012 22:24:10 +0200

Re: UrlEncode oddness

2012-03-21 Thread J. Landman Gay
On 3/21/12 3:39 PM, Mark Schonewille wrote: Jacque, put urlencode(unidecode(uniencode("élan"),"UTF8")) 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 Lan

Re: UrlEncode oddness

2012-03-21 Thread Bob Sneidar
I am going to guess and say that the second one is also uniencoded. I think that because it appears that there are 2 characters being URLEncoded there. Bob On Mar 21, 2012, at 1:28 PM, J. Landman Gay wrote: > If I urlencode a word with diacritcals, like "élan", I get this: > > %8Elan > > Bu

Re: Text formatting for a slider

2012-03-21 Thread Jim Hurley
Richmond, Here is the definition of Properties in the dictionary: Summary: Specifies SOME of an object's properties and their current values. Emphasis mine. Jim > > Message: 27 > Date: Wed, 21 Mar 2012 22:24:10 +0200 > From: Richmond > To: How to use LiveCode > Subject: Re: Text formattin

Re: Speaking of SmartAss..

2012-03-21 Thread Bob Sneidar
I LOVE THAT! On Mar 21, 2012, at 1:15 PM, Pete wrote: > I just came across this quote. It was new to me, maybe not to others. > > Programming today is a race between software engineers striving to build > bigger and better idiot-proof programs, and the Universe trying to produce > bigger and be

Re: UrlEncode oddness

2012-03-21 Thread Mark Schonewille
Jacque, put urlencode(unidecode(uniencode("élan"),"UTF8")) -- 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 her

Re: Highest Image File ID

2012-03-21 Thread Bob Sneidar
Okay I updated the function to return an array to account for properties that are in array form. It returns a numbered array with two keys, the long ID of the object, and the property of each object you passed as an argument. I had to remove the sorting though because I am not about to sort an a

UrlEncode oddness

2012-03-21 Thread J. Landman Gay
If I urlencode a word with diacritcals, like "élan", I get this: %8Elan But if I name a file with that and get a Dropbox encoded URL, I get this: %C3%A9lan I need the Dropbox version. What's the difference, and how come it happens, and how do I change LiveCode's output? -- Jacqueline Landma

Re: Speaking of SmartAss..

2012-03-21 Thread Richmond
On 03/21/2012 10:15 PM, Pete wrote: I just came across this quote. It was new to me, maybe not to others. Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Uni

Re: Text formatting for a slider

2012-03-21 Thread Richmond
On 03/21/2012 10:12 PM, Jim Hurley wrote: Stephen, What has me puzzled, maybe you have the answer, is a function to return ALL the properties of a given object. Here's what I did to get ALL the props of a slider: on mouseUp put the properties of control "ZLIDER" into propARRAY combin

Speaking of SmartAss..

2012-03-21 Thread Pete
I just came across this quote. It was new to me, maybe not to others. Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rich Cook -- Pe

Re: Text formatting for a slider

2012-03-21 Thread Jim Hurley
Stephen, What has me puzzled, maybe you have the answer, is a function to return ALL the properties of a given object. As many have said, the "properties" function is incomplete. For one thing it omits the foregroundcolor of the scrollbar. (I wonder whether those properties in the inspector pa

Re: Highest Image File ID

2012-03-21 Thread Bob Sneidar
Well an object that appears on multiple cards will of course show up multiple times when you go from card to card. That is why my function ignores duplicates. But it is all probably quite moot anyway, at least for ID's because the vast majority of people don't care about them. So I wrote my func

Re: revCopyFile

2012-03-21 Thread Pete
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

Re: Highest Image File ID

2012-03-21 Thread Richmond
On 03/21/2012 08:49 PM, J. Landman Gay wrote: On 3/21/12 12:52 PM, Richmond wrote: On 03/21/2012 07:45 PM, J. Landman Gay wrote: On 3/21/12 12:14 PM, Richmond wrote: I just did this: put the ID of the last control and it worked a charm. I think that will only give the highest ID on that ca

Re: accessing colorized script

2012-03-21 Thread Peter M. Brigham, MD
On Mar 20, 2012, at 4:51 PM, Mark Wieder wrote: > Jacque- > > Tuesday, March 20, 2012, 1:44:08 PM, you wrote: > >> On 3/20/12 3:30 PM, Mark Wieder wrote: >>> Jacque- >>> >>> Tuesday, March 20, 2012, 1:20:51 PM, you wrote: >>> > _internal script colorize line 1 to (the number of lines of fi

Re: Highest Image File ID

2012-03-21 Thread J. Landman Gay
On 3/21/12 12:52 PM, Richmond wrote: On 03/21/2012 07:45 PM, J. Landman Gay wrote: On 3/21/12 12:14 PM, Richmond wrote: I just did this: put the ID of the last control and it worked a charm. I think that will only give the highest ID on that card. Perhaps if one adds this: put the ID of

Re: revCopyFile

2012-03-21 Thread Geoff Canyon
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 < stephenre

Re: revCopyFile

2012-03-21 Thread Geoff Canyon
The sound is coming from the Finder, not LC. revCopyFile works via AppleScript, and the Finder (oddly) treats moving a file by script the same as moving a file by the user interface. On Wed, Mar 21, 2012 at 1:13 PM, Richmond wrote: > Presumably, buried somewhere amongst the Livecode stacks there

Re: revCopyFile

2012-03-21 Thread Richmond
On 03/21/2012 08:24 PM, stephen barncard wrote: no, he's speaking about the cute (and or annoying) little UI sounds They have begun appearing in the more popular Linux distros as well. that the Mac has had for some time, and one has to "opt in" to turn it off. It's a soft clunk sound that o

Re: revCopyFile

2012-03-21 Thread stephen barncard
no, he's speaking about the cute (and or annoying) little UI sounds that the Mac has had for some time, and one has to "opt in" to turn it off. It's a soft clunk sound that occurs after ever file transfer to indicate 'transfer complete'. That was probably a big reason why multiple file transfers w

[OT] WINE 1.5.0

2012-03-21 Thread Richmond
For those of you who go in for this sort of thing: Crack open a Terminal [AND, that reminds me of those snide remarks somebody made about the command-line being past-it on this Use-List a while back..]: and type in these commands wget http://prdownloads.sourceforge.net/wine/wine-1.5.0

Re: revCopyFile

2012-03-21 Thread Richmond
Presumably, buried somewhere amongst the Livecode stacks there is an AudioClip. I suppose one could trawl through them with the application browser and remove it... ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this ur

Re: revCopyFile

2012-03-21 Thread Mark Wieder
Bob- Wednesday, March 21, 2012, 10:49:00 AM, you wrote: > I was gonna say "Turn off your speakers?" But I think I used up > all my Smart A$$ quota for the month! ;-) Uh oh. There's a quota? I am so gonna be in trouble now... -- -Mark Wieder mwie...@ahsoftware.net ___

Re: Highest Image File ID

2012-03-21 Thread Richmond
On 03/21/2012 07:45 PM, J. Landman Gay wrote: On 3/21/12 12:14 PM, Richmond wrote: I just did this: put the ID of the last control and it worked a charm. I think that will only give the highest ID on that card. Perhaps if one adds this: put the ID of the last control in stack "DAFTY" th

Re: revCopyFile

2012-03-21 Thread Bob Sneidar
I was gonna say "Turn off your speakers?" But I think I used up all my Smart A$$ quota for the month! ;-) Bob On Mar 21, 2012, at 10:40 AM, stephen barncard wrote: > system preferences (apple menu) -->sound-->sound effects tab---> > > deselect "Play User Interface Sound Effects" checkbox > >

Re: Highest Image File ID

2012-03-21 Thread Bob Sneidar
Thanks Richmond and Pete. What I want it for is to set the ID of the image I just created to theHighestID +1. Obviously, if I just created an image, those functions will return that image ID. As promised, I have written a function that I think is fairly bullet proof. It checks for an invalid o

Re: Highest Image File ID

2012-03-21 Thread J. Landman Gay
On 3/21/12 12:14 PM, Richmond wrote: I just did this: put the ID of the last control and it worked a charm. I think that will only give the highest ID on that card. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.

Re: revCopyFile

2012-03-21 Thread Geoff Canyon
Funny, I went through this just a week ago. I found four reasons to abandon revCopyFile for a shell command: 1. The sound. 2. It's slow. 3. For large numbers of commands it died on me. 4. It can't change the name of the file as part of the copy process. I was trying to turn 1,700 files in one loc

Re: revCopyFile

2012-03-21 Thread stephen barncard
system preferences (apple menu) -->sound-->sound effects tab---> deselect "Play User Interface Sound Effects" checkbox On 21 March 2012 10:34, Pete wrote: > Anyone know of a way to get rid of that annoying sound when revCopyFile has > finished copying a file? This is on a Mac, don't know if it

revCopyFile

2012-03-21 Thread Pete
Anyone know of a way to get rid of that annoying sound when revCopyFile has finished copying a file? This is on a Mac, don't know if it happens in Windows. -- Pete Molly's Revenge ___ use-livecode mailing list use-liveco

Re: Failing to understand the oddities of the "line" chunk

2012-03-21 Thread Peter M. Brigham, MD
On Mar 20, 2012, at 11:52 AM, Bob Sneidar wrote: > So let it be done! But let's go with consistency in ALL things. Tough to do, as long as we're using English -- though you might have thought through this already (cough, cough):-) -- Peter Peter M. Brigham pmb...@gmail.com http://home.comc

Revlet Basics

2012-03-21 Thread Ray Horsley
I experimented with standalones in browser a while back and never got too far with it. I'm taking another look now but can't get anything other than the "Test Page" text to show up. I've completely deleted and reinstalled the LiveCodePlayer but still no buttons in the standalone revlet show up

Re: Highest Image File ID

2012-03-21 Thread Richmond
I just did this: put the ID of the last control and it worked a charm. ___ 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/mailm

Re: Highest Image File ID

2012-03-21 Thread Bob Sneidar
Yup. And I want to reuse all those wasted ID's that the Datagrid left behind. I am writing a function using repeat loops and if I lock screen and messages it is quite fast. I Will post it when I am done for anyone who might find it useful. Bob On Mar 21, 2012, at 9:49 AM, J. Landman Gay wrot

Re: Highest Image File ID

2012-03-21 Thread Pete
Maybe "get the ID of the last image of stack "xyz"? Not sure if that would work or not, I seem to remember having problems with using the "last" keyword in the past but I think that was specifically to do with groups. Pete On Wed, Mar 21, 2012 at 9:49 AM, J. Landman Gay wrote: > On 3/21/12 11:25

Re: MySQL standalone issues

2012-03-21 Thread Pete
I think I vaguely remember running into that once, worth a try. Pete On Tue, Mar 20, 2012 at 8:13 PM, Ken Ray wrote: > > On Mar 20, 2012, at 6:32 PM, Sieg Lindstrom wrote: > > > Next I copied the button containing the working script to my existing > app and saved that as a standalone. This time

Re: accessing colorized script

2012-03-21 Thread Pete
The new 5.5 release has lots of stuff related to field formatting. Maybe some of that might help, especially if RunRev used the new features to colorise scripts. Pete On Wed, Mar 21, 2012 at 9:22 AM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > Hi Peter, > > Perhaps you could us

Re: Highest Image File ID

2012-03-21 Thread J. Landman Gay
On 3/21/12 11:25 AM, Bob Sneidar wrote: Can anyone think of a quick way (other than a repeat loop) to determine the highest ID of all the image files in a stack? The ID of the stack is the either the last-used ID or the next available one, I forget which. It doesn't discriminate between the ki

Highest Image File ID

2012-03-21 Thread Bob Sneidar
Can anyone think of a quick way (other than a repeat loop) to determine the highest ID of all the image files in a stack? Since I have a datagrid, the assigned ID is way up there and I want to keep my image files in sequence. It would be great if there were a command to get ALL the objects of a

Re: accessing colorized script

2012-03-21 Thread Mark Schonewille
Hi Peter, Perhaps you could use MetaCard's script colorising routines. http://qery.us/1w9 -- 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 Ma

Re: MobGUI orientationchanged issue

2012-03-21 Thread Mike Kerner
I ran into this as well, and I have also been trying to work around it. I've also found some script bugs in MG that I have forwarded to John. I'm hoping he has time to work on it, there hasn't been a new release in a while. -- On the first day, God created the heavens and the Earth On the secon

MobGUI orientationchanged issue

2012-03-21 Thread Richard Miller
Can't find a solution for this yet. MobGUI is certainly a useful product, but badly needs more documentation to work through its many nuances. Start with a 2-card stack. The first card is designed for portrait-only display. This is specified in MobGUI. Changing to landscape creates no changes

Re: Video Capture

2012-03-21 Thread Mark Schonewille
Hi Martin, I have been struggling with this problem for years now, but I don't think runrev cares about it. Rather than fixing the bug, they decided to start from scratch --and yet they don't, since the new parts are added to the old video external. Anyway, I don't expect a solution within the

RE: Error Codes

2012-03-21 Thread Ralph DiMola
Mark, Where in the docs did I miss this little ditty also? Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Mark Wieder Sent: Wednes

Video Capture

2012-03-21 Thread Martin Meili
Hi, the sample stack Video Capture from the Ressource Centre works fine. But, as soon as I enable "Float above everything" in the basic properties pannel, the image gets lost. I want to have a stack with video capture capability floating above everything. Is this possible at all? Cheers Ma

Re: accessing colorized script

2012-03-21 Thread Peter M. Brigham, MD
On Mar 20, 2012, at 11:46 AM, J. Landman Gay wrote: > On 3/20/12 9:30 AM, Peter M. Brigham, MD wrote: >> Anyone know how I can get the colorized htmltext of a script from the >> script editor without opening the editor and copying the text? > > I don't think you can any more, the colorization is

Re: LiveCode 5.5

2012-03-21 Thread Benjamin Beaumont
Hi Terry, Thanks for your post. I can confirm that iOS 5.1 support will be available in our 5.5.1 release. We expect the first preview of this to be out very soon. This will be a free release for all 5.5 customers. Warm regards, Ben On 20 March 2012 23:24, TERRY HASS wrote: > Hello List, > >