<div dir="ltr"><div dir="ltr">I would create a link to a standard URI and let the browser's filetype handler decide, then set the default application settings in the browser for the filetype. If this is living on a web server then the file path would need to be appropriate. If the file needs to be local, use something like "file:///some/path/to/notes.txt".<div><br></div><div>Best,</div><div><div dir="ltr" class="gmail_signature">Ben <br><br><font size="1"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:"arial narrow",sans-serif;font-variant-numeric:normal;font-variant-east-asian:normal;line-height:normal">python -c "exec(\"import math\\nprint ''.join(map(lambda x: chr(x), ( (ord('a')-(3*5)), int(math.sqrt(math.pi*76)*5+2), int(math.ceil(math.e)*28), int(math.floor(math.e)*35), long(abs(4%3*35+3)*2))))\")"</span></font></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 31, 2019 at 10:30 AM Stephen Partington <<a href="mailto:cryptworks@gmail.com">cryptworks@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:"trebuchet ms",sans-serif">HTML? no. Javascript? possible. Most of the web is really designed to not allow this. There are some powerful JS writers, LibreOffice in the web and more. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 31, 2019 at 10:16 AM Joe Lowder <<a href="mailto:joe@actionline.com" target="_blank">joe@actionline.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Is it possible to write (the simplest possible)<br>
html code that will open a text file from a simple<br>
menu entry using the 'kwrite' editor ... that will<br>
allow me to write and edit in a pre-named text file<br>
and save the changes?<br>
<br>
I do this now from the command line:<br>
<br>
$ kwrite filename <E><br>
<br>
But I would like to be able to do it by simply<br>
clicking on an entry in a simple html menu.<br>
<br>
These attempts do not work:<br>
<li><a href=file:/home/joe/notes>open notes text file</a><br>
<li><a href="exec kwrite notes">open notes with kwrite</a><br>
<li><a href="exec /usr/bin/kwrite notes">open notes with exec</a><br>
<br>
<br>
<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_5645876038704879640gmail_signature">A mouse trap, placed on top of your alarm clock, will prevent you from rolling over and going back to sleep after you hit the snooze button.<br><br>Stephen<br><br></div>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></blockquote></div><br clear="all"><div><br></div><br><div dir="ltr" class="gmail_signature"><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;color:black;text-align:left;line-height:130%"></div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;color:black;font-size:10px;text-align:left;line-height:130%"></div></div></div>