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 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  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  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 
> ___
> 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


[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
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


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 in a group.
___
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...

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 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 over an
> image that is in a group and possible set a script in the group. This would
> eliminate scripts limitations and any other possible issues.
>
> I am not sure how to approach this... the group scrolls when there are more
> images that can be seen on the screen but I don't think a mouseUp script
> for the group is trapped on the scroll bar so that should be fine.
>
> The question is how to determine the image below the mouse when the user
> does click?
>
>
>
> On Wed, Mar 21, 2012 at 6:23 PM, Mike Bonner  wrote:
>
> > 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.
> >
> >
> ___
> 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...

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 3 line script works for mobile standalone and in the IDE. Although
looking at it again, I don't know what that tab was for. Shouldn't hurt. Is
this an image control only problem?

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 Glen Bojsza
Sent: Wednesday, March 21, 2012 8:48 PM
To: How to use LiveCode
Subject: Re: Setting script in object not working...

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 over an
image that is in a group and possible set a script in the group. This would
eliminate scripts limitations and any other possible issues.

I am not sure how to approach this... the group scrolls when there are more
images that can be seen on the screen but I don't think a mouseUp script
for the group is trapped on the scroll bar so that should be fine.

The question is how to determine the image below the mouse when the user
does click?



On Wed, Mar 21, 2012 at 6:23 PM, Mike Bonner  wrote:

> 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.
>
>
___
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...

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 name of the last img to "tempPlot"
set the width of img "tempPlot" to 727
set the height of img "tempPlot" to 255
set the loc of img "tempPlot" to the loc of btn locStripChart
set the lockloc of img "tempPlot" to true
set the script of of img "tempPlot" to the plotZoom of stack "NM V1"
set the tooltip of of img "tempPlot" to the tempPlotTooltip of stack "NM V1"
unlock screen
end mouseUp


Sure looks like script limits to me. The above counts as 12 lines of 
script. There's a limit of 10 lines.




When I remove the
lock screen
if exists(img tempPlot) then delete img tempPlot
unlock screen

from the field leaving the following in the field it then sets the image
script AND when I click the image it generates the image expected?


After removing 3 lines there are 9 lines remaining, which is within the 
limit.


The "on" and "end" lines don't count.


--
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: 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 "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: 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 over an
image that is in a group and possible set a script in the group. This would
eliminate scripts limitations and any other possible issues.

I am not sure how to approach this... the group scrolls when there are more
images that can be seen on the screen but I don't think a mouseUp script
for the group is trapped on the scroll bar so that should be fine.

The question is how to determine the image below the mouse when the user
does click?



On Wed, Mar 21, 2012 at 6:23 PM, Mike Bonner  wrote:

> 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.
>
>
___
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...

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 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 of script lines set).
>
> No other ideas yet 
> -- Alex.
>
>
> On 21/03/2012 22:52, Glen Bojsza wrote:
>
>> 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 have also tried adding a couple of test buttons, one that cycles through
>> the images of the group and sets their script and one that reads the list
>> of image ids that I store and then set the scripts with direct
>> references... both fail in the application but work in the ide.
>>
>> This looks like it will come down to massive trial and error to solve the
>> problem... so any ideas on tackling the issue?
>>
>> By the way the behavior idea failed.
>>
>> thanks,
>>
>> Glen
>>
>> On Wed, Mar 21, 2012 at 4:27 PM, Pete  wrote:
>>
>>  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

>>> 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 and make it into an application it looks as if
 the images contain no script because when an image is clicked nothing
 happens.

 I have tried making the script very simple ie

 on mouseUp
 answer "Success" with "OK"
 end mouseUp

 Again this works in the ide but not in the final application?

 I have tried several other methods such as adding a button that I can
 manually test in the application to copy a script to an image but this
 fails?

 Has anybody experienced this before or have any suggestions?

 thanks,

 Glen
 __**_
 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
