Re: LC Server: shebang breaks tags?

2020-02-07 Thread Brian Milby via use-livecode
Can’t answer regarding the design decision, but here is the pertinent line:

One recent feature that was introduced in LiveCode 6.6 was the ability to use 
hashbangs (#! /path/to/livecode) in LiveCode server scripts instead of script 
open and close tags ().

Of note is the “instead of” statement which leads me to believe that it was 
designed that way.  It makes sense if trying to use it for automation since you 
don’t need the code tags.

I would guess that a command line parameter could be added to have it work the 
other way.

Thanks,
Brian
On Feb 7, 2020, 11:05 PM -0500, Richard Gaskin via use-livecode 
, wrote:
> LC Server 6.6 and later allows you to use LC as you would other system
> utility languages, by including the path to the engine on the first line
> following a shebang - see discussion here:
> https://livecode.com/livecode-server/
>
> This lets us use the old MetaCard style with command line scripts,
> without needing to put "" around the code.
>
> But oddly, it seems that running a script this way not only doesn't need
> to comment wrappers, it actually tries to execute them - and of course
> fails.
>
> For example, this script:
>
> #! ./lcs
>
>  put the long date && the long time
> ?>
>
> ...throws this error:
>
> row 3, col 1: script: not a command (<)
>
>
> Weirder, I've found that if I omit the shebang and call the engine
> directly in the path on the command line it runs well:
>
> ./lcs test.lc
>
> What is it about the shebang that's breaking execution in comment blocks?
>
> I have a need to embed code within larger blocks of non-code, and had
> considered using LC Server as a helper app for that.* It doesn't matter
> much to me if I launch it with the app path or not, but since most of my
> systems have LC Server installed for general use it would be nice to use
> the shebang method. So this seeming anomaly is certainly not critical,
> just odd.
>
>
>
> * Yes, I know I can use the merge function for this, but LC desktop's
> merge is far more limited to the implicit merge that happens when using
> LC Server.
>
> The merge function doesn't continue code execution across blocks of code
> separated by non-code, whereas LC Server does this well:
>
> 
> This is some non-code
> 
> Some other non-code
> 
>
> Maybe we could have the desktop merge function expanded to work like
> Server's implicit merge? That would be most awesome.
>
> --
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.com http://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


LC Server: shebang breaks tags?

2020-02-07 Thread Richard Gaskin via use-livecode
LC Server 6.6 and later allows you to use LC as you would other system 
utility languages, by including the path to the engine on the first line 
following a shebang - see discussion here:

https://livecode.com/livecode-server/

This lets us use the old MetaCard style with command line scripts, 
without needing to put "" around the code.


But oddly, it seems that running a script this way not only doesn't need 
to comment wrappers, it actually tries to execute them - and of course 
fails.


For example, this script:

#! ./lcs



...throws this error:

   row 3, col 1: script: not a command (<)


Weirder, I've found that if I omit the shebang and call the engine 
directly in the path on the command line it runs well:


  ./lcs test.lc

What is it about the shebang that's breaking execution in comment blocks?

I have a need to embed code within larger blocks of non-code, and had 
considered using LC Server as a helper app for that.* It doesn't matter 
much to me if I launch it with the app path or not, but since most of my 
systems have LC Server installed for general use it would be nice to use 
the shebang method.  So this seeming anomaly is certainly not critical, 
just odd.




* Yes, I know I can use the merge function for this, but LC desktop's 
merge is far more limited to the implicit merge that happens when using 
LC Server.


The merge function doesn't continue code execution across blocks of code 
separated by non-code, whereas LC Server does this well:



This is some non-code

Some other non-code


Maybe we could have the desktop merge function expanded to work like 
Server's implicit merge?  That would be most awesome.


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

2020-02-07 Thread Matthias Rebbe via use-livecode
Not yet, but for a prototype i played around with tsNet and Webdav some time 
ago.

I used

tsNetGetSync to list the content of a folder

tsNetCustomSync to do actions like delete, create and so on

tsNetUploadfilesync for uploading

Worked fine so far, but i did not work further on it, because the customer 
decided to put the final project on hold for  some time.

-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 07.02.2020 um 19:11 schrieb Richard Gaskin via use-livecode 
> :
> 
> Anyone have a client library for working with a WebDAV server in LC?
> 
> Bonus (not needed now, but might be fun down the road): Anyone have a library 
> for implementing WebDAV in LC Server?
> 
> -- 
> 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


WebDAV

2020-02-07 Thread Richard Gaskin via use-livecode

Anyone have a client library for working with a WebDAV server in LC?

Bonus (not needed now, but might be fun down the road): Anyone have a 
library for implementing WebDAV in LC Server?


--
 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: OT: Completely OT: Reading list recommendations.

2020-02-07 Thread Richard Gaskin via use-livecode

Alex Tweedly wrote:

> Hopefully I'll find 3 books
>
>   - a techie one

Rapid Development by Steve McConnell


>   - a non-techie non-fiction one

Critical Path by R. Buckminster Fuller


>   - fiction - preferably fairly light, easy reading

Hippolyte's Island by Barbara Hodgson


--
 Richard Gaskin
 Fourth World Systems


___
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: Completely OT: Reading list recommendations.

2020-02-07 Thread Lagi Pittas via use-livecode
Techie ones without any problem solving involved and they could actually be
Novels - you feel that you are there rooting for the
participants in both "stories"

Surely Your Joking Mr Feynman
What Do You Care what other people think

The Eudaemonic Pie by Thomas Bass
The Soul of a new machine by Tracy Kidder
The Cuckoos egg by Cliff Stoll is also good but Not available in Kindle

I've read them all  - not to everyone's tastes but
I find fiction these so samey - Always the "Heroes Journey" in a different
form - same meat different gravy - discuss!

HHGTTG - now that's different kettle of fish

Lagi





On Thu, 6 Feb 2020 at 17:35, Alex Tweedly via use-livecode <
use-livecode@lists.runrev.com> wrote:

> So, I'm going on a train journey tomorrow and the next day. Three or
> four hours each day, scenery I've seen a million times already 
>
> Hoping for suggestions to keep me reading while on the way.
>
> Requirements.
>
> 1. MUST be on kindle (or iBooks or similar).
>
> 2. Hopefully I'll find 3 books
>
>   - a techie one
>
>   - a non-techie non-fiction one
>
>   - fiction - preferably fairly light, easy reading (as a break from the
> others above).
>
> I know you guys can give me better recommendations than Amazon can -)
>
> Many thanks,
>
> Alex.
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: OT: Completely OT: Reading list recommendations.

