AppleScript vs VBScript

2016-02-03 Thread Kay C Lan
Took up Ali's invitation to give amending the LC Dictionary via GitHub a go.

With regard to - do  as 

The OS X explanation of 'the result' is quite straight forward and easy to
demonstrate.

On OS X systems any result returned by the script language is placed in the
> result.


do "6 / 2" as AppleScript
put "Good Result: " & the result & cr into msg
do "6 / 0" as AppleScript
put "Error Result: " & the result after msg
--produces in the msg box
Good Result: 3.0
Error Result: execution error

I know very little about Windows but the Dictionary entry is quite
confusing:

On Windows systems, the result function will return the value of the global
> variable called "result" in the script that was executed (or empty if no
> such variable was defined)...Any scripts on Windows which contain
> references to WScript will fail to run as WScript objects do not exist in
> the LiveCode Environment. Return values should therefore be placed within
> the global result variable instead of using WScript.Echo.


Searching the List for VBScript examples I see nowhere where a global
'result' variable is defined but a simple test if LC's 'the result'
contains "error". For WScript examples I can't find anything that seems to
return anything, they all seem to just do something and in most cases seem
to be offered as an solution outside of LC. Also, why use the 'global
result' instead of WScript.Echo if do  as WScript wont run at
all in LC?

I would appreciate if someone could provide a basic VBScript example like
the AppleScript one above, that demonstrates both valid and error returns.

ALSO, if someone could please decipher what is written about Windows and
tell me what it means in plain English. I get the impression that VBScript
behaves like AppleScript. For WScript I get the impression that it's
talking about a completely different scenario - WScript is being run
outside of LC and you are interested in checking on it's progress. This
doesn't seem to related to: do  as 
and probably belongs elsewhere.

Thanks.
___
use-livecode mailing list
use-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: AW: Re: Regex help needed...

2016-02-03 Thread Thierry Douez
​​
>  Regex has  been around a long time
>  and lots of smart computer science types has
> spent time coming up with ways to optimize its performance for pattern
> matching.

That's was true, it's still true and will always be true!


and here are some benchmarks
done in a late rainy sunday evening:


* Regex2 faster than Chunk by: 2.1 times*


For the details:

1) Regex1 is the original regex, Chunk1 is  from Richard, Regex2 is mine.
2) You can noticed the difference in time depending on the value of pPage
( that's a normal behavior with regex)
3) I've done the calculation the same way as Richard did, so you can compare



**  aPage = 1, Same? true true
Regex1: 8943 ms
Chunk1: 210 ms
Regex2: 99 ms
Regex2 faster than orig regex by: 90.3 times
Regex2 faster than Chunk by: 2.1 times

**  aPage = 2, Same? true true
Regex1: 9946 ms
Chunk1: 212 ms
Regex2: 100 ms
Regex2 faster than orig regex by: 99.5 times
Regex2 faster than Chunk by: 2.1 times

**  aPage = 3, Same? true true
Regex1: 4451 ms
Chunk1: 210 ms
Regex2: 98 ms
Regex2 faster than orig regex by: 45.4 times
Regex2 faster than Chunk by: 2.1 times

**  aPage = 4, Same? true true
Regex1: 11465 ms
Chunk1: 200 ms
Regex2: 98 ms
Regex2 faster than orig regex by: 117 times
Regex2 faster than Chunk by: 2 times

**  aPage = 5, Same? true true
Regex1: 11457 ms
Chunk1: 201 ms
Regex2: 94 ms
Regex2 faster than orig regex by: 121.9 times
Regex2 faster than Chunk by: 2.1 times




Kind regards,

Thierry




Thierry Douez - http://sunny-tdz.com
sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage
___
use-livecode mailing list
use-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: Can Handler Know What Params It Should Have

2016-02-03 Thread Bernard Devlin
Hi Hermann

Even with the "LC handler" it's not quite giving me what I'd like. It's
still providing data from params(), rather than, for example, returning

mouseUp pNumberOfMouseButtonClicked.

I was hoping that a handler could provide information about itself at
compile time, rather than simply what was passed to it during runtime.

Regards
Bernard

On Tue, Feb 2, 2016 at 8:16 PM, [-hh]  wrote:

> Bernard wrote:
> > I know the params can be called to find out what parameters were
> > passed to the handler when it is called. However, I'm wondering
> > if a handler has a way of knowing what parameters it had at the
> > time it was defined. I don't think so. Regards Bernard
>
> Yes, that's my opinion too, for user handlers, but not for LC/reserved
> handlers. This is the simple explanation I use for myself:
>
> [1] For any *user handler*, the answer is NO, because there are
> not "the parameters" in a definition. For example
>
> on handler x1,x2
>  put ( x1,x2 )
> end handler
>
> is equivalent to
>
> on handler
>  put ( param(1),param(2) )
> end handler
>
> [2] For a *LC handler* we can see the defined params by calling the
> params in the handler without params. For example
>
> on mouseUp
>  put the params
> end mouseUp
>
> yields: MouseUp "1" (if left-clicked)
> Means: We can use, where b is the 'reserved' LC param, for example
>
> on mouseUp b,x1,x2
>  put (x1,x2)
> end mouseUp
>
> or equivalently
>
> on mouseUp
>  put (param(2),param(3))
> end mouseUp
>
> ===
> Hermann
>
> ___
> use-livecode mailing list
> use-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: Can Handler Know What Params It Should Have

2016-02-03 Thread Bernard Devlin
Hi Pierre

I think we might be talking about different things.

For a few minutes, I thought you were saying that "get function
someFunctionName()" would return the "signature" of that function (in Java
the "signature" of a handler is "name param1 paramN").  But in LC it
appears we can't ask the runtime for information about defined code. I
tried running what I understood you to be saying, and it did not work.  On
reflection, I think you are providing a mechanism to hard code a number of
different handlers, in response to a handler receiving a (varying) number
of possible parameters.

Basically, it seems that other languages are able to introspect in a way
that we can't in LC.

Another thing I think would be good, would be to have an "undefined"
handler. Smalltalk has this; IIRC so does TCL.

Regards
Bernard

On Tue, Feb 2, 2016 at 5:35 PM, Pierre Sahores 
wrote:

> Bernard,
>
> It’s the way most AI programs are running (functional programming +
> lambda-calcul => 24/7 enabled recursive call-backs)
>
> 1.- as a startup example :
>
> on idle
>  if var1 and var2 is «  » then
> get function function_1
> else
> get function function_n
> end if
> end idle
>
> or more simple :
>
> on idle
> get function function_1(var1, var2)
> end idle
>
> function function_1
> …
> end function_1
>
> …
>
>
> function function_n
> …
> end function_n
>
> 2.- where idle can be replaced with a first direct call (on startup, on
> opencard,…) to function_1 as long as function_n ends up with :
>
> wait 10
> send function_1 to me in 10 ticks — garbage collector
>
> HTH,
>
>
>
>
___
use-livecode mailing list
use-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: Mobile suspend and resume [was: Re: Multiple Mobile Shutdown Messages?]

2016-02-03 Thread Mike Kerner
yay!

On Wed, Feb 3, 2016 at 8:34 AM, Peter TB Brett 
wrote:

> On 03/02/2016 11:31, Kevin Miller wrote:
>
>> You might also be interested to know that the whole issue with background
>> apps/suspend/resume will be much improved in LC 8. All this time working
>> on the various architecture projects is letting us address all kinds of
>> longstanding issues! There will still be some work to do on the part of
>> the developer to use this properly, we'll document what you need to do and
>> think about when this is ready.
>>
>
> You can track progress of the mobile suspend and resume feature here:
>
> http://quality.livecode.com/show_bug.cgi?id=16829
>
>   Peter
>
> --
> Dr Peter Brett 
> LiveCode Open Source Team
>
> LiveCode on reddit: https://reddit.com/r/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
>



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


Re: Can Handler Know What Params It Should Have

2016-02-03 Thread Mark Waddingham

On 2016-02-02 17:05, Bernard Devlin wrote:
I know the params can be called to find out what parameters were passed 
to
the handler when it is called. However, I'm wondering if a handler has 
a

way of knowing what parameters it had at the time it was defined.


There isn't currently a way to get this information, no.

We currently have 'the params' which returns a string form of the 
handlers invocation (which, is somewhat flawed as you can have array 
valued parameters, and strings containing quote), paramCount() which 
returns the number of parameters actually passed, and param(i) which 
returns the value (not converted to a string) of the i'th parameter 
passed to the current call.


Perhaps something like a 'paramName(i)' function?

Can you give more information about your use-case?

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

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


Re: AW: Re: Regex help needed...

2016-02-03 Thread Bernard Devlin
Hi Mark,

There's huge differences in how regex implementations perform in different
languages. For example: http://raid6.com.au/~onlyjob/posts/arena/

Perl outperforms everything in that test. I've never assumed that LC's
"perl compatiable regex library" is going to perform at the speed which
actual Perl performs. I've always assumed that being "perl compatible" just
meant that all syntactically-correct Perl regexs should run with LC's
implementation, without needing any kind of change in how the regex is
formatted.

There was an academic paper I came across 15 years ago, which showed that
Tcl out-performed Perl. Now it seems Perl outperforms Tcl, suggesting that
one or the other has made changes to their underlying engine which impact
regex performance. Or that the tests I read about 15 years ago were just
testing regex features which resulted in Tcl out-performing Perl, and
vice-versa in the above test.

It would be great if LC's implementation was as fast as Perl's.

Here's a page comparing several implementations of PCRE (with some non-pcre
regex implementations): http://sljit.sourceforge.net/regex_perf.html

One of the things we had in LC5 which was phenomenally fast, was searching
through the styledText of a field. That fast way of searching particular
text structures got lost in the migration to LC8.

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


Release 6.7.9 RC 1 / 7.1.2 RC 1

2016-02-03 Thread panagiotis merakos
Dear List Members,


We are pleased to announce the release of LiveCode 6.7.9 RC 1 and 7.1.2 RC
1.


