Hallo,
I like opera.
So I have a problem to convert the actual displayed Page to iSilo.
I wrote the following batch file to archive that task: wisilo.bat (Windows NT,2k,XP)
One needs some external programs for that:
wget.exe isiloc32.exe, optional: palmclis, rm (or use 'del')
In Opera I add an bottom with this html-command:
Quote:
<html>
<a href='opera:/button/Execute program,"wisilo.bat","%25u"' title='iSilo'>convert actual page with isilo</a>
</html>
|
The problem is I did not manage to set a isilox-title to the Page, you can let isilo generate the title, but that is not stringently uniq.
So I just use the date and time (only one conversion per minute is uniq).
And a big Problem, it does not handle the special characters ";" in an URL correctly. So it is not possible to convert a link like:
http://www.spiegel.de/0;00.html
Any hints?
Perhaps VBS would be a better choice?
wisilo.cmd:
Quote:
@echo off
rem by Stefan Schwingeler
echo url=%*
rem pause
rem goto ende
set uservz=d:\Programme\Palm\UserName\
set tmp=c:\temp\
d:
cd %tmp%
set url=%*
set titel=
rem if "%titel%"=="" goto error
for /f "tokens=2,3,4* delims=. " %%i in ('date /t') do set datum=%%k_%%j_%%i
rem for /f "tokens=1,2* delims=: " %%i in ('time /t') do set zeit=%%i_%%j
for /f "tokens=1,2,3* delims=:, " %%i in ("%time%") do set zeit=%%i%%j%%k
if "%titel%"=="" set titel=%datum%_%zeit%
rm -f %tmp%%titel%
wget %url% -O %tmp%%titel%
isiloc32 -i%titel% -y %tmp%%titel%
rm -f %tmp%%titel%
mv -f %titel%.pdb %uservz%iSiloI\
palmclis -f -s
dir %uservz%iSiloI\
palmclis -lz
wait 10
goto ende
:error
echo url=%url%
echo titel=%titl%
echo use: %0 URL Titel
:ende
|