2020-02-07 Thread Martin Koob via use-livecode
Hi

My favourite book of fiction (science fiction) is Isaac Asimov’s Foundation 
Trilogy,  Perhaps a bit long for your journey.   I have read it a few times 
along with looking for the sequels and prequels.
(It is currently underproduction for an Apple TV+ series.   I am half in hope 
it will be amazing and half in dread of that it will be awful.)

For Non fiction I recently read “Born a Crime” by Trevor Noah of Daily show 
fame. I really enjoyed that. Funny and poignant stories of growing up in South 
africa.   Really more a story about his mother than him.  


They are both on Kindle


Regards,

Martin Koob





> On Feb 6, 2020, at 12:34 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> So, I'm going on a train journey tomorrow and the next day. Three or four 
> hours each day, scenery I've seen a million times already 
> 
> Hoping for suggestions to keep me reading while on the way.
> 
> Requirements.
> 
> 1. MUST be on kindle (or iBooks or similar).
> 
> 2. Hopefully I'll find 3 books
> 
>  - a techie one
> 
>  - a non-techie non-fiction one
> 
>  - fiction - preferably fairly light, easy reading (as a break from the 
> others above).
> 
> I know you guys can give me better recommendations than Amazon can -)
> 
> Many thanks,
> 
> Alex.
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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