*Release Contents*

  - 31 bugs are fixed in LiveCode 6.7.9 RC 1

  - 35 bugs are fixed in LiveCode 7.1.2 RC 1 (in addition to the 31 bugs
fixed in 6.7.9 RC 1, which are also fixed in 7.1.2 RC 1).


Moreover, this release includes important security updates to some of the
thirdparty libraries LiveCode uses. More specifically,  OpenSSL is updated
to version 1.0.1q and libpng is updated to version 1.5.26.


This release also allows you to select Xcode 7.2.x (including Xcode 7.2.1 -
released today) in the Preferences > Mobile Support pane, and thus allowing
users to deploy on iOS 9.2 simulator.


*Getting the Release*

To get the release please download the installer directly at:
http://downloads.livecode.com


Warmest regards,

The LiveCode Team

--
___
use-livecode mailing list
use-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: AW: Re: Regex help needed...

2016-02-03 Thread Ali Lloyd
On Wed, Feb 3, 2016 at 11:53 AM Bernard Devlin  wrote:
> One of the things we had in LC5 which was phenomenally fast, was searching
> through the styledText of a field. That fast way of searching particular
> text structures got lost in the migration to LC8.

Could you expand on this a little? I'm not sure exactly what you mean by
'searching through the styledText of a field'.

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


AW: How to create a hyperlink within a text field?

2016-02-03 Thread Tiemo Hollmann TB
Alternativly I also tried to work with lineOffset and setting the vScoll of
the field. The lineOffset gives me the number of the found textline, but not
the visible line number of a scrolling field with word wrap, which can be
resized. In such a field the "effective" line number can vary, depending on
the current size of the field.
Is there anything such as the "effective lineOffset", or even better a
direct approach to scroll to the found chunck? Probably I don't see the
obvious.
Tiemo

-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von Tiemo Hollmann TB
Gesendet: Mittwoch, 3. Februar 2016 12:07
An: LiveCode User Liste senden 
Betreff: How to create a hyperlink within a text field?

Hello,

just not to invent the wheel again. I have a long text field with a table of
contents at the beginning and headlines for chapters and I would like to
make the table of content clickable as hyperlinks, so that the user is
forwarded to the wanted chapter in the same field.

I can set the textstyle of each chapter in the table of content to "link"
and handle the  click in "on linkClicked pLink", no problem about that.

The question is, how to handle the field scrolling to the wanted chapter
headline after clicking on the hyperlink. When using "find whole pLink in
the target", the find command finds first the chapter headline in the table
of content and stops at the top. I could cheat this, by doubleing the find
command, so that the second find command goes on searching and finds the
real chapter headline and scrolls the field to the wanted chapter.

But I think that there must be a more straight forward way to realize this
kind of hyperlink.

Thanks

Tiemo

 

 

 

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


___
use-livecode mailing list
use-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: Multiple Mobile Shutdown Messages?

2016-02-03 Thread Mark Waddingham

On 2016-02-03 00:18, Scott Rossi wrote:
Actually, openStack seems to work the same -- not sent after resuming 
from

being backgrounded.  So several options to be had :-)


Yes - this should work for your purposes (if I understand your intent 
correctly!).


At the moment...

If 'exits on suspend' is true then you will receive a startup message 
when the app is launched, and then a shutdown message whenever the app 
ceases to be foreground. The app will essentially restart entirely each 
time the user goes back to it.


If 'exits on suspend' is false then you will receive a startup message 
when the app is launched, and then no other messages. When an app is 
suspended, it will resume at exactly the same place it was before. If 
the OS decides to kill it (or the user does), you won't get any 
notification and it will relaunch from scratch (i.e. you'll get a 
startup message again) next time.


So, in your case, if you get a startup message (which triggers the 
openStack message) it means the app was either killed by the user or the 
OS and so should start from the beginning; otherwise you can assume that 
the app will be in the same place as it was before it was put into the 
background and you need to do nothing.


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

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


Re: AW: Re: Regex help needed...

2016-02-03 Thread Peter TB Brett

On 03/02/2016 11:53, Bernard Devlin wrote:

Perl outperforms everything in that test. I've never assumed that LC's
"perl compatiable regex library" is going to perform at the speed which
actual Perl performs. I've always assumed that being "perl compatible" just
meant that all syntactically-correct Perl regexs should run with LC's
implementation, without needing any kind of change in how the regex is
formatted.


To be precise, LiveCode uses the PCRE library, which is generally 
considered to be the *definitive* implementation of Perl Compatible 
Regular Expressions: http://www.pcre.org/.  There isn't a special 
LiveCode-specific implementation of regular expressions involved.


  Peter

--
Dr Peter Brett 
LiveCode Open Source Team

LiveCode on reddit: https://reddit.com/r/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


How to create a hyperlink within a text field?

2016-02-03 Thread Tiemo Hollmann TB
Hello,

just not to invent the wheel again. I have a long text field with a table of
contents at the beginning and headlines for chapters and I would like to
make the table of content clickable as hyperlinks, so that the user is
forwarded to the wanted chapter in the same field.

I can set the textstyle of each chapter in the table of content to "link"
and handle the  click in "on linkClicked pLink", no problem about that.

The question is, how to handle the field scrolling to the wanted chapter
headline after clicking on the hyperlink. When using "find whole pLink in
the target", the find command finds first the chapter headline in the table
of content and stops at the top. I could cheat this, by doubleing the find
command, so that the second find command goes on searching and finds the
real chapter headline and scrolls the field to the wanted chapter.

But I think that there must be a more straight forward way to realize this
kind of hyperlink.

Thanks

Tiemo

 

 

 

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


Re: Multiple Mobile Shutdown Messages?

2016-02-03 Thread Kevin Miller
You might also be interested to know that the whole issue with background
apps/suspend/resume will be much improved in LC 8. All this time working
on the various architecture projects is letting us address all kinds of
longstanding issues! There will still be some work to do on the part of
the developer to use this properly, we'll document what you need to do and
think about when this is ready.

Kind regards,

Kevin

Kevin Miller ~ ke...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps




On 02/02/2016 23:18, "use-livecode on behalf of Scott Rossi"
 wrote:

>Actually, openStack seems to work the same -- not sent after resuming from
>being backgrounded.  So several options to be had :-)
>
>Thanks again,
>
>Scott Rossi
>Creative Director
>Tactile Media, UX/UI Design
>
>
>
>
>On 2/2/16, 3:11 PM, "use-livecode on behalf of Scott Rossi"
>sc...@tactilemedia.com> wrote:
>
>>OK, it looks like the "startup" message is indeed the way to go: sent
>>when
>>launching fresh, not sent when launching after suspended.
>>
>>Thanks guys.
>>
>>Regards,
>>
>>Scott Rossi
>>Creative Director
>>Tactile Media, UX/UI Design
>>
>>
>>
>>
>>On 2/2/16, 2:25 PM, "use-livecode on behalf of Scott Rossi"
>>>sc...@tactilemedia.com> wrote:
>>
>>>Thanks for the suggestions.  The pList option could work, but what
>>>message
>>>is sent when launching the stack from the backgrounded state?  Resume?
>>>
>>>Thanks & Regards,
>>>
>>>Scott Rossi
>>>Creative Director
>>>Tactile Media, UX/UI Design
>>>
>>>
>>>
>>>
>>>On 2/2/16, 1:19 PM, "use-livecode on behalf of Mike Kerner"
>>>>>mikeker...@roadrunner.com> wrote:
>>>
I haven't played with this, but thinking aloud:
1) Set the plist so the app doesn't exit on suspend
2) Therefore, you won't get an exit message unless the app is quit.
Set
a
flag
3) on preOpenStack check for the flag.

On Tue, Feb 2, 2016 at 3:44 PM, Scott Rossi 
wrote:

> Hi All:
>
> I'm wondering if there are different messages sent on mobile (iOS)
>when
>an
> app is backgrounded versus when the app is swipe-dismissed (removed
>from
> the list of backgrounded apps).
>
> I'm trying to set up a sort of "reset" behavior in an app that allows
> starting from screen 1 instead of starting from the last saved point.
>I'm
> saving user settings normally in a on shutDown handler, but I can't
>figure
> out it there's some way to detect when the app has been "fully
>closed"
> (removed), so when the user relaunches the app it knows to start
>fresh
> from screen 1.
>
> The only thing that comes to mind is a time stamp and setting an
>arbitrary
> session time threshold, like 10 minutes: if the user relaunches
>within
>the
> time limit they go back to where they left off, but if relaunching
>outside
> the time limit, they start over.  Obviously this isn't ideal as it
>forces
> a 10 minute wait to really start over.  Is there another message
>besides
> shutDown that I'm missing?
>
> I'd prefer not to use a reset button as this is never done on iOS --
>when
> apps are removed from the backgrounded apps list, they usually "know"
>to
> start over.
>
> Any ideas?
>
> Thanks & Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
>
>
>
>
>
>
>___
>use-livecode mailing list
>use-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: Multiple Mobile Shutdown Messages?

2016-02-03 Thread Mike Kerner
yay!

On Wed, Feb 3, 2016 at 6:31 AM, Kevin Miller  wrote:

