Re: LeoJS - How To Write To File System And Run External Programs

2024-01-03 Thread Félix
I'm going to take a coding break by doing a tutorial exactly about that!

On Wednesday, January 3, 2024 at 4:56:12 PM UTC-5 tbp1...@gmail.com wrote:

> Now That leoJS is getting into pretty good shape - and Felix must need a 
> month's vacation! - I am thinking about plugins and scripts that can do 
> things that are easy to do from within Leo. Specifically, scripts that can 
> read and write files from the file system, and files that do the equivalent 
> of subprocess.run() or subprocess.Popen().  In addition (or maybe it's in 
> the same group), scripts that launch a web browser on a specified file.
>
> Is there somewhere we can read up on these things, that is, how a leoJS 
> script can do them in javascript/typescript?
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/817c5de4-4656-401c-a88b-b18f9a640341n%40googlegroups.com.


Re: LeoJS - How To Write To File System And Run External Programs

2024-01-03 Thread Thomas Passin
Yay!

On Wednesday, January 3, 2024 at 7:12:26 PM UTC-5 Félix wrote:

> I'm going to take a coding break by doing a tutorial exactly about that!
>
> On Wednesday, January 3, 2024 at 4:56:12 PM UTC-5 tbp1...@gmail.com wrote:
>
>> Now That leoJS is getting into pretty good shape - and Felix must need a 
>> month's vacation! - I am thinking about plugins and scripts that can do 
>> things that are easy to do from within Leo. Specifically, scripts that can 
>> read and write files from the file system, and files that do the equivalent 
>> of subprocess.run() or subprocess.Popen().  In addition (or maybe it's in 
>> the same group), scripts that launch a web browser on a specified file.
>>
>> Is there somewhere we can read up on these things, that is, how a leoJS 
>> script can do them in javascript/typescript?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/074f8a79-01d6-4bf0-94e6-6a8ebab90d43n%40googlegroups.com.


Re: LeoJS - How To Write To File System And Run External Programs

2024-03-09 Thread Félix
I'm still working on this! Thanks for your patience :) 
  
(The latest LeoJS 0.2.12 release is the result of trying to capture many 
features for that video tutorial, and realizing that they needed a bit of 
polishing!)

Félix

On Wednesday, January 3, 2024 at 7:18:33 PM UTC-5 tbp1...@gmail.com wrote:

> Yay!
>
> On Wednesday, January 3, 2024 at 7:12:26 PM UTC-5 Félix wrote:
>
>> I'm going to take a coding break by doing a tutorial exactly about that!
>>
>> On Wednesday, January 3, 2024 at 4:56:12 PM UTC-5 tbp1...@gmail.com 
>> wrote:
>>
>>> Now That leoJS is getting into pretty good shape - and Felix must need a 
>>> month's vacation! - I am thinking about plugins and scripts that can do 
>>> things that are easy to do from within Leo. Specifically, scripts that can 
>>> read and write files from the file system, and files that do the equivalent 
>>> of subprocess.run() or subprocess.Popen().  In addition (or maybe it's in 
>>> the same group), scripts that launch a web browser on a specified file.
>>>
>>> Is there somewhere we can read up on these things, that is, how a leoJS 
>>> script can do them in javascript/typescript?
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/920a648f-9a81-4142-aec1-5a2e8546fbe4n%40googlegroups.com.


Re: LeoJS - How To Write To File System And Run External Programs

2024-03-09 Thread Thomas Passin
I don't know if you got around to thinking about it yet (you've got so much 
else going on!), but the command I wrote to run external files is in 
LeoPyRef and it's called *execute-external-file*.  It has some trickiness 
because it has to run on Linux as well as Windows, and the terminal 
commands to launch programs differ among the distros. The code has to try 
some empirical hacks to figure it all out. But it ought to port to TS 
pretty easily, I would think.

On Saturday, March 9, 2024 at 9:46:57 PM UTC-5 Félix wrote:

> I'm still working on this! Thanks for your patience :) 
>   
> (The latest LeoJS 0.2.12 release is the result of trying to capture many 
> features for that video tutorial, and realizing that they needed a bit of 
> polishing!)
>
> Félix
>
> On Wednesday, January 3, 2024 at 7:18:33 PM UTC-5 tbp1...@gmail.com wrote:
>
>> Yay!
>>
>> On Wednesday, January 3, 2024 at 7:12:26 PM UTC-5 Félix wrote:
>>
>>> I'm going to take a coding break by doing a tutorial exactly about that!
>>>
>>> On Wednesday, January 3, 2024 at 4:56:12 PM UTC-5 tbp1...@gmail.com 
>>> wrote:
>>>
 Now That leoJS is getting into pretty good shape - and Felix must need 
 a month's vacation! - I am thinking about plugins and scripts that can do 
 things that are easy to do from within Leo. Specifically, scripts that can 
 read and write files from the file system, and files that do the 
 equivalent 
 of subprocess.run() or subprocess.Popen().  In addition (or maybe it's in 
 the same group), scripts that launch a web browser on a specified file.

 Is there somewhere we can read up on these things, that is, how a leoJS 
 script can do them in javascript/typescript?

>>>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/1d5176ef-3bc9-4175-97e5-7bc8f5606da2n%40googlegroups.com.


Re: LeoJS - How To Write To File System And Run External Programs

2024-03-10 Thread Félix
>  e*xecute-external-file*


I'll check it out :)

Félix



On Saturday, March 9, 2024 at 10:20:38 PM UTC-5 tbp1...@gmail.com wrote:

