Re: Radio / checkbox button scaloing

2013-08-27 Thread Christer Pyyhtiä
Does not work from script either.  Can you demonstrate it?

I think the best way is to build own tick box system.  

___
use-livecode mailing list
use-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: Wildcards ???

2013-08-27 Thread Richmond

On 08/27/2013 05:53 AM, Kay C Lan wrote:

If you really want to do Search  Replace based on patterns, you could
write your own script in LC using matchText() but it would probably be
faster and easier to confirm that correct replaces were taking place if, on
OS X, you used the FREE TextWrangler  grep:

http://www.barebones.com/support/Textwrangler/updates.html


Thank you! I know and love TextWrangler, having used it ever since the 
demise of the

free version of BBedit, and having used that since about 1998.

On a Mac that's great; but, with the exception of some very 'focussed' 
work, I do all my stuff

on Linux, and, as yet, am unaware of a Linux equivalent to TextWrangler.



You'll be glad to know that this link takes you to where you can download
older versions, including PPC.

Write a simple script to repeat through all the objects of your stack and
if their script is not empty then output the object long name* and it's
script to a single file. Open in TextWrangler and a quick grep will have
all those replaces done in no time. Although it does have a 'Replace All'
option, when it comes to scripts and other important data I always step
through each and every replace - I'm always amazed how often there is a
case where it idenfies text to replace but it's the odd man out and I don't
want it replaced. The only gotcha, which I'm sure you're well aware of, is
that all those parentheses must be be escaped - standard grep stuff.

You could even write a simple script to read the amended file back into LC,
Repeat for Each Line, matchText(a line that clearly is an object long name)
then read in the script until you get to the next long name, then set the
script of the previous long name* to the lines you've just read.

* Not that you wouldn't do this, but more for any newbies reading; before
doing this, duplicate your stack, Close and Remove from Memory the original
stack, then do everything with the duplicate, then the long names will all
correlate correctly.

All pretty basic LC stuff for a man of your scripting talents :-)

HTH


On Tue, Aug 27, 2013 at 1:19 AM, Richmond richmondmathew...@gmail.comwrote:


On 08/26/2013 07:34 PM, Jan Schenkel wrote:


See the documentation for the 'filter' command.
In its current incarnation, that command uses 'wildcard' expressions to
decide which lines to retain and which to discard.


HTH,

Jan Schenkel

   =
Quartam Reports  PDF Library for LiveCode
www.quartam.com


=
As we grow older, we grow both wiser and more foolish at the same time.
  (La Rochefoucauld)


  __**__

From: Richmond richmondmathew...@gmail.com
To: How to use LiveCode use-livecode@lists.runrev.com**
Sent: Monday, August 26, 2013 6:14 PM
Subject: Wildcards ???


The find and replace was always using wildcards() even when Use Regular
Expressions was false. The find
stack has been updated to allow users to choose the type of search from
Regular Expressions, Wildcards or
Plain Text.

What symbols must one use for a wildcard?

Richmond.




The reason I asked this question was because I had to do a socking great
search and replace
through about 5000 lines of code:

Yes, you guessed it; Richmond's Devawriter Pro won't go away; it just
gets bigger and groovier.

Now I had all sorts of 'horrible' bits to search for and replace and
Livecode didn't do very well
(coded way of saying something fairly negative) with searching for phrases
that had lines breaks in them.

I ended up doing everything in LibreOffice (bloody-minded), which was OK
as far as things went,
but Wildcards weren't in it.

Certainly I would like to be able to search for the following sort of
phrase:

set the unicodeText of the selected to ((numToChar(*))  (numToChar(*)) 
(numToChar(2325))

in such a way that I can replace:

((numToChar(22345))  (numToChar(66778))  (numToChar(2325)) with

((numToChar(22345))  (numToChar(66778))  (numToChar())

and

((numToChar(99887))  (numToChar(11223))  (numToChar(2325)) with

((numToChar(99887))  (numToChar(11223))  (numToChar())

that is to say, that the wildcard bits remain unchanged.


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-livecodehttp://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: How to build webcam application

2013-08-27 Thread paolo mazza
Björnke
to set up a live videostreaming you can use these services (twitch.tv,
 livestream.com ..) or manage a streaming server by yourself ( ie
Wowza).
But the point is, how can you have a LiveCode desktop application to
show a live video streaming?
AFAIK the old QuickTime player can not manage live video streaming nor
from Twitch.tv nor from Livestream.com. Am I right?
So, at the moment, the only available solution is opening a web page
with revBrowser.
I think runRev should provide a brand new video player (using HTML5).
Best regards
Paolo

On Mon, Aug 26, 2013 at 1:57 PM, Björnke von Gierke b...@mac.com wrote:
 there's existing services for that, like twitch.tv or livestream.com

 On 26.08.2013, at 01:01, Mark wrote:

 Hi all,
 I was wondering how to go about building a desktop application that would 
 allow people to watch my band play live at a gig.
 These people are not able to attend the gig, so I was thinking that this 
 client and host app would allow them to watch and listen in a live scenario.

 Anyone have any ideas about how to go about this?

 Thanx,
 Mark
 ___
 use-livecode mailing list
 use-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 an alternative Dictionary viewer:
 http://bjoernke.com/bvgdocu/

 Chat with other RunRev developers:
 http://bjoernke.com/chatrev/



 ___
 use-livecode mailing list
 use-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


Search Replace with lf and/cr

2013-08-27 Thread Richmond

This is a really hard nut to crack:

I have a very long script that features lines that end like this:

 numToChar(2325))

and lines that end like this

 numToChar(2325))

the top example is followed by a line that starts with set,
and the lower example is followed by break:

 numToChar(2325))
set

 numToChar(2325))
break

now I want to mess around with the lower type of script line and NOT
the upper one.

AS the script contains somewhere over 5000 lines, and about 50 of those 
sort of lines
that need to be operated on I don't feel a high level of motivation to 
go through

the thing line by line . . .

. . . if I have to I will (the blasted thing is mission critical) . . .

Tried to do the above in LibreOffice and as soon as I pasted the lower
phrase into the search box it turned the thing into

 numToChar(2325)) break

i.e. stripped out the linefeed. Obviously that is no good.

I would be extremely grateful for any constructive help.

[ for choice I would prefer to work on Linux; however I have access to 
Mac 10.6 and Windows XP and 7 should the need arise ].


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


Variable scope in Server mode

2013-08-27 Thread Alex Tweedly
I don't understand the scope rules for variables in LCServer (either 
that  or I've found a bug that is confusing me :-)


I expected that variables which were (implicitly) declared and set 
within a script would be available within that script, and within 
handlers of that script (i.e. like script locals in a normal stack script).


So in the normal case I have a file (mainfile1.lc) which has
?livecode
put 123 into lang[a]
put 456 into lang[b]

put main file direct  the number of lines in the keys of lang  
br  CR


on plang pD
  put main file in handler  the number of lines in the keys of 
lang   br  CR

end plang

plang a
?

and, as expected, that produces

main file direct 2
main file in handler 2

However, if I take the two 'put' statements, and place them in a file, 
which I then include into my file, I get

within some file 2
main file direct 2
main file in handler 0

mainfile2.lc

?livecode
include somefile.lc

put main file direct  the number of lines in the keys of lang  
br  CR


on plang pD
  put main file in handler  the number of lines in the keys of 
lang   br  CR

end plang

plang a
?


somefile.lc

?livecode

put 123 into lang[a]
put 456 into lang[b]

put within some file  the number of lines in the keys of lang 
br  cr


I have (repeatedly) read the dictionary entry for 'local', but can't 
make enough sense of it to explain this behaviour - either why it should 
happen, or to be sure that it shouldn't happen :-)


Any help much appreciated, thanks.
-- Alex.




___
use-livecode mailing list
use-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: Search Replace with lf and/cr

2013-08-27 Thread Richmond

Hey: nothing new round these parts: Richmond replying to his own message.

This is one of those moments when I want to shout Hallelujah from the 
roof tops . . .


I have just discovered KOMODO EDIT: http://www.activestate.com/komodo-edit

and it really rocked my socks as it allows a multiline search and replace.

Woo-Hoo, Yabba-Dabba-Do :)

Cannot recommend it enough.

Richmond.


On 08/27/2013 11:56 AM, Richmond wrote:

This is a really hard nut to crack:

I have a very long script that features lines that end like this:

 numToChar(2325))

and lines that end like this

 numToChar(2325))

the top example is followed by a line that starts with set,
and the lower example is followed by break:

 numToChar(2325))
set

 numToChar(2325))
break

now I want to mess around with the lower type of script line and NOT
the upper one.

