[PD-dev] Tcl exec vs. Microsoft filenames

B. Bogart ben at ekran.org
Tue Jan 17 19:26:55 CET 2006


yuck, URIs don't have spaces, you put one in a web-page you its replaced
with %20 in the URI.. I guess you could have to replace spaces with %20
and see if that works.

Try just opening the file in a browser and note the URL it uses to open it.

I assume this happens on win32, but its been too long for me to know...

.b.

Hans-Christoph Steiner wrote:
>
> In u_main.tk, in the procedure menu_openhtml, this little snippet of
> code does not work when there is a space in the file name (i.e.
> C:/Program Files/pd/doc), but works fine when there are no spaces:
>
>           exec rundll32 url.dll,FileProtocolHandler \
>                 [format "file:%s" $filename] &
>
> This opens HTML, etc from the menu/help browser, so it would be most
> helpful to have it working.  I have tried a number of things to no  avail.
>
> Any Tcl-meisters want to take a stab?  Matju?
>
> .hc
>
> ________________________________________________________________________
> ____
>
>  As we enjoy great advantages from inventions of others, we should be
> glad of an opportunity to serve others by any invention of ours; and
> this we should do freely and generously.
>                                                   - Benjamin Franklin
>
>
> _______________________________________________
> PD-dev mailing list
> PD-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20060117/5e007602/attachment.pgp>


More information about the Pd-dev mailing list