Ciao Mark S., TonyM & intererested cats
Mark S., whilst I'm sure its true that "saving" TW is no longer a pressing
issue, I feel your "restore" (Nine-Lives ?) script very much to the point
in that its a *properly univera*l method that shoulkd work with any modern
browser.
I'm currently finishing up with a revised take on my previous DOS batch
file---now converted to Powershell and much better integrated with your
script.
An issue that has become clearer is the likely need for "modes" ...
*MODES*
I think practically there may be three viable "run modes" which can be all
acheived via *one *PS1 script ...
- *"auto" *mode -- This bahaves as your published script, basically as
it was when you released it. A effective loop of "check & restore."
- *"once"* mode -- So you can run a "restore" once and exit. To enable
that in your script I added a sub-clause near its end ...
if($mode -eq "once") {
echo " | $ninelives"
echo " |"
echo " | Run mode ""$mode"" completed!"
echo " |"
echo " | Closes in $closeSeconds seconds ..."
start-sleep -seconds $closeSeconds
cls
exit
}
Much to my surprise I got it working. The command line launch string simply
needs: "-run [option]" adding. For instance ...
powershell -file .\tw_nine-lives_v01bTT.ps1 -executionpolicy bypass -run
once
Works well. To garner it the *first* line of the PS1 script needs be ...
param ([string]$run)
... to capture it.
I willl post the whole script soon so you can see it working.
- *"menu"* mode -- so you can investigate what is going on, change
settings, get basic help (and also manually launch the script into "auto"
or "once" modes) ... here is what the "menu" looks like ...
PowerShell: 5.1.17763.503
+============================+
NINE-LIVES v0.1bTT
+============================+
| A - Auto-Monitor |
| O - Restore Once & Quit |
| T - TiddlyWiki |
| D - Downloads (.html/.htm) |
| E - Edit Settings |
| U - Usage |
| Q - Quit |
+============================+
? Key:
This is a mighty interesting project!
Best wishes
Josiah
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/8d0495fc-f45d-4e80-8b29-2b304f95454b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.