AS the script contains somewhere over 5000 lines, and about 50 of 
those sort of lines
that need to be operated on I don't feel a high level of motivation to 
go through

the thing line by line . . .

. . . if I have to I will (the blasted thing is mission critical) . . .

Tried to do the above in LibreOffice and as soon as I pasted the lower
phrase into the search box it turned the thing into

 numToChar(2325)) break

i.e. stripped out the linefeed. Obviously that is no good.

I would be extremely grateful for any constructive help.

[ for choice I would prefer to work on Linux; however I have access to 
Mac 10.6 and Windows XP and 7 should the need arise ].


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: Search Replace with lf and/cr

2013-08-27 Thread Mark Schonewille
Hi Richmond,

I don't understand why this is a poblem and why you would try this in 
LibreOffice. 

put the script of myControl into myScript
replace )  break with )  cr  beep  cr  break in myScript
set the script of myControl to myScript
put the result into rslt
if rslt is not empty then
  beep
  answer error rslt
end if

You could also put the script into a field and write more complex scripts to 
edit that script before you set the script of the control.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour 
spaces. http://www.color-converter.com

We have time for new software development projects. Contact me for a quote.






On 27 aug 2013, at 10:56, Richmond wrote:

 This is a really hard nut to crack:
 
 I have a very long script that features lines that end like this:
 
  numToChar(2325))
 
 and lines that end like this
 
  numToChar(2325))
 
 the top example is followed by a line that starts with set,
 and the lower example is followed by break:
 
  numToChar(2325))
 set
 
  numToChar(2325))
 break
 
 now I want to mess around with the lower type of script line and NOT
 the upper one.
 
 AS the script contains somewhere over 5000 lines, and about 50 of those sort 
 of lines
 that need to be operated on I don't feel a high level of motivation to go 
 through
 the thing line by line . . .
 
 . . . if I have to I will (the blasted thing is mission critical) . . .
 
 Tried to do the above in LibreOffice and as soon as I pasted the lower
 phrase into the search box it turned the thing into
 
  numToChar(2325)) break
 
 i.e. stripped out the linefeed. Obviously that is no good.
 
 I would be extremely grateful for any constructive help.
 
 [ for choice I would prefer to work on Linux; however I have access to Mac 
 10.6 and Windows XP and 7 should the need arise ].
 
 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: Search Replace with lf and/cr

2013-08-27 Thread Richmond

On 08/27/2013 12:21 PM, Mark Schonewille wrote:

Hi Richmond,

I don't understand why this is a poblem and why you would try this in 
LibreOffice.

put the script of myControl into myScript
replace )  break with )  cr  beep  cr  break in myScript
set the script of myControl to myScript
put the result into rslt
if rslt is not empty then
   beep
   answer error rslt
end if

You could also put the script into a field and write more complex scripts to 
edit that script before you set the script of the control.


Actually, in the light of what I have found I can do with Komodo Edit 
even that seems cumbersome.




--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour 
spaces. http://www.color-converter.com

We have time for new software development projects. Contact me for a quote.






On 27 aug 2013, at 10:56, Richmond wrote:


This is a really hard nut to crack:

I have a very long script that features lines that end like this:

 numToChar(2325))

and lines that end like this

 numToChar(2325))

the top example is followed by a line that starts with set,
and the lower example is followed by break:

 numToChar(2325))
set

 numToChar(2325))
break

now I want to mess around with the lower type of script line and NOT
the upper one.

AS the script contains somewhere over 5000 lines, and about 50 of those sort of 
lines
that need to be operated on I don't feel a high level of motivation to go 
through
the thing line by line . . .

. . . if I have to I will (the blasted thing is mission critical) . . .

Tried to do the above in LibreOffice and as soon as I pasted the lower
phrase into the search box it turned the thing into

 numToChar(2325)) break

i.e. stripped out the linefeed. Obviously that is no good.

I would be extremely grateful for any constructive help.

[ for choice I would prefer to work on Linux; however I have access to Mac 10.6 
and Windows XP and 7 should the need arise ].

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



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


Strange behavior of files()

2013-08-27 Thread Michael Kristensen
Hi there

I have a folder with 1347 jpg files

they are sequently named

 0001.JPG
 0002.JPG
 0003.JPG
...
 1345.JPG
 1346.JPG
 1347.JPG

Strangely the files() function return a list omitting the first two and the 
last two.

Thus the list start with  0003.JPG and ends with  1345.JPG.