> You might also be interested to know that the whole issue with background
> apps/suspend/resume will be much improved in LC 8. All this time working
> on the various architecture projects is letting us address all kinds of
> longstanding issues! There will still be some work to do on the part of
> the developer to use this properly, we'll document what you need to do and
> think about when this is ready.
>
> Kind regards,
>
> Kevin
>
> Kevin Miller ~ ke...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
>
>
>
>
> On 02/02/2016 23:18, "use-livecode on behalf of Scott Rossi"
>  sc...@tactilemedia.com> wrote:
>
> >Actually, openStack seems to work the same -- not sent after resuming from
> >being backgrounded.  So several options to be had :-)
> >
> >Thanks again,
> >
> >Scott Rossi
> >Creative Director
> >Tactile Media, UX/UI Design
> >
> >
> >
> >
> >On 2/2/16, 3:11 PM, "use-livecode on behalf of Scott Rossi"
> > >sc...@tactilemedia.com> wrote:
> >
> >>OK, it looks like the "startup" message is indeed the way to go: sent
> >>when
> >>launching fresh, not sent when launching after suspended.
> >>
> >>Thanks guys.
> >>
> >>Regards,
> >>
> >>Scott Rossi
> >>Creative Director
> >>Tactile Media, UX/UI Design
> >>
> >>
> >>
> >>
> >>On 2/2/16, 2:25 PM, "use-livecode on behalf of Scott Rossi"
> >> >>sc...@tactilemedia.com> wrote:
> >>
> >>>Thanks for the suggestions.  The pList option could work, but what
> >>>message
> >>>is sent when launching the stack from the backgrounded state?  Resume?
> >>>
> >>>Thanks & Regards,
> >>>
> >>>Scott Rossi
> >>>Creative Director
> >>>Tactile Media, UX/UI Design
> >>>
> >>>
> >>>
> >>>
> >>>On 2/2/16, 1:19 PM, "use-livecode on behalf of Mike Kerner"
> >>> >>>mikeker...@roadrunner.com> wrote:
> >>>
> I haven't played with this, but thinking aloud:
> 1) Set the plist so the app doesn't exit on suspend
> 2) Therefore, you won't get an exit message unless the app is quit.
> Set
> a
> flag
> 3) on preOpenStack check for the flag.
> 
> On Tue, Feb 2, 2016 at 3:44 PM, Scott Rossi 
> wrote:
> 
> > Hi All:
> >
> > I'm wondering if there are different messages sent on mobile (iOS)
> >when
> >an
> > app is backgrounded versus when the app is swipe-dismissed (removed
> >from
> > the list of backgrounded apps).
> >
> > I'm trying to set up a sort of "reset" behavior in an app that allows
> > starting from screen 1 instead of starting from the last saved point.
> >I'm
> > saving user settings normally in a on shutDown handler, but I can't
> >figure
> > out it there's some way to detect when the app has been "fully
> >closed"
> > (removed), so when the user relaunches the app it knows to start
> >fresh
> > from screen 1.
> >
> > The only thing that comes to mind is a time stamp and setting an
> >arbitrary
> > session time threshold, like 10 minutes: if the user relaunches
> >within
> >the
> > time limit they go back to where they left off, but if relaunching
> >outside
> > the time limit, they start over.  Obviously this isn't ideal as it
> >forces
> > a 10 minute wait to really start over.  Is there another message
> >besides
> > shutDown that I'm missing?
> >
> > I'd prefer not to use a reset button as this is never done on iOS --
> >when
> > apps are removed from the backgrounded apps list, they usually "know"
> >to
> > start over.
> >
> > Any ideas?
> >
> > Thanks & Regards,
> >
> > Scott Rossi
> > Creative Director
> > Tactile Media, UX/UI Design
> >
> >
> >
> >
> >
> >
> >
> >___
> >use-livecode mailing list
> >use-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
>



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

Launching a PDF file stored within a desktop app

2016-02-03 Thread Charles Szasz
Has anyone come up with a script to launch a PDF that is a file within a 
desktop app? I was thinking of including a PDF Help file within an app. 

Sent from my iPad
___
use-livecode mailing list
use-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: Moving the mouse pointer by script

2016-02-03 Thread Roland Huettmann
Yes, that was the answer. Somehow I overlooked it.

As a little starter for those who need it here is a little script.

Without the wait command, the mouse movement is not visible.

on mouseUp
   get the topleft  of this stack
   add 10 to item 1 of it
   add 30 to item 2 of it
   put 1 into x
   put the width of this stack * 2 into n
   repeat n
  if item 1 of it >= the right of this stack then
 put x * -1 into x
  end if
  add x to item 1 of it
  set the screenMouseLoc to it
  wait 1
   end repeat
end mouseUp


Roland



On 3 February 2016 at 16:01, Klaus major-k  wrote:

> Hi Roland,
>
> > Am 03.02.2016 um 15:55 schrieb Roland Huettmann <
> roland.huettm...@gmail.com>:
> >
> > Looking up lots of sites and messages, I could not find a way moving
> > (dragging) the mouse pointer using a script.
> >
> > Or am I just blind?
> >
> > This is for an animation sequence... instead of the user dragging an
> > object, the object is dragged using the mouse without user interaction -
> so
> > the pointer is visually moving on the screen from A to B. The mouse
> pointer
> > is just moving to some location doing some action and the user watching
> it.
> > It should give a lesson to the user.
> >
> > A video can be made, but that is not what we intend to do. It should be
> > real.
> >
> > Any suggestions?
>
> check „the screenmouseloc“ in the dictionary.
> This is the only (location) property of the mouse that you can actually
> SET.
>
> > Roland
> >
> > I AM VERY HAPPY WITH 7.1. IT IS STABLE SO FAR: AND THAT IS MOST IMPORTANT
> > TO ME.
> > MANY THANKS TO THE DEDICATED ENDLESSLY WORKING TEAM IN GOOD OLD SCOTLAND.
> > CHEERS TO ALL OF THEM.
>
> Maybe version 7.1.2 (RC1) will make you even more happy? :-D
> It was published today.
>
>
> Best
>
> Klaus
>
> --
> Klaus Major
> http://www.major-k.de
> kl...@major-k.de
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Launching a PDF file stored within a desktop app

2016-02-03 Thread Roger Eller
Only within an embedded browser, but it works.

~Roger


On Wed, Feb 3, 2016 at 4:05 PM, Charles Szasz  wrote:

> Has anyone come up with a script to launch a PDF that is a file within a
> desktop app? I was thinking of including a PDF Help file within an app.
>
> Sent from my iPad
>
>
___
use-livecode mailing list
use-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: Moving the mouse pointer by script

2016-02-03 Thread Scott Rossi
As Klaus said, screenMouseLoc is what you need.

In my case, I'd like to know how not only how to move the mouse, but to
drag an object via script as well.  Obviously one can set the loc of the
object, but is there way to trick LiveCode into thinking the mouse is down
so that the standard actions of dragging and resizing can be accomplished
as well without having to do those actions by separate script?

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 2/3/16, 6:55 AM, "use-livecode on behalf of Roland Huettmann"
 wrote:

>Looking up lots of sites and messages, I could not find a way moving
>(dragging) the mouse pointer using a script.
>
>Or am I just blind?
>
>This is for an animation sequence... instead of the user dragging an
>object, the object is dragged using the mouse without user interaction -
>so
>the pointer is visually moving on the screen from A to B. The mouse
>pointer
>is just moving to some location doing some action and the user watching
>it.
>It should give a lesson to the user.
>
>A video can be made, but that is not what we intend to do. It should be
>real.
>
>Any suggestions?
>
>Roland
>
>I AM VERY HAPPY WITH 7.1. IT IS STABLE SO FAR: AND THAT IS MOST IMPORTANT
>TO ME.
>MANY THANKS TO THE DEDICATED ENDLESSLY WORKING TEAM IN GOOD OLD SCOTLAND.
>CHEERS TO ALL OF THEM.
>___
>use-livecode mailing list
>use-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: Moving the mouse pointer by script

2016-02-03 Thread Mike Bonner
If I can find the code, somewhere around here I have an external that sends
clicks.  For my use I had it send a down and up, was using it as part of a
remote control system. (so that I could run my computer, from my android
device)  If I can locate the code, it shouldn't be too hard to separate the
2 things (down and up) so that you can use it to click and hold, and send
the up when you wish..  The livecode built in click does down and up, and
doesn't work outside livecode.  Going in search of the code.

On Wed, Feb 3, 2016 at 2:03 PM, Scott Rossi  wrote:

> As Klaus said, screenMouseLoc is what you need.
>
> In my case, I'd like to know how not only how to move the mouse, but to
> drag an object via script as well.  Obviously one can set the loc of the
> object, but is there way to trick LiveCode into thinking the mouse is down
> so that the standard actions of dragging and resizing can be accomplished
> as well without having to do those actions by separate script?
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
>
>
>
> On 2/3/16, 6:55 AM, "use-livecode on behalf of Roland Huettmann"
>  roland.huettm...@gmail.com> wrote:
>
> >Looking up lots of sites and messages, I could not find a way moving
> >(dragging) the mouse pointer using a script.
> >
> >Or am I just blind?
> >
> >This is for an animation sequence... instead of the user dragging an
> >object, the object is dragged using the mouse without user interaction -
> >so
> >the pointer is visually moving on the screen from A to B. The mouse
> >pointer
> >is just moving to some location doing some action and the user watching
> >it.
> >It should give a lesson to the user.
> >
> >A video can be made, but that is not what we intend to do. It should be
> >real.
> >
> >Any suggestions?
> >
> >Roland
> >
> >I AM VERY HAPPY WITH 7.1. IT IS STABLE SO FAR: AND THAT IS MOST IMPORTANT
> >TO ME.
> >MANY THANKS TO THE DEDICATED ENDLESSLY WORKING TEAM IN GOOD OLD SCOTLAND.
> >CHEERS TO ALL OF THEM.
> >___
> >use-livecode mailing list
> >use-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: AW: Re: Regex help needed...

2016-02-03 Thread Peter Haworth
Hi Thierry,
I might have missed it but did you publish your Regex2 to the list?
Pete

On Wed, Feb 3, 2016 at 12:07 PM Richard Gaskin 
wrote:

> Thierry Douez write:
>
> >>  Regex has  been around a long time
> >>  and lots of smart computer science types has
> >> spent time coming up with ways to optimize its performance for pattern
> >> matching.
> >
> > That's was true, it's still true and will always be true!
>
> It's true that there are almost always ways to improve performance using
> any method, but there are times when one method may be faster than
> another so it's worth testing out, as you did here:
>
> > and here are some benchmarks
> > done in a late rainy sunday evening:
> >
> >
> > * Regex2 faster than Chunk by: 2.1 times*
>
> Great results - what was the regex you used for that?
>
>
> > For the details:
> >
> > 1) Regex1 is the original regex, Chunk1 is  from Richard, Regex2 is mine.
> > 2) You can noticed the difference in time depending on the value of pPage
> > ( that's a normal behavior with regex)
> > 3) I've done the calculation the same way as Richard did, so you can
> compare
> >
> >
> >
> > **  aPage = 1, Same? true true
> > Regex1: 8943 ms
> > Chunk1: 210 ms
> > Regex2: 99 ms
> > Regex2 faster than orig regex by: 90.3 times
> > Regex2 faster than Chunk by: 2.1 times
> >
> > **  aPage = 2, Same? true true
> > Regex1: 9946 ms
> > Chunk1: 212 ms
> > Regex2: 100 ms
> > Regex2 faster than orig regex by: 99.5 times
> > Regex2 faster than Chunk by: 2.1 times
> >
> > **  aPage = 3, Same? true true
> > Regex1: 4451 ms
> > Chunk1: 210 ms
> > Regex2: 98 ms
> > Regex2 faster than orig regex by: 45.4 times
> > Regex2 faster than Chunk by: 2.1 times
> >
> > **  aPage = 4, Same? true true
> > Regex1: 11465 ms
> > Chunk1: 200 ms
> > Regex2: 98 ms
> > Regex2 faster than orig regex by: 117 times
> > Regex2 faster than Chunk by: 2 times
> >
> > **  aPage = 5, Same? true true
> > Regex1: 11457 ms
> > Chunk1: 201 ms
> > Regex2: 94 ms
> > Regex2 faster than orig regex by: 121.9 times
> > Regex2 faster than Chunk by: 2.1 times
> >
>
> --
>   Richard Gaskin
>   Fourth World Systems
>   Software Design and Development for the Desktop, Mobile, and the Web
>   
>   ambassa...@fourthworld.comhttp://www.FourthWorld.com
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-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: AppleScript vs VBScript

2016-02-03 Thread Trevor DeVore
On Wed, Feb 3, 2016 at 10:25 AM, Kay C Lan  wrote:

>
> I see in the last script how you've declared  in VBScript, but I
> believe this below script is also your script and  is not declared,
> you simple check LC's own 'the result'.
>
> (line wraps are probably all over the place)
>
> ##
> put the uActiveServerLoginVBScript of me into theScript
>

The actual script is in uActiveServerLoginVBScript. Does that not have
 declared in it anywhere? That is my code but I haven't looked at
it in a long time.

-- 
Trevor DeVore
ScreenSteps
www.screensteps.com-www.clarify-it.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


Moving the mouse pointer by script

2016-02-03 Thread Roland Huettmann
Looking up lots of sites and messages, I could not find a way moving
(dragging) the mouse pointer using a script.

Or am I just blind?

This is for an animation sequence... instead of the user dragging an
object, the object is dragged using the mouse without user interaction - so
the pointer is visually moving on the screen from A to B. The mouse pointer
is just moving to some location doing some action and the user watching it.
It should give a lesson to the user.

A video can be made, but that is not what we intend to do. It should be
real.

Any suggestions?

Roland

I AM VERY HAPPY WITH 7.1. IT IS STABLE SO FAR: AND THAT IS MOST IMPORTANT
TO ME.
MANY THANKS TO THE DEDICATED ENDLESSLY WORKING TEAM IN GOOD OLD SCOTLAND.
CHEERS TO ALL OF THEM.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


access user's videos on iOS

2016-02-03 Thread Ben Rubinstein
We an use mobilePickMedia to access the user's audio library, and then play a 
selected audio file.


Is there any mechanism to access the user's video library, on iOS (in 
particular) or Android?


TIA

Ben

___
use-livecode mailing list
use-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: Mobile suspend and resume [was: Re: Multiple Mobile Shutdown Messages?]

2016-02-03 Thread Ben Rubinstein

On 03/02/2016 13:34, Peter TB Brett wrote:

You can track progress of the mobile suspend and resume feature here:

http://quality.livecode.com/show_bug.cgi?id=16829


This is good news!

Is there any reason not to track progress here
http://quality.livecode.com/show_bug.cgi?id=11845
?

Or should the latter now be closed with a reference to the new one?

thanks,

Ben

___
use-livecode mailing list
use-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: AW: How to create a hyperlink within a text field?

2016-02-03 Thread Mark Waddingham

On 2016-02-03 14:39, Tiemo Hollmann TB wrote:
Alternativly I also tried to work with lineOffset and setting the 
vScoll of
the field. The lineOffset gives me the number of the found textline, 
but not
the visible line number of a scrolling field with word wrap, which can 
be
resized. In such a field the "effective" line number can vary, 
depending on

the current size of the field.
Is there anything such as the "effective lineOffset", or even better a
direct approach to scroll to the found chunck? Probably I don't see the
obvious.


You should be able to use the formattedRect for this.

set the vScroll of field 1 to item 2 of the formattedRect of  - 
the top of field 1


You might have to apply a small amount of 'fudge' to take into account 
any margins and such...


Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

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


Re: AppleScript vs VBScript

2016-02-03 Thread Trevor DeVore
On Wed, Feb 3, 2016 at 5:08 AM, Kay C Lan  wrote:

>
> Searching the List for VBScript examples I see nowhere where a global
> 'result' variable is defined but a simple test if LC's 'the result'
> contains "error".
>

Here is a VBScript I have used in the past that sets the  so that
the value is returned to LiveCode.

==
dim theSubError
dim theProcesses

On Error Resume Next

'grabs the full process list and puts it in a var
if Err.Number = 0 then
set objService = getobject("winmgmts:")
for each Process in objService.InstancesOf("Win32_process")
theProcesses = theProcesses & Process.Name & vbLf
Next
end if


if Err.Number <> 0 then
result = Err.Number & ": " & Err.Description
else
result = theProcesses
end if
==

-- 
Trevor DeVore
ScreenSteps
www.screensteps.com-www.clarify-it.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: Moving the mouse pointer by script

2016-02-03 Thread Klaus major-k
Hi Roland,

> Am 03.02.2016 um 15:55 schrieb Roland Huettmann :
> 
> Looking up lots of sites and messages, I could not find a way moving
> (dragging) the mouse pointer using a script.
> 
> Or am I just blind?
> 
> This is for an animation sequence... instead of the user dragging an
> object, the object is dragged using the mouse without user interaction - so
> the pointer is visually moving on the screen from A to B. The mouse pointer
> is just moving to some location doing some action and the user watching it.
> It should give a lesson to the user.
> 
> A video can be made, but that is not what we intend to do. It should be
> real.
> 
> Any suggestions?

check „the screenmouseloc“ in the dictionary.
This is the only (location) property of the mouse that you can actually SET.

> Roland
> 
> I AM VERY HAPPY WITH 7.1. IT IS STABLE SO FAR: AND THAT IS MOST IMPORTANT
> TO ME.
> MANY THANKS TO THE DEDICATED ENDLESSLY WORKING TEAM IN GOOD OLD SCOTLAND.
> CHEERS TO ALL OF THEM.

Maybe version 7.1.2 (RC1) will make you even more happy? :-D
It was published today.


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


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

Re: AppleScript vs VBScript

2016-02-03 Thread Kay C Lan
Ah, just the person I was hoping would answer.

I see in the last script how you've declared  in VBScript, but I
believe this below script is also your script and  is not declared,
you simple check LC's own 'the result'.

(line wraps are probably all over the place)

##
put the uActiveServerLoginVBScript of me into theScript
replace "[[Domain]]" with theConfigA["settings"]["credential provider
domain"] in theScript -- "directory.something.corp:389"
replace "[[Query]]" with theConfigA["settings"]["credential provider
query"] in theScript -- "ou=Users,dc=something,dc=corp"
replace "[[Username]]" with pProjectA["credentials"]["login"] in theScript
replace "[[Password]]" with
wgdb_decryptString(pProjectA["credentials"]["password"]) in theScript
replace "[[UserKey]]" with theConfigA["settings"]["credential provider user
query key"] in theScript
do theScript as "vbscript"
if the result begins with "error," then put item 2 to -1 of the result into
theError
else
put the result into theADUserInfo ## last name, first name & cr & group &
tab & group ...
-- CN=,OU=Groups,DC=,DC=corp
end if
##

So again this leave me wonder as to the real situation with Windows? Can it
be like OS X where you simply check LC's 'the result' ? On Windows how do
you know when you NEED to declare  in VBScript and when you don't ?
___
use-livecode mailing list
use-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: Moving the mouse pointer by script

2016-02-03 Thread Mike Bonner
nope, can't find it. If you have a handle on LCB you could try using
com.livecode.foreign in lcb to set up a mousedown and mouseup.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Howard Bornstein
As did I. What happened when you set the linesize to 0?

On Mon, Feb 1, 2016 at 12:42 PM, Devin Asay  wrote:

>
> > On Feb 1, 2016, at 11:53 AM, Howard Bornstein 
> wrote:
> >
> > If you set the line size to 0, the outer glow disappears.
>
> For what kind of object? I tested it on a graphic object.
>
> Devin
>
> Devin Asay
> Office of Digital Humanities
> Brigham Young University
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
Regards,

Howard Bornstein
---
www.designeq.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: Launching a PDF file stored within a desktop app

2016-02-03 Thread Charles Szasz
Roger,

How well does printing does the printing work on Windows and Mac?

Sent from my iPad

___
use-livecode mailing list
use-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: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Terry Judd
Hi Howard - the outerglow (and innerglow) of an object display fine for me
on both a field and an (and this bit is important) *opaque* graphic object
when their borderWidth and lineSize properties are respectively set to 0.

Terry...

On 4/02/2016 11:26 am, "use-livecode on behalf of Howard Bornstein"
 wrote:

>As did I. What happened when you set the linesize to 0?
>
>On Mon, Feb 1, 2016 at 12:42 PM, Devin Asay  wrote:
>
>>
>> > On Feb 1, 2016, at 11:53 AM, Howard Bornstein 
>> wrote:
>> >
>> > If you set the line size to 0, the outer glow disappears.
>>
>> For what kind of object? I tested it on a graphic object.
>>
>> Devin
>>
>> Devin Asay
>> Office of Digital Humanities
>> Brigham Young University
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
>
>-- 
>Regards,
>
>Howard Bornstein
>---
>www.designeq.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


export variables to launched process?

2016-02-03 Thread Richard Gaskin

I've successfully exported variables to a process run with shell, e.g.:

put shell("export somevar='Hello!'; ./test.sh")

...where test.sh simply echoes somevar to verify that it got it.

Now I have a process I need to read and write to, but I don't know how 
to export variables to it - clues?



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

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


Re: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Devin Asay
Howard,

I'll bet it's what Terry said. I remember being surprised once when effects 
didn't work on a transparent graphic.

Devin

Sent from my iPhone

> On Feb 3, 2016, at 6:21 PM, Terry Judd  wrote:
> 
> Hi Howard - the outerglow (and innerglow) of an object display fine for me
> on both a field and an (and this bit is important) *opaque* graphic object
> when their borderWidth and lineSize properties are respectively set to 0.
> 
> Terry...
> 
> On 4/02/2016 11:26 am, "use-livecode on behalf of Howard Bornstein"
>  bornst...@designeq.com> wrote:
> 
>> As did I. What happened when you set the linesize to 0?
>> 
>>> On Mon, Feb 1, 2016 at 12:42 PM, Devin Asay  wrote:
>>> 
>>> 
> On Feb 1, 2016, at 11:53 AM, Howard Bornstein 
 wrote:
 
 If you set the line size to 0, the outer glow disappears.
>>> 
>>> For what kind of object? I tested it on a graphic object.
>>> 
>>> Devin
>>> 
>>> Devin Asay
>>> Office of Digital Humanities
>>> Brigham Young University
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> 
>> -- 
>> Regards,
>> 
>> Howard Bornstein
>> ---
>> www.designeq.com
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: AppleScript vs VBScript

2016-02-03 Thread Kay C Lan
Thanks Mark, that is certainly much clearer than what the Dictionary says.

I've found this nice short example on the List but before I add it to the
Dictionary I would appreciate if someone could confirm it works in the
latest version of Windows. The poster made a snide comment that it may or
may not work with certain flavours of VBScript & Windows:


   put "result = FormatCurrency(25432)" into tScript
   do tScript as vbscript
   put the result


As long as your system region settings are what you expect you should get
$25,432.00 in the message box

On Thu, Feb 4, 2016 at 12:59 AM, Mark Waddingham  wrote:

> On 2016-02-03 16:25, Kay C Lan wrote:
>
>> So again this leave me wonder as to the real situation with Windows? Can
>> it
>> be like OS X where you simply check LC's 'the result' ? On Windows how do
>> you know when you NEED to declare  in VBScript and when you don't
>> ?
>>
>
> My AppleScript and VBScript are a little rusty, however if I recall
> correctly...
>
> All statements in AppleScript notionally return a value (just like
> JavaScript). This means that if you execute a snippet of AppleScript, there
> is a well-defined 'result' which can be returned. So all the engine does
> for AppleScript is use the returned value from the 'exec code snippet' API
> that is used to set 'the result' on the LiveCode side.
>
> In contrast, no statements in VBScript return a value - only expressions
> do. This means that when you execute a snippet of VBScript there is no
> return value to be had from the API which is used. To work-around this the
> engine does the following:
>   1) execute snippet of VBScript
>   2) if the script has declared a global 'result' variable, take the value
> of that and set 'the result' on the LiveCode side
>   3) if the script has not declared a global 'result' variable, then set
> 'the result' to empty on the LiveCode side
>
> Therefore, in answer to your question, if you want your VBScript code
> snippet to return a value to LiveCode when using 'do ... as ...', you have
> to declare a global variable called 'result' in the snippet and set that to
> the return value you want LiveCode to see (in that snippet).
>
> Hope this helps!
>
> Mark.
>
> --
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-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 create a hyperlink within a text field?

2016-02-03 Thread Kay C Lan
On Thu, Feb 4, 2016 at 12:58 AM, Peter Brigham  wrote:

> Two ways to do it. The first and simplest is to lock the screen and do 2
> finds in succession, as you suggested.


It's not that simple. If your chapter is called 'Opinions' or 'LiveCode' or
something else that may frequently appear in your text you can not
guarantee it will be the 2nd find.

The second is to get the lineoffsets
> of the link text and scroll to the second occurrence of it.


With lineOffset you can guarantee that it will be the first line found by
determining how long your TOC is or on what line the 'body' of your
information starts within your field and using this as the 
parameter.

select line (lineOffset(tHeading, fld "Interesting stuf", 27) + 3) of fld
"interesting stuff"

Once you find
> the line offset of the actual chapter heading, use "the formattedheight of
> line 1 to chapterLineNbr of fld xxx" to get the scroll, and then set it
> accordingly.
>
> It is a pity you have to do that. It would be nice if 'select line x of
fld y' had a [top | middle | bottom] option. Currently if you 'select line
15 of fld "my field"' regardless of the  number of soft wrapped lines, hard
line 15 will be scrolled to appear as the bottom visible line in your fld.
Why they didn't make it the top line I'm not sure as I'd think that more
useful, but still, having a choice would be nice. You can move your line to
the 2nd bottom line - line lineOffset() + 1, or 3rd bottom line - line
lineOffset() + 2, etc etc. and you can rough fudge it to the middle, but
you need the fomattedheight to get it to the top.

HTH
___
use-livecode mailing list
use-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: Moving the mouse pointer by script

2016-02-03 Thread BNig
Hi Scott,

just looked at it and if I understand what you want to do then the drag
command does it.

make a small graphic "g1" place it into the center of a card
make a button "bDrag" and place it in the topLeft cornder

another button in the lower half of the card

script of that button


on mouseUp
   put the bottomRight of btn "bDrag" into tStart
   subtract 1 from item 1 of tStart
   subtract 1 from item 2 of tStart

   put loc of grc "g1" into tEnd
   choose the pointer tool
   select button "bDrag"
   set the dragSpeed to 100
   drag button 1 from tStart to tEnd 
   choose the browse tool
end mouseUp
--

this will change the size of the button and you can watch this.

You can also move the button without changing its size if you don't select
and edit mode the script etc.

movement is not super smooth but it moves. DragSpeed controls speed.

Kind regards
Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Moving-the-mouse-pointer-by-script-tp4700669p4700697.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: Launching a PDF file stored within a desktop app

2016-02-03 Thread Roger Eller
I have only used the browser method for viewing a PDF in a Windows exe.  It
should print though, just as it would from a browser.
On Feb 3, 2016 6:28 PM, "Charles Szasz"  wrote:

> Roger,
>
> How well does printing does the printing work on Windows and Mac?
>
> Sent from my iPad
>
> ___
> use-livecode mailing list
> use-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: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Randy Hengst
When the graphic or button is transparent and show name is selected, you should 
see the outerGlow effect around the name of the control.  

be well,
randy
www.classroomFocusedSoftware.com

> On Feb 3, 2016, at 7:19 PM, Terry Judd  wrote:
> 
> Hi Howard - the outerglow (and innerglow) of an object display fine for me
> on both a field and an (and this bit is important) *opaque* graphic object
> when their borderWidth and lineSize properties are respectively set to 0.
> 
> Terry...
> 
> On 4/02/2016 11:26 am, "use-livecode on behalf of Howard Bornstein"
>  bornst...@designeq.com> wrote:
> 
>> As did I. What happened when you set the linesize to 0?
>> 
>>> On Mon, Feb 1, 2016 at 12:42 PM, Devin Asay  wrote:
>>> 
>>> 
> On Feb 1, 2016, at 11:53 AM, Howard Bornstein 
 wrote:
 
 If you set the line size to 0, the outer glow disappears.
>>> 
>>> For what kind of object? I tested it on a graphic object.
>>> 
>>> Devin
>>> 
>>> Devin Asay
>>> Office of Digital Humanities
>>> Brigham Young University
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> 
>> -- 
>> Regards,
>> 
>> Howard Bornstein
>> ---
>> www.designeq.com
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Howard Bornstein
Yes this is true and understood. However, I've been working with
Brahmanathswami to find a solution for a transparent object because, as he
says, "Any inner glow or outer glow leaves a sharp edge on the object no
matter what we do." (with an opaque object)

He was looking for a way to feather images within LC and an opaque graphic
object won't do that (as far as I can tell).

On Wed, Feb 3, 2016 at 5:19 PM, Terry Judd 
wrote:

> Hi Howard - the outerglow (and innerglow) of an object display fine for me
> on both a field and an (and this bit is important) *opaque* graphic object
> when their borderWidth and lineSize properties are respectively set to 0.
>
> Terry...
>
> On 4/02/2016 11:26 am, "use-livecode on behalf of Howard Bornstein"
>  bornst...@designeq.com> wrote:
>
> >As did I. What happened when you set the linesize to 0?
> >
> >On Mon, Feb 1, 2016 at 12:42 PM, Devin Asay  wrote:
> >
> >>
> >> > On Feb 1, 2016, at 11:53 AM, Howard Bornstein  >
> >> wrote:
> >> >
> >> > If you set the line size to 0, the outer glow disappears.
> >>
> >> For what kind of object? I tested it on a graphic object.
> >>
> >> Devin
> >>
> >> Devin Asay
> >> Office of Digital Humanities
> >> Brigham Young University
> >>
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> >
> >
> >
> >--
> >Regards,
> >
> >Howard Bornstein
> >---
> >www.designeq.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
>



-- 
Regards,

Howard Bornstein
---
www.designeq.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 create a hyperlink within a text field?

2016-02-03 Thread Peter Brigham
Two ways to do it. The first and simplest is to lock the screen and do 2
finds in succession, as you suggested. The second is to get the lineoffsets
of the link text and scroll to the second occurrence of it. Once you find
the line offset of the actual chapter heading, use "the formattedheight of
line 1 to chapterLineNbr of fld xxx" to get the scroll, and then set it
accordingly.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


On Wed, Feb 3, 2016 at 8:39 AM, Tiemo Hollmann TB 
wrote:

> Alternativly I also tried to work with lineOffset and setting the vScoll of
> the field. The lineOffset gives me the number of the found textline, but
> not
> the visible line number of a scrolling field with word wrap, which can be
> resized. In such a field the "effective" line number can vary, depending on
> the current size of the field.
> Is there anything such as the "effective lineOffset", or even better a
> direct approach to scroll to the found chunck? Probably I don't see the
> obvious.
> Tiemo
>
> -Ursprüngliche Nachricht-
> Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im
> Auftrag
> von Tiemo Hollmann TB
> Gesendet: Mittwoch, 3. Februar 2016 12:07
> An: LiveCode User Liste senden 
> Betreff: How to create a hyperlink within a text field?
>
> Hello,
>
> just not to invent the wheel again. I have a long text field with a table
> of
> contents at the beginning and headlines for chapters and I would like to
> make the table of content clickable as hyperlinks, so that the user is
> forwarded to the wanted chapter in the same field.
>
> I can set the textstyle of each chapter in the table of content to "link"
> and handle the  click in "on linkClicked pLink", no problem about that.
>
> The question is, how to handle the field scrolling to the wanted chapter
> headline after clicking on the hyperlink. When using "find whole pLink in
> the target", the find command finds first the chapter headline in the table
> of content and stops at the top. I could cheat this, by doubleing the find
> command, so that the second find command goes on searching and finds the
> real chapter headline and scrolls the field to the wanted chapter.
>
> But I think that there must be a more straight forward way to realize this
> kind of hyperlink.
>
> Thanks
>
> Tiemo
>
>
>
>
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-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: AppleScript vs VBScript

2016-02-03 Thread Mark Waddingham

On 2016-02-03 16:25, Kay C Lan wrote:
So again this leave me wonder as to the real situation with Windows? 
Can it
be like OS X where you simply check LC's 'the result' ? On Windows how 
do
you know when you NEED to declare  in VBScript and when you 
don't ?


My AppleScript and VBScript are a little rusty, however if I recall 
correctly...


All statements in AppleScript notionally return a value (just like 
JavaScript). This means that if you execute a snippet of AppleScript, 
there is a well-defined 'result' which can be returned. So all the 
engine does for AppleScript is use the returned value from the 'exec 
code snippet' API that is used to set 'the result' on the LiveCode side.


In contrast, no statements in VBScript return a value - only expressions 
do. This means that when you execute a snippet of VBScript there is no 
return value to be had from the API which is used. To work-around this 
the engine does the following:

  1) execute snippet of VBScript
  2) if the script has declared a global 'result' variable, take the 
value of that and set 'the result' on the LiveCode side
  3) if the script has not declared a global 'result' variable, then set 
'the result' to empty on the LiveCode side


Therefore, in answer to your question, if you want your VBScript code 
snippet to return a value to LiveCode when using 'do ... as ...', you 
have to declare a global variable called 'result' in the snippet and set 
that to the return value you want LiveCode to see (in that snippet).


Hope this helps!

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

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


Re: Mobile suspend and resume [was: Re: Multiple Mobile Shutdown Messages?]

2016-02-03 Thread Peter TB Brett



On 03/02/2016 14:37, Ben Rubinstein wrote:

On 03/02/2016 13:34, Peter TB Brett wrote:

You can track progress of the mobile suspend and resume feature here:

http://quality.livecode.com/show_bug.cgi?id=16829


This is good news!

Is there any reason not to track progress here
http://quality.livecode.com/show_bug.cgi?id=11845
?

Or should the latter now be closed with a reference to the new one?


They're related, but not the same issue.  Think about it this way: 
fixing 11845 is part of fixing 16829, but not vice versa.  I'll link the 
two bugs.


Peter

--
Dr Peter Brett 
LiveCode Open Source Team

LiveCode on reddit: https://reddit.com/r/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: Launching a PDF file stored within a desktop app

2016-02-03 Thread Paul Hibbert
Charles,

Check out:

launch url

or…

launch [documentPath with] applicationPath

in the dictionary

example script…

on mouseUp
   put the effective fileName of this stack into tPdf
   set the itemDel to slash
   delete item -1 of tPdf
   put "/Support/Instructions.pdf" after tPdf
   launch tPdf with "/Applications/Preview.app"
end mouseUp

…works for me in a standalone if you add a folder ‘Support' containing the 
‘Instructions.pdf' in the ‘Copy Files’ pane of the ’Standalone Application 
Settings’. For this to work in the IDE, make sure the ‘Support’ folder is next 
to the Livecode stack.

Paul

> On 3 Feb 2016, at 13:05, Charles Szasz  > wrote:
> 
> Has anyone come up with a script to launch a PDF that is a file within a 
> desktop app? I was thinking of including a PDF Help file within an app. 
> 
> Sent from my iPad
> ___
> use-livecode mailing list
> use-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: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Scott Rossi
I'm guessing you guys want the final result to be rectangular and not
oval-shaped.  That's too bad because you could use a radial gradient using
a single color (i.e. white to white) in a graphic with the inner color set
to 100% transparent -- this makes a near-perfect mask but only in oval
shape.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 2/3/16, 9:50 PM, "use-livecode on behalf of Howard Bornstein"
 wrote:

>>You can achieve a feather effect using multiple objects stacked on top of
>>each other, but then you have to ask is that worth doing.  If you have to
>>do anything with the set of objects, such as move it around or scale it,
>>then the effect is probably too much trouble, especially on mobile.
>>
>
>This is how we did it‹using multiple graphic objects stacked. However, I
>used a gradient for each edge and used Outer Glow. I think it would be a
>lot of work to script this for general work but Brahmanathaswami seems to
>think it will be worthwhile to try it. I'm interested to see what he comes
>up with.



___
use-livecode mailing list
use-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: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Howard Bornstein
>
> You can achieve a feather effect using multiple objects stacked on top of
> each other, but then you have to ask is that worth doing.  If you have to
> do anything with the set of objects, such as move it around or scale it,
> then the effect is probably too much trouble, especially on mobile.
>

This is how we did it—using multiple graphic objects stacked. However, I
used a gradient for each edge and used Outer Glow. I think it would be a
lot of work to script this for general work but Brahmanathaswami seems to
think it will be worthwhile to try it. I'm interested to see what he comes
up with.

You can create a feather effect by grouping the source image with a mask
> image that contains a painted rectangular inner glow effect.  If you set
> the centerRect of the mask image to appropriate dimensions (the radius of
> glow at each corner of the image), you can resize the group and keep the
> glow effect intact with no loss of quality.
>

I couldn't get this to look anything like feathering because it always had
a hard edge. Maybe that is because of the weakness of the inner glow?


> FYI, you can create a transparent graphic with innerGlow using an ink
> effect.  For example, set the backColor of the graphic to black, apply a
> white innerGlow (255 opacity), and set the ink of the graphic to
> blendScreen.  This will make all black in the graphic transparent while
> keeping the white intact.  But again, the innerGlow is fairly weak.
>

I couldn't get this to work at all. When I set the blending ink to
BlendScreen, the black graphic became completely transparent, regardless of
the inner glow settings.

FWIW, I was able to easily create a feathered image for an oval or circular
feather with one graphic object. To do it for a rectangle, took 4 graphic
objects. In each case, we used Outer Glow with a gradient—radial for the
oval, linear for the rectangle.


> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
>
>
>
> On 2/3/16, 7:38 PM, "use-livecode on behalf of Howard Bornstein"
>  bornst...@designeq.com> wrote:
>
> >Yes this is true and understood. However, I've been working with
> >Brahmanathswami to find a solution for a transparent object because, as he
> >says, "Any inner glow or outer glow leaves a sharp edge on the object no
> >matter what we do." (with an opaque object)
> >
> >He was looking for a way to feather images within LC and an opaque graphic
> >object won't do that (as far as I can tell).
> >
> >On Wed, Feb 3, 2016 at 5:19 PM, Terry Judd 
> >wrote:
> >
> >> Hi Howard - the outerglow (and innerglow) of an object display fine for
> >>me
> >> on both a field and an (and this bit is important) *opaque* graphic
> >>object
> >> when their borderWidth and lineSize properties are respectively set to
> >>0.
> >>
> >> Terry...
> >>
> >> On 4/02/2016 11:26 am, "use-livecode on behalf of Howard Bornstein"
> >>  >> bornst...@designeq.com> wrote:
> >>
> >> >As did I. What happened when you set the linesize to 0?
> >> >
> >> >On Mon, Feb 1, 2016 at 12:42 PM, Devin Asay 
> wrote:
> >> >
> >> >>
> >> >> > On Feb 1, 2016, at 11:53 AM, Howard Bornstein
> >> >> >
> >> >> wrote:
> >> >> >
> >> >> > If you set the line size to 0, the outer glow disappears.
> >> >>
> >> >> For what kind of object? I tested it on a graphic object.
> >> >>
> >> >> Devin
> >> >>
> >> >> Devin Asay
> >> >> Office of Digital Humanities
> >> >> Brigham Young University
> >> >>
> >> >>
> >> >> ___
> >> >> use-livecode mailing list
> >> >> use-livecode@lists.runrev.com
> >> >> Please visit this url to subscribe, unsubscribe and manage your
> >> >> subscription preferences:
> >> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >> >>
> >> >
> >> >
> >> >
> >> >--
> >> >Regards,
> >> >
> >> >Howard Bornstein
> >> >---
> >> >www.designeq.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
> >>
> >
> >
> >
> >--
> >Regards,
> >
> >Howard Bornstein
> >---
> >www.designeq.com
> >___
> >use-livecode mailing list
> >use-livecode@lists.runrev.com
> >Please visit this url to subscribe, unsubscribe and manage your
> >subscription preferences:
> 

