clipboardData on Mobile?

2021-01-27 Thread Dan Friedman via use-livecode
Greetings!

Is there a way to set the clipboardData a mobile device?  (iOS and Android).

Client want's a "copy" button so they can paste the text outside of the app (in 
Notes, or a external document).


-Dan

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


Re: revCopyFolder in LC Server

2021-01-27 Thread Neville Smythe via use-livecode
Thanks Matthias. I would not have guessed that from the Documentation which 
simply says that revCopyHandler is available for “desktop,server”.

I was thinking I would just use a one-line shell call to replace the handler … 
but I suppose I should install the whole shebang

Neville
___
use-livecode mailing list
use-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: OT Friendly customers....

2021-01-27 Thread J. Landman Gay via use-livecode

On 1/26/21 12:29 PM, doc hawk via use-livecode wrote:


There was a great website years ago that I can no longer find, in which a women 
strung along one of these guys, posting what she was doing and the 
correspondence.


If you like that, you'll absolutely love this:


Hysterically funny.

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


Scheduling xAPI in LiveCode (Week 4 -5)

2021-01-27 Thread Martin Koob via use-livecode
Hi All,

I am sending this out for Brian Duck.   We are trying to see when we're all 
available for xAPI in LiveCode (Week 4 -5). 

Please visit
https://www.when2meet.com/?10848261-ZWeng
to let us know when you're available.

The Spring 2021 xAPI  Cohort starts next week with its first session on 
Thursday Feb 4, 2021 ( think the time of the session is 2:00 pm EST (-5 UTC) I 
will check and send out a confirmation) so if you are interested register for 
that as well.https://xapicohort.com/  

Members of this group have been discussing setting up a team in the xAPI cohort 
and discussing a project to pursue for that team during the spring 2021 
semester of the xAPI cohort.

Thanks,


Martin Koob
___
use-livecode mailing list
use-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: revCopyFolder in LC Server

2021-01-27 Thread matthias rebbe via use-livecode
Neville,

revCopyFolder is part of the revCommonLibary which is located in the folder 
Tools/Toolset/libraries within the LivecodeIDE app bundle (MacOS) or program 
folder (Windows).

The file revCommonLibrary.livecodescript is not included in the LivecodeServer 
Installation files by default.

You could either copy that library into your LivecodeServer folder on your 
webserver  and make use of the complete library or you just use that part that 
is needed and include that in your LivecodeServer script.

This is the complete revCopyFolder Handler from the common library

on revCopyFolder pSrcFolder, pDestFolder
   if the last char of pSrcFolder is "/" then delete the last char of pSrcFolder
   if the platform is "MacOS" then
  if "applescript" is in the alternateLanguages then
 if there is not a folder pDestFolder then
create folder pDestFolder
 end if
 do revAppleScriptFull("copyFolder",pSrcFolder,pDestFolder) as 
"applescript"
 if word 1 of the result is "folder" then
#Copy successful so don't return anything
return empty
 else
return the result
 end if
  else return "Error: AppleScript not installed"
   else if the platform is "Win32" then
  revSetWindowsShellCommand
  if there is a directory pDestFolder then
 set the itemDel to "/"
 if char -1 of pDestFolder is "/" then delete char -1 of pDestFolder
 
 local tLastItemOfSrcFolder
 put item -1 of pSrcFolder into tLastItemofSrcFolder
 put "/" & tLastItemofSrcFolder after pDestFolder
 create directory pDestFolder
  end if
  
  # TH-2008-03-11 : Fix for 5465, should remedy problem with copy sometimes 