Anyone seen this behavior?

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


Sessions on LC Server

2013-08-27 Thread Alex Tweedly

I'm trying to get sessions working on LC Server with no luck.

I'm using code from 
http://lists.runrev.com/pipermail/use-livecode/2012-January/166885.html

which was where Malte got this to work OK - so it ought to be working code.
(I added the line to print out the version - but it failed without that 
too. Also fails without setting sessionid)


I'm on pancake.on-rev.com, using version 5.0.2 of LC server, and I get

5.0.2

file /home/.../play.lc
  row 4, col 1:

from my file play.lc

?lc
put version()
set the sessionid to 100
start session
if $_SESSION[counter] is empty then
  add 1 to $_SESSION[counter]
  put No previous session detected. Session counter=  
$_SESSION[counter]

else
  add 1 to $_SESSION[counter]
  put Session counter:  $_SESSION[counter]
end if
stop session
?

Any ideas ?

Thanks
-- Alex.
___
use-livecode mailing list
use-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: Sessions on LC Server

2013-08-27 Thread Ethan Lish
Alex

I also struggled with this and found I had to move session control earlier in 
the stack. I have a dirty code sample if you want to take a look

E

et...@lish.net
240.449.8270

Sent from MyPhone

 On Aug 27, 2013, at 8:08 AM, Alex Tweedly a...@tweedly.net wrote:
 
 I'm trying to get sessions working on LC Server with no luck.
 
 I'm using code from 
 http://lists.runrev.com/pipermail/use-livecode/2012-January/166885.html
 which was where Malte got this to work OK - so it ought to be working code.
 (I added the line to print out the version - but it failed without that too. 
 Also fails without setting sessionid)
 
 I'm on pancake.on-rev.com, using version 5.0.2 of LC server, and I get
 
 5.0.2
 
 file /home/.../play.lc
  row 4, col 1:
 
 from my file play.lc
 
 ?lc
 put version()
 set the sessionid to 100
 start session
 if $_SESSION[counter] is empty then
  add 1 to $_SESSION[counter]
  put No previous session detected. Session counter=  $_SESSION[counter]
 else
  add 1 to $_SESSION[counter]
  put Session counter:  $_SESSION[counter]
 end if
 stop session
 ?
 
 Any ideas ?
 
 Thanks
 -- Alex.
 ___
 use-livecode mailing list
 use-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: Sessions on LC Server

2013-08-27 Thread Alex Tweedly
Yes please; my example fails even if start session is the first 
statement in my .lc file :-)

you could email it direct to me at a...@tweedly.net ...

Are you using on-rev ? which machine ? which engine version ?

Thanks
-- Alex.

On 27/08/2013 13:16, Ethan Lish wrote:

Alex

I also struggled with this and found I had to move session control earlier in 
the stack. I have a dirty code sample if you want to take a look

E

et...@lish.net
240.449.8270

Sent from MyPhone


On Aug 27, 2013, at 8:08 AM, Alex Tweedly a...@tweedly.net wrote:

I'm trying to get sessions working on LC Server with no luck.

I'm using code from 
http://lists.runrev.com/pipermail/use-livecode/2012-January/166885.html
which was where Malte got this to work OK - so it ought to be working code.
(I added the line to print out the version - but it failed without that too. 
Also fails without setting sessionid)

I'm on pancake.on-rev.com, using version 5.0.2 of LC server, and I get

5.0.2

file /home/.../play.lc
  row 4, col 1:

from my file play.lc

?lc
put version()
set the sessionid to 100
start session
if $_SESSION[counter] is empty then
  add 1 to $_SESSION[counter]
  put No previous session detected. Session counter=  $_SESSION[counter]
else
  add 1 to $_SESSION[counter]
  put Session counter:  $_SESSION[counter]
end if
stop session
?

Any ideas ?

Thanks
-- Alex.
___
use-livecode mailing list
use-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: Radio / checkbox button scaloing

2013-08-27 Thread dunbarx
Something wrong with what you wrote Christer:



set width of button yourButton to the formattedWidth of button yourButton



This will take the width required to show the name of the button and make the 
button just that wide. Note that if you have a label applied to the button, it 
will take precedence over the name. Is this what might have happened in your 
case?




Craig Newman






-Original Message-
From: Christer Pyyhtiä chris...@mindcrea.com
To: use-livecode use-livecode@lists.runrev.com
Sent: Tue, Aug 27, 2013 2:00 am
Subject: Re: Radio / checkbox button scaloing


