Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > Miscellaneous > Archive > iSilo/X

Notices

 
 
Thread Tools Search this Thread
Old 02-03-2005, 12:18 PM   #1
stobs
Connoisseur
stobs is on a distinguished road
 
Posts: 62
Karma: 72
Join Date: Oct 2002
Location: Germany
Device: nook
doing isiloXC32 with Opera8

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,&quot;wisilo.bat&quot;,&quot;%25u&quot;' 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

Last edited by stobs; 07-07-2005 at 06:50 AM.
stobs is offline  
 


Forum Jump


All times are GMT -4. The time now is 03:16 AM.


MobileRead.com is a privately owned, operated and funded community.