> I don't know if you got around to thinking about it yet (you've got so 
> much else going on!), but the command I wrote to run external files is in 
> LeoPyRef and it's called *execute-external-file*.  It has some trickiness 
> because it has to run on Linux as well as Windows, and the terminal 
> commands to launch programs differ among the distros. The code has to try 
> some empirical hacks to figure it all out. But it ought to port to TS 
> pretty easily, I would think.
>
> On Saturday, March 9, 2024 at 9:46:57 PM UTC-5 Félix wrote:
>
>> I'm still working on this! Thanks for your patience :) 
>>   
>> (The latest LeoJS 0.2.12 release is the result of trying to capture many 
>> features for that video tutorial, and realizing that they needed a bit of 
>> polishing!)
>>
>> Félix
>>
>> On Wednesday, January 3, 2024 at 7:18:33 PM UTC-5 tbp1...@gmail.com 
>> wrote:
>>
>>> Yay!
>>>
>>> On Wednesday, January 3, 2024 at 7:12:26 PM UTC-5 Félix wrote:
>>>
 I'm going to take a coding break by doing a tutorial exactly about that!

 On Wednesday, January 3, 2024 at 4:56:12 PM UTC-5 tbp1...@gmail.com 
 wrote:

> Now That leoJS is getting into pretty good shape - and Felix must need 
> a month's vacation! - I am thinking about plugins and scripts that can do 
> things that are easy to do from within Leo. Specifically, scripts that 
> can 
> read and write files from the file system, and files that do the 
> equivalent 
> of subprocess.run() or subprocess.Popen().  In addition (or maybe it's in 
> the same group), scripts that launch a web browser on a specified file.
>
> Is there somewhere we can read up on these things, that is, how a 
> leoJS script can do them in javascript/typescript?
>


-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/8e5785f1-6178-43e2-ad20-137a024b6b93n%40googlegroups.com.


Re: LeoJS - How To Write To File System And Run External Programs

2024-03-31 Thread Félix
The video tutorial is now available! :)

https://www.youtube.com/watch?v=M_mKXSbVGdE

I'll address the specific issue about starting sub processes shortly when I 
do the  'e*xecute-external-file'  *function in LeoJS.

Félix

On Monday, March 11, 2024 at 1:01:43 AM UTC-4 Félix wrote:

> >  e*xecute-external-file*
>
>
> I'll check it out :)
>
> Félix
>
>
>
> On Saturday, March 9, 2024 at 10:20:38 PM UTC-5 tbp1...@gmail.com wrote:
>
>> I don't know if you got around to thinking about it yet (you've got so 
>> much else going on!), but the command I wrote to run external files is in 
>> LeoPyRef and it's called *execute-external-file*.  It has some 
>> trickiness because it has to run on Linux as well as Windows, and the 
>> terminal commands to launch programs differ among the distros. The code has 
>> to try some empirical hacks to figure it all out. But it ought to port to 
>> TS pretty easily, I would think.
>>
>> On Saturday, March 9, 2024 at 9:46:57 PM UTC-5 Félix wrote:
>>
>>> I'm still working on this! Thanks for your patience :) 
>>>   
>>> (The latest LeoJS 0.2.12 release is the result of trying to capture many 
>>> features for that video tutorial, and realizing that they needed a bit of 
>>> polishing!)
>>>
>>> Félix
>>>
>>> On Wednesday, January 3, 2024 at 7:18:33 PM UTC-5 tbp1...@gmail.com 
>>> wrote:
>>>
 Yay!

 On Wednesday, January 3, 2024 at 7:12:26 PM UTC-5 Félix wrote:

> I'm going to take a coding break by doing a tutorial exactly about 
> that!
>
> On Wednesday, January 3, 2024 at 4:56:12 PM UTC-5 tbp1...@gmail.com 
> wrote:
>
>> Now That leoJS is getting into pretty good shape - and Felix must 
>> need a month's vacation! - I am thinking about plugins and scripts that 
>> can 
>> do things that are easy to do from within Leo. Specifically, scripts 
>> that 
>> can read and write files from the file system, and files that do the 
>> equivalent of subprocess.run() or subprocess.Popen().  In addition (or 
>> maybe it's in the same group), scripts that launch a web browser on a 
>> specified file.
>>
>> Is there somewhere we can read up on these things, that is, how a 
>> leoJS script can do them in javascript/typescript?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/562ed4a8-b976-4c74-9a7e-88df8d012545n%40googlegroups.com.


Re: LeoJS - How To Write To File System And Run External Programs

2024-03-31 Thread HaveF HaveF
> The video tutorial is now available! :)
>
> https://www.youtube.com/watch?v=M_mKXSbVGdE
>
Félix, Nice video, I like it!

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CA%2BUQrQwHEdtKaiqT7%3DhfTrMP-zFo_4SXFtUjY4cny0Jw9-BY%3Dw%40mail.gmail.com.


Re: LeoJS - How To Write To File System And Run External Programs

2024-04-01 Thread Félix
Thanks! I just realized that the scripts samples have many use cases but no 
'explicit' examples of How To Write To File System And Run External 
Programs per say. (although some access files to read from them) So I'll 
add to the script samples repository shortly to remedy this situation.

On Monday, April 1, 2024 at 12:38:14 AM UTC-4 iamap...@gmail.com wrote:

> The video tutorial is now available! :)
>>
>> https://www.youtube.com/watch?v=M_mKXSbVGdE
>>
> Félix, Nice video, I like it! 
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/7624ca3b-b9ab-41b2-9202-942ad7fa2834n%40googlegroups.com.