Re: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Howard Bornstein
On Wed, Feb 3, 2016 at 9:45 PM, Terry Judd 
wrote:

> OK, what about thisŠ
>
> Transparent (non opaque) graphic object with a 1 pixel linesize. Apply an
> outer glow - this will display equally on either side of the border. Then
> alter the border colour to match the glow where it adjoins the border. The
> border Œdisappears¹ but it may or may not simulate the effect you are
> looking for.
>

This is exactly what I did and it works pretty well. Unfortunately, while
it works fine for creating a feathered rectangle (or oval), it doesn't
really work for feathering an image, because you don't want the glow to be
on the inside of the image.

>
> Terry...
>
> On 4/02/2016 3:44 pm, "use-livecode on behalf of Scott Rossi"
>  sc...@tactilemedia.com> wrote:
>
> >The way one *should* be able to do this is using the innerGlow effect.
> >However, by itself, using the basic setting is not strong enough, and the
> >spread effect is backwards (increases outward, rather than inward -- bug)
> >so that's useless.
> >
> >You can achieve a feather effect using multiple objects stacked on top of
> >each other, but then you have to ask is that worth doing.  If you have to
> >do anything with the set of objects, such as move it around or scale it,
> >then the effect is probably too much trouble, especially on mobile.
> >
> >You can create a feather effect by grouping the source image with a mask
> >image that contains a painted rectangular inner glow effect.  If you set
> >the centerRect of the mask image to appropriate dimensions (the radius of
> >glow at each corner of the image), you can resize the group and keep the
> >glow effect intact with no loss of quality.
> >
> >FYI, you can create a transparent graphic with innerGlow using an ink
> >effect.  For example, set the backColor of the graphic to black, apply a
> >white innerGlow (255 opacity), and set the ink of the graphic to
> >blendScreen.  This will make all black in the graphic transparent while
> >keeping the white intact.  But again, the innerGlow is fairly weak.
> >
> >Regards,
> >
> >Scott Rossi
> >Creative Director
> >Tactile Media, UX/UI Design
> >
> >
> >
> >
> >On 2/3/16, 7:38 PM, "use-livecode on behalf of Howard Bornstein"
> > >bornst...@designeq.com> wrote:
> >
> >>Yes this is true and understood. However, I've been working with
> >>Brahmanathswami to find a solution for a transparent object because, as
> >>he
> >>says, "Any inner glow or outer glow leaves a sharp edge on the object no
> >>matter what we do." (with an opaque object)
> >>
> >>He was looking for a way to feather images within LC and an opaque
> >>graphic
> >>object won't do that (as far as I can tell).
> >>
> >>On Wed, Feb 3, 2016 at 5:19 PM, Terry Judd 
> >>wrote:
> >>
> >>> Hi Howard - the outerglow (and innerglow) of an object display fine for
> >>>me
> >>> on both a field and an (and this bit is important) *opaque* graphic
> >>>object
> >>> when their borderWidth and lineSize properties are respectively set to
> >>>0.
> >>>
> >>> Terry...
> >>>
> >>> On 4/02/2016 11:26 am, "use-livecode on behalf of Howard Bornstein"
> >>>  >>> bornst...@designeq.com> wrote:
> >>>
> >>> >As did I. What happened when you set the linesize to 0?
> >>> >
> >>> >On Mon, Feb 1, 2016 at 12:42 PM, Devin Asay 
> >>>wrote:
> >>> >
> >>> >>
> >>> >> > On Feb 1, 2016, at 11:53 AM, Howard Bornstein
> >>> >>> >
> >>> >> wrote:
> >>> >> >
> >>> >> > If you set the line size to 0, the outer glow disappears.
> >>> >>
> >>> >> For what kind of object? I tested it on a graphic object.
> >>> >>
> >>> >> Devin
> >>> >>
> >>> >> Devin Asay
> >>> >> Office of Digital Humanities
> >>> >> Brigham Young University
> >>> >>
> >>> >>
> >>> >> ___
> >>> >> use-livecode mailing list
> >>> >> use-livecode@lists.runrev.com
> >>> >> Please visit this url to subscribe, unsubscribe and manage your
> >>> >> subscription preferences:
> >>> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>> >>
> >>> >
> >>> >
> >>> >
> >>> >--
> >>> >Regards,
> >>> >
> >>> >Howard Bornstein
> >>> >---
> >>> >www.designeq.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: How to create a hyperlink within a text field?

2016-02-03 Thread J. Landman Gay

A little trick:

Create or import a transparent 1x1 pixel image. Hide it. Make each line 
in the table of contents into linked text. The html of each line looks 
like this:


Chapter one

In the body text of the field, place a marker character before the 
chapter heading. I'm using "#", like this:


#Chapter One

Then set the imagesource of char 1 of the line to the ID of the 
transparent image. You won't be able to see the first character after 
that but the text is still there. The htmltext of that line looks like this:


Chapter One

The line will be slightly indented by one pixel, but it shouldn't be 
noticeable. If you center the heading, it is imperceptible.


In the field script:

on linkclicked pURL
  put "#" before pURL
  put lineoffset(pURL, the formattedtext of me) into tLineNum
  set the scroll of me to the effective textheight of me * (tLineNum-1)
end linkclicked

If you choose a marker character that doesn't exist in the body text, 
lineoffset will always return the correct line.


--
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: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Scott Rossi
The way one *should* be able to do this is using the innerGlow effect.
However, by itself, using the basic setting is not strong enough, and the
spread effect is backwards (increases outward, rather than inward -- bug)
so that's useless.

You can achieve a feather effect using multiple objects stacked on top of
each other, but then you have to ask is that worth doing.  If you have to
do anything with the set of objects, such as move it around or scale it,
then the effect is probably too much trouble, especially on mobile.

You can create a feather effect by grouping the source image with a mask
image that contains a painted rectangular inner glow effect.  If you set
the centerRect of the mask image to appropriate dimensions (the radius of
glow at each corner of the image), you can resize the group and keep the
glow effect intact with no loss of quality.

FYI, you can create a transparent graphic with innerGlow using an ink
effect.  For example, set the backColor of the graphic to black, apply a
white innerGlow (255 opacity), and set the ink of the graphic to
blendScreen.  This will make all black in the graphic transparent while
keeping the white intact.  But again, the innerGlow is fairly weak.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 2/3/16, 7:38 PM, "use-livecode on behalf of Howard Bornstein"
 wrote:

>Yes this is true and understood. However, I've been working with
>Brahmanathswami to find a solution for a transparent object because, as he
>says, "Any inner glow or outer glow leaves a sharp edge on the object no
>matter what we do." (with an opaque object)
>
>He was looking for a way to feather images within LC and an opaque graphic
>object won't do that (as far as I can tell).
>
>On Wed, Feb 3, 2016 at 5:19 PM, Terry Judd 
>wrote:
>
>> Hi Howard - the outerglow (and innerglow) of an object display fine for
>>me
>> on both a field and an (and this bit is important) *opaque* graphic
>>object
>> when their borderWidth and lineSize properties are respectively set to
>>0.
>>
>> Terry...
>>
>> On 4/02/2016 11:26 am, "use-livecode on behalf of Howard Bornstein"
>> > bornst...@designeq.com> wrote:
>>
>> >As did I. What happened when you set the linesize to 0?
>> >
>> >On Mon, Feb 1, 2016 at 12:42 PM, Devin Asay  wrote:
>> >
>> >>
>> >> > On Feb 1, 2016, at 11:53 AM, Howard Bornstein
>>> >
>> >> wrote:
>> >> >
>> >> > If you set the line size to 0, the outer glow disappears.
>> >>
>> >> For what kind of object? I tested it on a graphic object.
>> >>
>> >> Devin
>> >>
>> >> Devin Asay
>> >> Office of Digital Humanities
>> >> Brigham Young University
>> >>
>> >>
>> >> ___
>> >> use-livecode mailing list
>> >> use-livecode@lists.runrev.com
>> >> Please visit this url to subscribe, unsubscribe and manage your
>> >> subscription preferences:
>> >> http://lists.runrev.com/mailman/listinfo/use-livecode
>> >>
>> >
>> >
>> >
>> >--
>> >Regards,
>> >
>> >Howard Bornstein
>> >---
>> >www.designeq.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
>>
>
>
>
>-- 
>Regards,
>
>Howard Bornstein
>---
>www.designeq.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: Graphic effects - Feather Edges of Rects

2016-02-03 Thread Terry Judd
OK, what about thisŠ

Transparent (non opaque) graphic object with a 1 pixel linesize. Apply an
outer glow - this will display equally on either side of the border. Then
alter the border colour to match the glow where it adjoins the border. The
border Œdisappears¹ but it may or may not simulate the effect you are
looking for.

Terry...

On 4/02/2016 3:44 pm, "use-livecode on behalf of Scott Rossi"
 wrote:

>The way one *should* be able to do this is using the innerGlow effect.
>However, by itself, using the basic setting is not strong enough, and the
>spread effect is backwards (increases outward, rather than inward -- bug)
>so that's useless.
>
>You can achieve a feather effect using multiple objects stacked on top of
>each other, but then you have to ask is that worth doing.  If you have to
>do anything with the set of objects, such as move it around or scale it,
>then the effect is probably too much trouble, especially on mobile.
>
>You can create a feather effect by grouping the source image with a mask
>image that contains a painted rectangular inner glow effect.  If you set
>the centerRect of the mask image to appropriate dimensions (the radius of
>glow at each corner of the image), you can resize the group and keep the
>glow effect intact with no loss of quality.
>
>FYI, you can create a transparent graphic with innerGlow using an ink
>effect.  For example, set the backColor of the graphic to black, apply a
>white innerGlow (255 opacity), and set the ink of the graphic to
>blendScreen.  This will make all black in the graphic transparent while
>keeping the white intact.  But again, the innerGlow is fairly weak.
>
>Regards,
>
>Scott Rossi
>Creative Director
>Tactile Media, UX/UI Design
>
>
>
>
>On 2/3/16, 7:38 PM, "use-livecode on behalf of Howard Bornstein"
>bornst...@designeq.com> wrote:
>
>>Yes this is true and understood. However, I've been working with
>>Brahmanathswami to find a solution for a transparent object because, as
>>he
>>says, "Any inner glow or outer glow leaves a sharp edge on the object no
>>matter what we do." (with an opaque object)
>>
>>He was looking for a way to feather images within LC and an opaque
>>graphic
>>object won't do that (as far as I can tell).
>>
>>On Wed, Feb 3, 2016 at 5:19 PM, Terry Judd 
>>wrote:
>>
>>> Hi Howard - the outerglow (and innerglow) of an object display fine for
>>>me
>>> on both a field and an (and this bit is important) *opaque* graphic
>>>object
>>> when their borderWidth and lineSize properties are respectively set to
>>>0.
>>>
>>> Terry...
>>>
>>> On 4/02/2016 11:26 am, "use-livecode on behalf of Howard Bornstein"
>>> >> bornst...@designeq.com> wrote:
>>>
>>> >As did I. What happened when you set the linesize to 0?
>>> >
>>> >On Mon, Feb 1, 2016 at 12:42 PM, Devin Asay 
>>>wrote:
>>> >
>>> >>
>>> >> > On Feb 1, 2016, at 11:53 AM, Howard Bornstein
>>>>> >
>>> >> wrote:
>>> >> >
>>> >> > If you set the line size to 0, the outer glow disappears.
>>> >>
>>> >> For what kind of object? I tested it on a graphic object.
>>> >>
>>> >> Devin
>>> >>
>>> >> Devin Asay
>>> >> Office of Digital Humanities
>>> >> Brigham Young University
>>> >>
>>> >>
>>> >> ___
>>> >> use-livecode mailing list
>>> >> use-livecode@lists.runrev.com
>>> >> Please visit this url to subscribe, unsubscribe and manage your
>>> >> subscription preferences:
>>> >> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> >>
>>> >
>>> >
>>> >
>>> >--
>>> >Regards,
>>> >
>>> >Howard Bornstein
>>> >---
>>> >www.designeq.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
>>>
>>
>>
>>
>>-- 
>>Regards,
>>
>>Howard Bornstein
>>---
>>www.designeq.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:

Re: Launching a PDF file stored within a desktop app

2016-02-03 Thread AndyP
you could start by embedding the pdf in your app in a custom property and
spit it out as required.

see this post with links to examples.

http://runtime-revolution.278305.n4.nabble.com/Ann-Save-and-Deploy-files-to-and-from-Custom-Properties-td4700387.html

  



-
Andy Piddock 


My software never has bugs. It just develops random features. 

Copy the new cloud space, get your free 15GB space now:
Get Copy 


Script editor Themer for LC http://2108.co.uk  

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Launching-a-PDF-file-stored-within-a-desktop-app-tp4700683p4700706.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: AW: Re: Regex help needed...

2016-02-03 Thread Thierry Douez
There's huge differences in how regex implementations perform in different
> languages. For example: http://raid6.com.au/~onlyjob/posts/arena/
>


​Last year, I did some experiments:

I had a 100 lines of LiveCode with a bunch of really big Regex.
It took 120 seconds on my Macbook to run.

I tried diffferent ways to write/modify the regex, and it always keep
running
around 120 seconds.


Then, using my sunnYperl external,
I copy/paste all my regex ( not one modification )
and rewrite the LC part in Perl (a bit more work but not that much).

I came down to 9 seconds.

​
Kind regards,

Thierry​



-- 

Thierry Douez - http://sunny-tdz.com
sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Mobile suspend and resume [was: Re: Multiple Mobile Shutdown Messages?]

2016-02-03 Thread Peter TB Brett

On 03/02/2016 11:31, Kevin Miller wrote:

You might also be interested to know that the whole issue with background
apps/suspend/resume will be much improved in LC 8. All this time working
on the various architecture projects is letting us address all kinds of
longstanding issues! There will still be some work to do on the part of
the developer to use this properly, we'll document what you need to do and
think about when this is ready.


You can track progress of the mobile suspend and resume feature here:

http://quality.livecode.com/show_bug.cgi?id=16829

  Peter

--
Dr Peter Brett 
LiveCode Open Source Team

LiveCode on reddit: https://reddit.com/r/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: AW: How to create a hyperlink within a text field?

2016-02-03 Thread [-hh]
Hi,

Bernd and I had once a long thread in the forum about selecting
text where we found *the selectedLoc* to be very useful.

Means here:
[1] When writing the chapters mark their offset in your text in a
separate list, one line per mark [or as metadata of each link].

[2] Then walk once through the text, select the offsets and denote
the wanted scroll based on the selectedLoc and the field's top
(you may even adjust to "centering" or "scroll-to-2nd-line" here).
Then add these scrolls to your list and lookup this list when
clicking the link [or add these scrolls to the metadata of each
link].

If you resize the field or change the textsize/the textfont of
the field then simply update the list [or the metadata of each
link].

===
Hermann

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


[ANN]SoCal LUG meeting Thurs., Feb 4

2016-02-03 Thread Richard Gaskin
The next meeting of the SoCal LiveCode User Group is tomorrow, Feb 4, at 
7PM in Pasadena.


Details in the forum:
http://forums.livecode.com/viewtopic.php?f=50=26469

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

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


Re: How to create a hyperlink within a text field?

2016-02-03 Thread Peter Brigham
A third alternative: split off the chapter title list into another field --
a list field -- and then you can just do a simple find in your text field
when the user clicks in the chapter list field.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


On Wed, Feb 3, 2016 at 8:39 AM, Tiemo Hollmann TB 
wrote:

> Alternativly I also tried to work with lineOffset and setting the vScoll of
> the field. The lineOffset gives me the number of the found textline, but
> not
> the visible line number of a scrolling field with word wrap, which can be
> resized. In such a field the "effective" line number can vary, depending on
> the current size of the field.
> Is there anything such as the "effective lineOffset", or even better a
> direct approach to scroll to the found chunck? Probably I don't see the
> obvious.
> Tiemo
>
> -Ursprüngliche Nachricht-
> Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im
> Auftrag
> von Tiemo Hollmann TB
> Gesendet: Mittwoch, 3. Februar 2016 12:07
> An: LiveCode User Liste senden 
> Betreff: How to create a hyperlink within a text field?
>
> Hello,
>
> just not to invent the wheel again. I have a long text field with a table
> of
> contents at the beginning and headlines for chapters and I would like to
> make the table of content clickable as hyperlinks, so that the user is
> forwarded to the wanted chapter in the same field.
>
> I can set the textstyle of each chapter in the table of content to "link"
> and handle the  click in "on linkClicked pLink", no problem about that.
>
> The question is, how to handle the field scrolling to the wanted chapter
> headline after clicking on the hyperlink. When using "find whole pLink in
> the target", the find command finds first the chapter headline in the table
> of content and stops at the top. I could cheat this, by doubleing the find
> command, so that the second find command goes on searching and finds the
> real chapter headline and scrolls the field to the wanted chapter.
>
> But I think that there must be a more straight forward way to realize this
> kind of hyperlink.
>
> Thanks
>
> Tiemo
>
>
>
>
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-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: access user's videos on iOS

2016-02-03 Thread Monte Goulding
Take a look at mergMP

Sent from my iPhone

> On 4 Feb 2016, at 1:38 AM, Ben Rubinstein  wrote:
> 
> We an use mobilePickMedia to access the user's audio library, and then play a 
> selected audio file.
> 
> Is there any mechanism to access the user's video library, on iOS (in 
> particular) or Android?
> 
> TIA
> 
> Ben
> 
> ___
> use-livecode mailing list
> use-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: AW: Re: Regex help needed...

2016-02-03 Thread Richard Gaskin

Thierry Douez write:


 Regex has  been around a long time
 and lots of smart computer science types has
spent time coming up with ways to optimize its performance for pattern
matching.


That's was true, it's still true and will always be true!


It's true that there are almost always ways to improve performance using 
any method, but there are times when one method may be faster than 
another so it's worth testing out, as you did here:



and here are some benchmarks
done in a late rainy sunday evening:


* Regex2 faster than Chunk by: 2.1 times*


Great results - what was the regex you used for that?



For the details:

1) Regex1 is the original regex, Chunk1 is  from Richard, Regex2 is mine.
2) You can noticed the difference in time depending on the value of pPage
( that's a normal behavior with regex)
3) I've done the calculation the same way as Richard did, so you can compare



**  aPage = 1, Same? true true
Regex1: 8943 ms
Chunk1: 210 ms
Regex2: 99 ms
Regex2 faster than orig regex by: 90.3 times
Regex2 faster than Chunk by: 2.1 times

**  aPage = 2, Same? true true
Regex1: 9946 ms
Chunk1: 212 ms
Regex2: 100 ms
Regex2 faster than orig regex by: 99.5 times
Regex2 faster than Chunk by: 2.1 times

**  aPage = 3, Same? true true
Regex1: 4451 ms
Chunk1: 210 ms
Regex2: 98 ms
Regex2 faster than orig regex by: 45.4 times
Regex2 faster than Chunk by: 2.1 times

**  aPage = 4, Same? true true
Regex1: 11465 ms
Chunk1: 200 ms
Regex2: 98 ms
Regex2 faster than orig regex by: 117 times
Regex2 faster than Chunk by: 2 times

**  aPage = 5, Same? true true
Regex1: 11457 ms
Chunk1: 201 ms
Regex2: 94 ms
Regex2 faster than orig regex by: 121.9 times
Regex2 faster than Chunk by: 2.1 times



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

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