>>> >
>>> __**_
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/**mailman/listinfo/use-livecode
>>>
>>>  __**_
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/**mailman/listinfo/use-livecode
>>
>>
>
> __**_
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: 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 is specific to this stack and I don't want to bother anyone
since it won't be reproducible else where.



On Wed, Mar 21, 2012 at 6:02 PM, Glen Bojsza  wrote:

> 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 field I can use to output any mouseUp info from the
> image.
>
> 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 name of the last img to "tempPlot"
>set the width of img "tempPlot" to 727
>set the height of img "tempPlot" to 255
>set the loc of img "tempPlot" to the loc of btn locStripChart
>set the lockloc of img "tempPlot" to true
> set the script of of img "tempPlot" to the plotZoom of stack "NM V1"
> set the tooltip of of img "tempPlot" to the tempPlotTooltip of stack "NM
> V1"
>unlock screen
> end mouseUp
>
> When I remove the
> lock screen
> if exists(img tempPlot) then delete img tempPlot
> unlock screen
>
> from the field leaving the following in the field it then sets the image
> script AND when I click the image it generates the image expected? But the
> new image's script is missing (which is probably the same problem we are
> trying to solve currently)
>
> on mouseUP
>copy me
>paste
>set the name of the last img to "tempPlot"
>set the width of img "tempPlot" to 727
>set the height of img "tempPlot" to 255
>set the loc of img "tempPlot" to the loc of btn locStripChart
>set the lockloc of img "tempPlot" to true
> set the script of of img "tempPlot" to the plotZoom of stack "NM V1"
> set the tooltip of of img "tempPlot" to the tempPlotTooltip of stack "NM
> V1"
> end mouseUP
>
> Remember that all of this works in the ide without any problems??
>
___
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...

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 field I can use to output any mouseUp info from the
image.

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 name of the last img to "tempPlot"
   set the width of img "tempPlot" to 727
   set the height of img "tempPlot" to 255
   set the loc of img "tempPlot" to the loc of btn locStripChart
   set the lockloc of img "tempPlot" to true
set the script of of img "tempPlot" to the plotZoom of stack "NM V1"
set the tooltip of of img "tempPlot" to the tempPlotTooltip of stack "NM V1"
   unlock screen
end mouseUp

When I remove the
lock screen
if exists(img tempPlot) then delete img tempPlot
unlock screen

from the field leaving the following in the field it then sets the image
script AND when I click the image it generates the image expected? But the
new image's script is missing (which is probably the same problem we are
trying to solve currently)

on mouseUP
   copy me
   paste
   set the name of the last img to "tempPlot"
   set the width of img "tempPlot" to 727
   set the height of img "tempPlot" to 255
   set the loc of img "tempPlot" to the loc of btn locStripChart
   set the lockloc of img "tempPlot" to true
set the script of of img "tempPlot" to the plotZoom of stack "NM V1"
set the tooltip of of img "tempPlot" to the tempPlotTooltip of stack "NM V1"
end mouseUP

Remember that all of this works in the ide without any problems??
___
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...

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 of script lines set).


No other ideas yet 
-- Alex.

On 21/03/2012 22:52, Glen Bojsza wrote:

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 have also tried adding a couple of test buttons, one that cycles through
the images of the group and sets their script and one that reads the list
of image ids that I store and then set the scripts with direct
references... both fail in the application but work in the ide.

This looks like it will come down to massive trial and error to solve the
problem... so any ideas on tackling the issue?

By the way the behavior idea failed.

thanks,

Glen

On Wed, Mar 21, 2012 at 4:27 PM, Pete  wrote:


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

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 and make it into an application it looks as if
the images contain no script because when an image is clicked nothing
happens.

I have tried making the script very simple ie

on mouseUp
answer "Success" with "OK"
end mouseUp

Again this works in the ide but not in the final application?

I have tried several other methods such as adding a button that I can
manually test in the application to copy a script to an image but this
fails?

Has anybody experienced this before or have any suggestions?

thanks,

Glen
___
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
___
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: 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 there
in any following executions of the standalone.

All this is predicated on the standalone being one self-contained stack
file and not a splash stack that loads the real application stack at run
time.

Somewhat stabbing in the dark though

Pete

On Wed, Mar 21, 2012 at 3:52 PM, Glen Bojsza  wrote:

> 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 have also tried adding a couple of test buttons, one that cycles through
> the images of the group and sets their script and one that reads the list
> of image ids that I store and then set the scripts with direct
> references... both fail in the application but work in the ide.
>
> This looks like it will come down to massive trial and error to solve the
> problem... so any ideas on tackling the issue?
>
> By the way the behavior idea failed.
>
> thanks,
>
> Glen
>
> On Wed, Mar 21, 2012 at 4:27 PM, Pete  wrote:
>
> > 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
> > 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 and make it into an application it looks as
> if
> > > the images contain no script because when an image is clicked nothing
> > > happens.
> > >
> > > I have tried making the script very simple ie
> > >
> > > on mouseUp
> > > answer "Success" with "OK"
> > > end mouseUp
> > >
> > > Again this works in the ide but not in the final application?
> > >
> > > I have tried several other methods such as adding a button that I can
> > > manually test in the application to copy a script to an image but this
> > > fails?
> > >
> > > Has anybody experienced this before or have any suggestions?
> > >
> > > thanks,
> > >
> > > Glen
> > > ___
> > > 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 
> > ___
> > 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 
___
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

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 as it might seem to be. Three objects created for each
> property in real time made to scroll together and some other trickery going
> on. It's a project I do want to tackle one of these days.
>
>
> On 19 March 2012 15:34, stephen barncard 
> wrote:
>
>> JIm, I'm a fan of Mr. Rinaldi as well - he supplied the first serial
>> xcmds for hypercard back in 89 -
>> however I can't get Smartproperties to work these days - have you used it
>> lately?
>>
>> sqb
>>
>>
>> On 19 March 2012 14:57, Jim Hurley  wrote:
>>
>>> Pete,
>>>
>>> Yes, my feeling exactly. It looks like there was a conscious effort to
>>> omit the foregroundColor  for the slider (and scollbar as well). I was
>>> worried that it was to be deprecated.
>>>
>>> (I wasn't concerned about ALL the properties being in the Inspector. It
>>> is odd, however, that there is a place for the foreGroundColor property, an
>>> icon but no defining text, but no way to access it. I suspect RR got
>>> distracted while implementing the slider Inspector.)
>>>
>>> You might want to check out Richard's 4wProps (under the
>>> Development/Plugins menu). Easy access to all the properties.
>>>
>>> Occasionally I have found (legendary) Renaldi's SmartProperties
>>> invalueable. It allows one to compare side by side the properties to two
>>> objects. It is valuable in finding out why two, apparently identical,
>>> controls behave or look different.
>>>
>>> Jim Hurley
>>>
>>> > Message: 24
>>> > Date: Mon, 19 Mar 2012 11:42:46 -0700
>>> > From: Pete 
>>> > To: How to use LiveCode 
>>> > Subject: Re: Text formatting for a slider
>>> > Message-ID:
>>> >   >> ybd...@mail.gmail.com>
>>> > Content-Type: text/plain; charset=ISO-8859-1
>>> >
>>> > Yeah, but that displays all possible properties of any object.  The
>>> > "properties" property of an object gets you an array of properties for
>>> a
>>> > specific object.  Still a long list mind you, and not a complete list
>>> > either according to the dictionary.
>>> >
>>> > I think you're probably right that it would make the inspector windows
>>> very
>>> > unwieldy to include all properties.  The problem is that by leaving
>>> some of
>>> > them out, arbitrarily, it gives the impression that they aren't
>>> available,
>>> > especially to new users.  I remember when I first started using LC and
>>> > wanted to set the behavior of an option menu button - there's no
>>> inspector
>>> > window behavior field so I just assumed it wasn't possible for some
>>> reason
>>> > and went down a different, much more complicated path.
>>> >
>>> > Seems like it would have been trivial to include one more option in the
>>> > inspector option menu for "All Properties" or something similar.  I
>>> ended
>>> > up writing my own plugin to show all the properties of a selected
>>> object
>>> > and allow me to change any of them.
>>> >
>>> > Pete
>>> >
>>> > On Mon, Mar 19, 2012 at 11:09 AM, Richmond <
>>> richmondmathew...@gmail.com>wrote:
>>> >
>>> >> On 03/19/2012 06:05 PM, Jim Hurley wrote:
>>> >>
>>> >>> I have a slider in which the showValue is set to true.
>>> >>>
>>> >>> Unfortunately, the card background is gray and the black slider
>>> value is
>>> >>> very difficult to read.
>>> >>>
>>> >>> The inspector for the slider does not display an option for the
>>> >>> foreground color. Why not?
>>> >>>
>>> >>> Using 4W Properties (thank you RIchard) the foreground color is
>>> listed as
>>> >>> an option (and can be changed there, or from the msg box.)
>>> >>>
>>> >>> Why this omission in the Inspector? (LC version 4 AND 5.)
>>> >>>
>>> >>
>>> >> Almost all object have a vast number of options that one can fiddle
>>> around
>>> >> with; the Props Inspector only
>>> >> displays a subset of them; why? I don't know, but I can hazard a
>>> guess:
>>> >>
>>> >> a Props Inspector that displayed ALL the props of each object might
>>> be so
>>> >> unwieldy as to be virtually unusable.
>>> >>
>>> >> "Just for fun" . . .
>>> >>
>>> >> Set up a new stack with a scrollingListField field called "PROPPS"
>>> >>
>>> >> and try this in the MessageBox:
>>> >>
>>> >> put the propertyNames into fld "PROPPS"
>>> >>
>>> >> and "blow your mind" . . .   :)
>>> >>
>>> >>
>>> >>>
>>> >>> 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<
>>> http://lists.runrev.com/mailman/listinfo/use-livecode>
>>> >>>
>>> >>
>>>
>>>
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.

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 have also tried adding a couple of test buttons, one that cycles through
the images of the group and sets their script and one that reads the list
of image ids that I store and then set the scripts with direct
references... both fail in the application but work in the ide.

This looks like it will come down to massive trial and error to solve the
problem... so any ideas on tackling the issue?

By the way the behavior idea failed.

thanks,

Glen

On Wed, Mar 21, 2012 at 4:27 PM, Pete  wrote:

> 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
> 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 and make it into an application it looks as if
> > the images contain no script because when an image is clicked nothing
> > happens.
> >
> > I have tried making the script very simple ie
> >
> > on mouseUp
> > answer "Success" with "OK"
> > end mouseUp
> >
> > Again this works in the ide but not in the final application?
> >
> > I have tried several other methods such as adding a button that I can
> > manually test in the application to copy a script to an image but this
> > fails?
> >
> > Has anybody experienced this before or have any suggestions?
> >
> > thanks,
> >
> > Glen
> > ___
> > 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 
> ___
> 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...

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 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 and make it into an application it looks as if
> the images contain no script because when an image is clicked nothing
> happens.
>
> I have tried making the script very simple ie
>
> on mouseUp
> answer "Success" with "OK"
> end mouseUp
>
> Again this works in the ide but not in the final application?
>
> I have tried several other methods such as adding a button that I can
> manually test in the application to copy a script to an image but this
> fails?
>
> Has anybody experienced this before or have any suggestions?
>
> thanks,
>
> Glen
> ___
> 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 
___
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...

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 "start" has the following script

on mouseUp
set the script of btn "test" to the mymessage of stack tmirror
end mouseUp

Pressing button "start" sets the script of button "test" with the
customproperty.

Pressing button "test" puts "hello" into fld tOut

It works for both ide and the application.

So some how my main project stack has something that changes when made into
an application... I confirmed this with adding a test button to output the
images' scripts... they were all empty?

It is hard to trouble shoot an app if it works in the ide.

The behavior path is a good idea as it might point to where the issue lies.

thanks,

Glen


On Wed, Mar 21, 2012 at 4:11 PM, Alex Tweedly  wrote:

> 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 dynamic. Would you be able to, rather than set the script of each
> image, simply set the behaviour of the image to some (pre-created) button
> with the appropriate script already in place?
>
> -- Alex.
>
>
> On 21/03/2012 22:01, 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 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 and make it into an application it looks as if
>> the images contain no script because when an image is clicked nothing
>> happens.
>>
>> I have tried making the script very simple ie
>>
>> on mouseUp
>> answer "Success" with "OK"
>> end mouseUp
>>
>> Again this works in the ide but not in the final application?
>>
>> I have tried several other methods such as adding a button that I can
>> manually test in the application to copy a script to an image but this
>> fails?
>>
>> Has anybody experienced this before or have any suggestions?
>>
>> thanks,
>>
>> Glen
>> __**_
>> 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: 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 dynamic. Would you be able to, rather than set the 
script of each image, simply set the behaviour of the image to some 
(pre-created) button with the appropriate script already in place?


-- Alex.

On 21/03/2012 22:01, 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 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 and make it into an application it looks as if
the images contain no script because when an image is clicked nothing
happens.

I have tried making the script very simple ie

on mouseUp
answer "Success" with "OK"
end mouseUp

Again this works in the ide but not in the final application?

I have tried several other methods such as adding a button that I can
manually test in the application to copy a script to an image but this
fails?

Has anybody experienced this before or have any suggestions?

thanks,

Glen
___
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


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 and make it into an application it looks as if
the images contain no script because when an image is clicked nothing
happens.

I have tried making the script very simple ie

on mouseUp
answer "Success" with "OK"
end mouseUp

Again this works in the ide but not in the final application?

I have tried several other methods such as adding a button that I can
manually test in the application to copy a script to an image but this
fails?

Has anybody experienced this before or have any suggestions?

thanks,

Glen
___
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

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
From: Richmond
To: How to use LiveCode
Subject: Re: Text formatting for a slider
Message-ID:<4f6a38ea.6040...@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

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
combine propARRAY by return and tab
put propARRAY into fld "PROPPS"
end mouseUp

I think the middle line is what throws most people "off".



*


___
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: 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 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

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
> 
> 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 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


___
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

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 formatting for a slider
> Message-ID: <4f6a38ea.6040...@gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> 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
>combine propARRAY by return and tab
>put propARRAY into fld "PROPPS"
> end mouseUp
> 
> I think the middle line is what throws most people "off".
> 
> 
> 
> *


___
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: 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 better idiots. So far, the Universe is winning.  - Rich Cook
> 
> -- 
> Pete
> Molly's Revenge 
> ___
> 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: 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 here http://qery.us/za

On 21 mrt 2012, at 21:28, J. Landman Gay wrote:

> 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 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: 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 array. So far as I 
know sorting does not work with arrays. There should be some kind of form of 
sort for arrays like: 

sort the keys of myArrayA by myArray[id] of each -- or maybe by element 2 of 
each

but of course there is not. At any rate sorting arrays is too much trouble, and 
I digress. 

Here's the updated function:

function objectList theType, theProp
if the last char of theType is "s" then put char 1 to -2 of theType into 
theType
if theSort is empty then put "ascending" into theSort

try
do "get the " & theProp & " of " & theType & " 1 of this card"
catch theError
if item 1 of the last line of theError is "166" then
return "Error: Invalid type"
else
return "Error: " & the last line of theError
end if
end try

put empty into theObjectList
put empty into theObjectListA
put 1 into theLineNum
put theType & "s" into thePluralType
put the name of this card into theStartCard
lock screen
lock messages

repeat with theCardNum = 1 to the number of cards of this stack
go card theCardNum

try
do "put the number of " & thePluralType & " of this card into 
theTypeCount"
repeat with theObjectNum = 1 to theTypeCount
do "put the long ID of " & theType && theObjectNum & " into 
theObjectID"
do "put the " & theProp & " of " & theType && theObjectNum & " 
into theValue"

if theValue is not in theObjectList then
put theObjectID into theObjectListA[theLineNum][LongID]
put theValue into theObjectListA[theLineNum][theProp]
put theValue into line 1 of theObjectList
add 1 to theLineNum
end if
end repeat
catch theError
breakpoint
end try
end repeat

go card theStartCard
return theObjectListA
end objectList

The results for a call like put objectList("images", "short name") into 
theArrayA returns a result (in printKeys() format) like this:

1
 short name: imgLogonsHi
 LongID: image id 10101 of card id 1002 of stack 
"/Users/bobsneidar/Documents/LiveCode Stacks/Conference Scheduler/CSL 
Main.livecode"
2
 short name: barpattern.png
 LongID: image id  of card id 1002 of stack 
"/Users/bobsneidar/Documents/LiveCode Stacks/Conference Scheduler/CSL 
Main.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


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 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: 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 Universe is winning.  - Rich Cook



Chalk one up for me . . .  :)

___
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

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
   combine propARRAY by return and tab
   put propARRAY into fld "PROPPS"
end mouseUp

I think the middle line is what throws most people "off".

___
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


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

-- 
Pete
Molly's Revenge 
___
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

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 palette for which there is an opening but no property are 
those among those missing from "put the properties of ...")

So I wonder where Rinaldi and Richard Gaskin got their lists from? This would 
be the first task in reconstruction Rinaldi's plug-in.

Jim 

> 
> Message: 7
> Date: Tue, 20 Mar 2012 15:03:04 -0700
> From: stephen barncard 
> To: How to use LiveCode 
> Subject: Re: Text formatting for a slider
> Message-ID:
>   
> Content-Type: text/plain; charset=UTF-8
> 
> I made an attempt at 'fixing' Smart properties a while back, but found it's
> not as simple as it might seem to be. Three objects created for each
> property in real time made to scroll together and some other trickery going
> on. It's a project I do want to tackle one of these days.
> 
> On 19 March 2012 15:34, stephen barncard 
> wrote:
> 
>> JIm, I'm a fan of Mr. Rinaldi as well - he supplied the first serial xcmds
>> for hypercard back in 89 -
>> however I can't get Smartproperties to work these days - have you used it
>> lately?
>> 
>> sqb


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: 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 function to 
return a list of any property you give it. 

In retrospect, I did not account for properties that are arrays, so I should 
actually build an array and return that. Back ina bit...

Bob


> Ah, I think I know why: It is quite possible to have a control with an ID of 
> 1004 on one card,
> and another with an ID of 1004 on the next card.
> 
> And, at that point, one can see that looking for the object with the highest 
> ID in the stack is pretty pointless.
> 
> ___
> 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: 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 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  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 
___
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: 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 card.



Perhaps if one adds this:

put the ID of the last control in stack "DAFTY"

that would do the trick?


Nope. Card-only.




Ah, I think I know why: It is quite possible to have a control with an 
ID of 1004 on one card,

and another with an ID of 1004 on the next card.

And, at that point, one can see that looking for the object with the 
highest ID in the stack is pretty pointless.


___
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

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 field 1) of 
> field 1
>>> 
 Ooooh!
>>> 
>>> You can also use chars instead of lines.
>>> 
> 
>> You mean like, "line 2 to -1 of" ...oh never mind.
> 
> Actually, (ignoring the other discussion...) the colorize routine for
> some reason won't take -1 as a parameter - you have to be explicit
> about it and say "(the number of lines of x") instead.

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?

-- 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: 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 the last control in stack "DAFTY"

that would do the trick?


Nope. Card-only.


--
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

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 <
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


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 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 url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 occurs after ever file transfer to indicate
'transfer complete'.

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. When the mac runs out of 'real' memory,
then the 'virtual memory' kicks in and you'll see the spinning OS gold ball.

On 21 March 2012 11:13, Richmond  wrote:


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 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: 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 would take more
time - loading and unloading the sound - and perhaps the reason why it
failed after memory was exceeded. When the mac runs out of 'real' memory,
then the 'virtual memory' kicks in and you'll see the spinning OS gold ball.

On 21 March 2012 11:13, Richmond  wrote:

> 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 url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode
>



-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


[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.tar.bz2
tar -xjvf wine-1.5.0.tar.bz2
cd wine-1.5.0

sudo apt-get install flex bison qt3-dev-tools qt4-qmake
./configure

DON'T be "suckered" when the Terminal tells you to do MAKE at the end of 
this!


cd tools
./wineinstall

There is a lot of tedious stuff that scrolls past in the Terminal . . . 
I wondered off and

had a cup of coffee.

Love, Richmond.
___
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

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 url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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


___
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: 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"

that would do the trick?

___
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

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
> 
> 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 happens in
>> Windows.
>> 
>> 
>> --
>> Pete
>> Molly's Revenge 
>> ___
>> 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
>> 
> 
> 
> 
> -- 
> 
> 
> 
> Stephen Barncard
> San Francisco Ca. USA
> 
> more about sqb  
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
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: 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 object type, as well as handling singular or plural forms 
of object types. It returns a sorted list of whatever property for whatever 
object type you tell it, excluding duplicates. I will probably enhance it to 
accept a scope, either card or stack. I'm wondering if this would be more 
useful to others if each line was a list of the long ID of the object followed 
by the property value? 

eg. put objectList("buttons", "short name", "descending") into theButtonNames

function objectList theType, theProp, theSort
if the last char of theType is "s" then put char 1 to -2 of theType into 
theType
if theSort is empty then put "ascending" into theSort

if theSort is not in "ascending.descending" then
return "Error: Invalid sort"
end if

try
do "get the " & theProp & " of " & theType & " 1 of this card"
catch theError
if item 1 of the last line of theError is "166" then
return "Error: Invalid type"
else
return "Error: " & the last line of theError
end if
end try

put empty into theObjectList
put 1 into theLineNum
put theType & "s" into thePluralType
put the name of this card into theStartCard
lock screen
lock messages

repeat with theCardNum = 1 to the number of cards of this stack
go card theCardNum

try
do "put the number of " & thePluralType & " of this card into 
theTypeCount"
repeat with theObjectNum = 1 to theTypeCount
do "put the " & theProp & " of " & theType && theObjectNum & " 
into theValue"

if theValue is not in theObjectList then
put theValue into line theLineNum of theObjectList
add 1 to theLineNum
end if
end repeat
catch theError
breakpoint
end try
end repeat

go card theStartCard

if line 1 of theObjectList is a number then
do "sort theObjectList numeric" && theSort
else
do "sort theObjectList" && theSort
end if

return theObjectList
end objectList


On Mar 21, 2012, at 10:07 AM, Pete wrote:

> 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 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 kinds of controls
>> though.
>> 
>> --
>> 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
>> 
>> 
> 
> 
> -- 
> Pete
> Molly's Revenge 
> ___
> 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: 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.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

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 location into about 22,000 files
with different names in another location. I found that with revCopyFile and
renaming, it took several hours to do about 7,000 files and then died,
taking the Finder with it.

By changing to the command below, I ran the entire job with no sounds and
no problems in about fifteen minutes.

*on* shellCopyFile tSource,tTarget

   *get* shell("cp" && quote & tSource & quote && quote & tTarget & quote)

   *if* it is not empty *then*

  *-- handle errors here*

   *end* *if*

*end* shellCopyFile

On Wed, Mar 21, 2012 at 12:34 PM, 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 happens in
> Windows.
>
___
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

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 happens in
> Windows.
>
>
> --
> Pete
> Molly's Revenge 
> ___
> 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
>



-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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-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: 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.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


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.  As I 
recall there was some editing of the html necessary to link files up.  Is that 
what's missing?

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: 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/mailman/listinfo/use-livecode


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 wrote:

> 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 kinds of controls though.
> 
> -- 
> 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


___
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: 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 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 kinds of controls
> though.
>
> --
> 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
>
>


-- 
Pete
Molly's Revenge 
___
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: 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 it didn't open the database.
> Instead it returned the answer error "Unable to connect to the database.
> revdberr, invalid database type."
>
> Sieg, I had that happen recently - it had to do with the proper
> spelling/capitalization of the first parameter. Try using "mysql" (all
> lower case)… it *shouldn't* make a difference, but it did for me.
>
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: k...@sonsothunder.com
> Web Site: http://www.sonsothunder.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
>
>


-- 
Pete
Molly's Revenge 
___
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

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 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 Maker Plugin 1.7 for LiveCode here
> http://qery.us/za
>
> On 21 mrt 2012, at 13:44, Peter M. Brigham, MD wrote:
> >
> > Oh, too bad. Well, at least it's simple to color the comments green in
> my display field, that facilitates looking through the scripts to some
> extent.
> >
> > -- 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
>
>


-- 
Pete
Molly's Revenge 
___
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: 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 kinds of 
controls though.


--
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


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 stack or 
card as an array. Even if there were a way to get all the objects, I could use 
a filter command to get the ones I wanted. 

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: 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 Maker Plugin 1.7 for LiveCode here http://qery.us/za

On 21 mrt 2012, at 13:44, Peter M. Brigham, MD wrote:
> 
> Oh, too bad. Well, at least it's simple to color the comments green in my 
> display field, that facilitates looking through the scripts to some extent.
> 
> -- 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: 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 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


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 to the card. 
Everything just turns to the right as the phone is rotated.
The second card has a unique landscape display, established by using the 
Landscape option in MobGUI. Controls change properly (i.e. become 
vertical) when the phone is rotated.


Go to the 2nd card.
Rotate the phone. All works nice.
Now navigate back to card 1 WITHOUT rotating the phone back to portrait. 
The layout of the card will now be vertical, as if it was trying to 
display correctly for landscape mode. But the controls SHOULD all be 
rotated 90 degrees. It acts as if the MobGUI info for this card (card 1) 
isn't aware that the phone is still in landscape mode, since no NEW 
orientationchanged message was sent.


I tried placing a "send orientationchanged to this cd" into the opencard 
handler of cd 1, but it had no effect. How can I force MobGUI to 
adjust/update the card layout properly?


Thanks.
Richard Miller

___
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: 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 next few years.

--
Kind regards,

Mark Schonewille
Economy-x-Talk
Http://economy-x-talk.com

Share the clipboard of your computer over a local network with Clipboard Link 
http://clipboardlink.economy-x-talk.com


Op 21 mrt. 2012 om 15:16 heeft Martin Meili  het 
volgende geschreven:

> 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
> Martin


___
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: 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: Wednesday, March 21, 2012 1:12 AM
To: use-livecode@lists.runrev.com
Subject: Re: Error Codes

Jacque-

Tuesday, March 20, 2012, 1:40:26 PM, you wrote:

> On 3/20/12 12:37 PM, Ralph DiMola wrote:
>> OK, I give up. How do you translate error number into descriptive
>> text?

You could just let the engine do the heavy lifting:

put line tErrorNumber of the scriptExecutionErrors

-- 
-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


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
Martin

___
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

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 done by the engine. There 
> used to be a script for it in older versions of the IDE. If you have an old 
> version of Rev you might find it. I can't recall which version had the 
> changeover but if you go back to, say, version 3.x it's probably in there.

Oh, too bad. Well, at least it's simple to color the comments green in my 
display field, that facilitates looking through the scripts to some extent.

-- 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 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,
>
> I read this list almost everyday, but this is only the second time I have
> posted here. I guess I feel like I am still a newbie compared to everybody
> else.
>
> After reading the LiveCode 5.5 iOS release notes, I think I am missing
> something very basic concerning the recent LiveCode upgrade to 5.5. Unless
> I overlooked it, LiveCode does not support Xcode 4.3.1 (and therefore iOS
> 5.1). Can this be correct?? Do we have to wait for the next upgrade for
> that capability? I know another member put out a terminal based workaround
> to shoehorn the iOS 5.1 simulator into Xcode 4.2.1, could this now be the
> official approach??
>
> Thanks for sharing ANY insight into what RunRev has in mind here
> concerning this subject. I will have a very tough sell ahead of me
> justifying this fee based upgrade without official LiveCode support for the
> most recent iOS.
>
> Terry
> Confused in St. Louis.
>
>
>
> ___
> 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
>



-- 
_

Benjamin Beaumont . RunRev Ltd

LiveCode Product Manager
mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW
email : b...@runrev.com
company : +44(0) 845 219 89 23
fax : +44(0) 845 458 8487
web : www.runrev.com

LiveCode - Unleash Your Killer App
___
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