Does not work from script either.  Can you demonstrate it?

I think the best way is to build own tick box system.  

___
use-livecode mailing list
use-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: Variable scope in Server mode

2013-08-27 Thread Martin Koob
I think you have to declare the variable as a local first and then assign it. 
Then I think it will be available within subsequent handlers.

ie.

?livecode 
local lang
put 123 into lang[a] 
put 456 into lang[b] 


Martin





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Variable-scope-in-Server-mode-tp4669166p4669175.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Re: How to build webcam application

2013-08-27 Thread Rick Harrison
Hi there,

The easy way out is to use:

http://www.ustream.tv/

That with the revBrowser and you are done!

Good luck!

Rick


On Aug 27, 2013, at 3:50 AM, paolo mazza mazzapaoloit...@gmail.com wrote:

 Björnke
 to set up a live videostreaming you can use these services (twitch.tv,
 livestream.com ..) or manage a streaming server by yourself ( ie
 Wowza).
 But the point is, how can you have a LiveCode desktop application to
 show a live video streaming?
 AFAIK the old QuickTime player can not manage live video streaming nor
 from Twitch.tv nor from Livestream.com. Am I right?
 So, at the moment, the only available solution is opening a web page
 with revBrowser.
 I think runRev should provide a brand new video player (using HTML5).
 Best regards
 Paolo


___
use-livecode mailing list
use-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: The encoding property

2013-08-27 Thread Richard Gaskin

Peter Haworth wrote:

This is for the next release of my lcStackBrowser plugin.  It will include
the ability to display and edit properties within the main lcStackBrowser
window.  As part of that functionality, users can define property groups to
include whatever properties they wish.  In turn, that is achieved by
drag/drop from a list of properties for an object type to a list of
properties within each of their property groups they specify.

Hope that explains the final goal :-)


It does - thanks.


At the moment, I am using a similar technique to yours where I start of by
getting the keys of the properties than add in a hard coded list of missing
properties for the object.  That's OK but suffers from the downside that
every time a new release of LC comes out with new properties that perhaps
is not included in the properties (and there have been quite a few
recently), my list is out of date and I would have to put out a new release
simply to include the new properties.

The issue of synonyms is part of but separate from all that.  I have now
figured out how to get a list of the synonyms for any given property from
Bjornke's db (what an invaluable plugin!), at least to the extent that the
information in the dictionary is accurate.


I wonder if perhaps you could split the difference, and have your 
property-checking routine done during development to build a list that's 
used at runtime.  That would keep runtime lean and efficient, and unless 
you plan on abandoning the utility (which wouldn't make sense of course 
after putting so much time into it) you'll probably be releasing new 
versions anyway, so keeping it updated with the engine probably won't 
need much greater frequency of updates than normal enhancements and bug 
fixes would require anyway.


Either way, as you noted the properties isn't providing what you need 
and requires some manual trimming anyway.  It's just designed for a 
different purpose, so until we get a function specifically for the needs 
of IDE builders (I'd love to see the complete properties of obj) 
some manual work will always be required.


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
use-livecode mailing list
use-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: Strange behavior of files()

2013-08-27 Thread Richard Gaskin

Michael Kristensen wrote:


I have a folder with 1347 jpg files

they are sequently named

 0001.JPG
 0002.JPG
 0003.JPG
...
 1345.JPG
 1346.JPG
 1347.JPG

Strangely the files() function return a list omitting the first two and the 
last two.

Thus the list start with  0003.JPG and ends with  1345.JPG.

Anyone seen this behavior?


I've seen what *looks* like that behavior, until I double-checked and 
discovered that file name listings returned from the files are not 
always sorted.


Instead, they return the values as known by the OS, which for some file 
systems often use inode order which may not reflect name sort order. 
Directories with large numbers of files may be especially prone to this, 
since the file lists are likely spread out across multiple inodes.


Try running the resulting list through the sort command to see if 
perhaps the files you're looking for are actually there but had not been 
where you'd expected them.


And an extra check might be to see if the number of lines in that list 
matches what you see in the OS file manager.


If you find they're not there please post back so we can find the recipe 
to pin down what at that point would be a bug.


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
use-livecode mailing list
use-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: The encoding property

2013-08-27 Thread Peter Haworth
On Mon, Aug 26, 2013 at 2:22 PM, Peter Haworth p...@lcsql.com wrote:

 I've entered bug# 11129 at the QCC.


The fix is already in awaiting build status

Pete
lcSQL Software http://www.lcsql.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: The encoding property

2013-08-27 Thread Peter Haworth
On Tue, Aug 27, 2013 at 7:19 AM, Richard Gaskin
ambassa...@fourthworld.comwrote:

 I wonder if perhaps you could split the difference, and have your
 property-checking routine done during development to build a list that's
 used at runtime.  That would keep runtime lean and efficient, and unless
 you plan on abandoning the utility (which wouldn't make sense of course
 after putting so much time into it) you'll probably be releasing new
 versions anyway, so keeping it updated with the engine probably won't need
 much greater frequency of updates than normal enhancements and bug fixes
 would require anyway.


I'm thinking of using Bjornke's approach with Docu 2 where his database is
tied to a specific version of LC.  Whenever a user upgrades to a new
version, a new database is created but on subsequent runs, no db creation
is needed.


Pete
lcSQL Software http://www.lcsql.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: [ANN] Library for scripting MS Excel with LC - Beta Testers needed

2013-08-27 Thread zryip theSlug
Dear LiveCode Community and Beta Testers,

A new update concerning the Excel Library.

For the beta testers and for everyone interested by the library, we have
created a special page on our website, where we are communicating about our
projects and their progresses.
Feel free to have a look to our page and to send suggestion off-list, for
improving the Excel Library.

http://www.aslugontheroad.com/in-progress



Best Regards,
-- 
Zryip TheSlug
http://www.aslugontheroad.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


LiveCode Server, can it read local (on the server) drives?

2013-08-27 Thread Roger Eller
Are we limited to access only files in the wwwroot?  I wish to have the
server perform a SQL query to a database of file paths, and follow that
request with an existence verification to a local drive of that same server.

~Roger
___
use-livecode mailing list
use-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 Server, can it read local (on the server) drives?

2013-08-27 Thread Richard Gaskin

Roger Eller wrote:

Are we limited to access only files in the wwwroot?  I wish to have the
server perform a SQL query to a database of file paths, and follow that
request with an existence verification to a local drive of that same server.


AFAIK the file I/O in LC Server is every bit as flexible as in the 
desktop engine.  I often access data in folders above the web root, no prob.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for Desktop, Mobile, and Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

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


Re: LiveCode Server, can it read local (on the server) drives?

2013-08-27 Thread Roger Eller
Perfect!  I'm working to optimize the verification pass.  Thanks Richard.

Additionally, I want to pass a list to be queried and verified, instead of
one line at a time, passing parameters with GET.  Any recommendations on
that front?

~Roger
On Aug 27, 2013 11:03 PM, Richard Gaskin ambassa...@fourthworld.com
wrote:

 Roger Eller wrote:

 Are we limited to access only files in the wwwroot?  I wish to have the
 server perform a SQL query to a database of file paths, and follow that
 request with an existence verification to a local drive of that same
 server.


 AFAIK the file I/O in LC Server is every bit as flexible as in the desktop
 engine.  I often access data in folders above the web root, no prob.

 --
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for Desktop, Mobile, and Web
  __**__
  ambassa...@fourthworld.comhttp://www.FourthWorld.com

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


iOS and the defaultfolder

2013-08-27 Thread Ralph DiMola
This works in the simulator but not on the device..
---
Set the defaultfolder to the documents folder
---
There is nothing in the result but==the defaultfolder  to the documents
folder

This does work
---
Set the defaultfolder to the engine folder
---

I can also read/write/delete files in the documents folder. I just can't set
the defaultfolder there.
Is this an iOS security restriction or a bug?

Thanks!

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.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


iOS and the defaultfolder

2013-08-27 Thread Ralph DiMola
Well, well, well. When one set the default folder to any place in the the
documents folder a /Private get prepended to the front of the default
folder(but not on the simulator). Although the defaultfolder  to the
documents folder the defaultfolder is where you want to be to see your
apps documents.

Strange but true


This works in the simulator but not on the device..
---
Set the defaultfolder to the documents folder
---
There is nothing in the result but==the defaultfolder  to the documents
folder

This does work
---
Set the defaultfolder to the engine folder
---

I can also read/write/delete files in the documents folder. I just can't set
the defaultfolder there.
Is this an iOS security restriction or a bug?

Thanks!

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.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