crashing on vista
  # now use robocopy instead of xcopy if operating under vista.
  if the systemVersion is "NT 6.0" then
 get shell ("robocopy" && 
revWindowsFromUnixPath(quote) && 
revWindowsFromUnixPath(quote) && "/E /NFL /NDL /NS /NC /NJH 
/NJS")
  else
 get shell ("xcopy /I /E /Y /R" && 
revWindowsFromUnixPath(quote) && 
revWindowsFromUnixPath(quote))
  end if
  
   else
  get shell ("cp -rf" && quote && quote)
   end if
   return the result
end revCopyFolder



Regards,

-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 27.01.2021 um 13:02 schrieb Neville Smythe via use-livecode 
> :
> 
> I get a “Can’t find handler (revCopyFolder)” error in LC Server from a script 
> line
> revCopyFolder tTemplateDir,tDirPath
> 
> The script works up to that line. Is there a problem with using revCopyFolder 
> in LCServer?
> 
> Neville
> 
> ___
> use-livecode mailing list
> use-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


revCopyFolder in LC Server

2021-01-27 Thread Neville Smythe via use-livecode
I get a “Can’t find handler (revCopyFolder)” error in LC Server from a script 
line
revCopyFolder tTemplateDir,tDirPath

The script works up to that line. Is there a problem with using revCopyFolder 
in LCServer?

Neville

___
use-livecode mailing list
use-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: open secure socket... using certificate

2021-01-27 Thread Bernard Devlin via use-livecode
Hi Tom

You shouldn't get any hopes up. I'd commented in the bug report in 2014
that this was something that we'd been told was coming back in the days of
LC version 2.


I think when a development environment has failed to deliver a feature from
version 2 to version 10 that thing is never going to appear.


On Tue, Jan 26, 2021 at 9:22 PM Tom Glod via use-livecode <
use-livecode@lists.runrev.com> wrote:

> super happy to see this, hopefully it will when i need it.
> Going to look this up.
> Wondering if it will be super hard to create certificate and make it work
> on localhost sockets.
>
>
> On Tue, Jan 26, 2021 at 2:26 PM Brian Milby via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > “Using tCertificate and tKey” compiles but I don’t know how to test.  It
> > does seem like the parser doesn’t recognize those keywords.
> >
> > Sent from my iPhone
> >
> > > On Jan 26, 2021, at 2:13 PM, Bernard Devlin via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > >
> > > Thanks for the suggestion Erik, but I don't see from that how one
> > specifies
> > > the certificate.
> > >
> > > Regards, Bernard
> > >
> > >> On Tue, Jan 26, 2021 at 6:03 PM Erik Beugelaar via use-livecode <
> > >> use-livecode@lists.runrev.com> wrote:
> > >>
> > >> Maybe this:
> > >>
> > >> secure socket "livecode.com:443"
> > >>
> > >> Examples:
> > >>
> > >> https://livecode.fandom.com/wiki/Secure_socket
> > >>
> > >> -Original Message-
> > >> From: use-livecode  On Behalf
> Of
> > >> Bernard Devlin via use-livecode
> > >> Sent: dinsdag 26 januari 2021 16:40
> > >> To: How to use LiveCode 
> > >> Cc: Bernard Devlin 
> > >> Subject: Re: open secure socket... using certificate
> > >>
> > >> I did. I tried these too:
> > >>
> > >> *open* *secure* socket to "localhost:443"  using certificate tc and
> key
> > tk
> > >>
> > >> *open* *secure* socket to "localhost:443" without verification using
> > >> certificate tc and key tk
> > >>
> > >> When the above lines are entered in the script editor they are flagged
> > as
> > >> being syntax errors. In both cases it is what comes after
> "certificate"
> > >> that is flagged as a syntax error (flagged as: missing "," near "tc").
> > >> There seems to be no combination of command options that works with
> > >> certificates.
> > >>
> > >> The fact that the Dictionary has zero information about what is
> expected
> > >> for certificate/key was not a good sign, which is why I searched the
> > >> archive.  I just went to have a look at the code on Github and I can
> > seen
> > >> nothing to suggest that "using certificate and key" is implemented.
> > >>
> > >> The server and client certificate are working in a browser, so the
> > problem
> > >> is definitely on the LC side.
> > >>
> > >> On Tue, Jan 26, 2021 at 2:34 PM Brian Milby via use-livecode <
> > >> use-livecode@lists.runrev.com> wrote:
> > >>
> > >>> Did you try with “and key tKey”... it does not look like that part is
> > >>> optional.
> > >>>
> > >>> Sent from my iPhone
> > >>>
> >  On Jan 26, 2021, at 9:07 AM, Bernard Devlin via use-livecode <
> > >>> use-livecode@lists.runrev.com> wrote:
> > 
> >  According to the Dictionary in LC 9.5.1 there is this command:
> > 
> >  open secure socket [from [localHostName][:localPort]] [to] socketID
> >  [with message callbackMessage] [without verification] *[using
> >  certificate certificate and key key]*
> > 
> >  However I can't get it to work.
> > 
> >  open secure socket to "localhost:443" using certificate
> > 
> >  throws a runtime error "no handler: using"
> > 
> >  If I use
> > 
> >  open secure socket to "localhost:443"
> > 
> >  I get a socket connection, but all the security of a client
> >  certificate does not work
> > 
> > 
> >  This causes a syntax error in the IDE:
> > 
> >  open secure socket to "localhost:443" using certificate tName
> > 
> >  Looking through the archives I see that a couple of discussions
> >  where people were asking about this variant of the "open socket"
> >  command 5 to 6 years ago, *saying that the "certificate" part has
> >  not been implemented*, regardless of what the Dictionary says.
> > 
> >  Is it really the case that for the past 6 years LC documentation has
> >  been misleading people concerning the implementation of certificates
> >  for
> > >>> secure
> >  socket connections?
> > 
> >  I notice in the Dictionary the entry for "open socket" in the table
> >  of options for this command has entries for "certificate" and "key",
> >  but
> > >>> these
> >  are both empty.  As if these features were meant to be implemented
> >  but
> > >>> were
> >  never implemented and the Dictionary was never updated to remove
> >  this misleading information.
> > 
> >  I just find that hard to believe.
> > 
> >  Regards
> > 
> >  Bernard
> >  

Re: open secure socket... using certificate

2021-01-27 Thread Bernard Devlin via use-livecode
Thanks for confirming it Mark.

I feel like a sucker. I started on this project a few months ago on the
assumption that socket certificates now worked as they'd been included in
the Dictionary for years. I was away from development for a few years and
hadn't noticed the complaints that the Dictionary was misrepresenting the
situation.  Depressing to see my own name in that bug report from 7 years
ago, pointing out that secure sockets with certificates was something that
we'd been told was on the horizon in LC version 2, which must have been
around 2004.

https://quality.livecode.com/show_bug.cgi?id=13410

Regards, Bernard


On Wed, Jan 27, 2021 at 12:57 AM Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 1/26/21 6:05 AM, Bernard Devlin via use-livecode wrote:
>
> > Is it really the case that for the past 6 years LC documentation has been
> > misleading people concerning the implementation of certificates for
> secure
> > socket connections?
>
> Sadly, yes.
>
> >
> > I notice in the Dictionary the entry for "open socket" in the table of
> > options for this command has entries for "certificate" and "key", but
> these
> > are both empty.  As if these features were meant to be implemented but
> were
> > never implemented and the Dictionary was never updated to remove this
> > misleading information.
> >
> > I just find that hard to believe.
>
> https://quality.livecode.com/show_bug.cgi?id=13410
>
> although the earliest bug report seems to be from 2006:
>
> https://quality.livecode.com/show_bug.cgi?id=3737
>
> --
>   Mark Wieder
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode