Hi kami
ServiceSubst = CreateUnoService("com.sun.star.util.PathSubstitution")
cheminOOO=ConvertFromURL(leServiceSubst.substituteVariables("$(insturl)",
true))
look at this
http://api.openoffice.org/docs/common/ref/com/sun/star/util/PathSubstitution.html
i did not clean correctly
this should work
Sub Main
ServiceSubst = CreateUnoService("com.sun.star.util.PathSubstitution")
theOOoPath=ConvertFromURL(ServiceSubst.substituteVariables("$(insturl)",
true))
print theOOoPath
end sub
--
Laurent Godard <[EMAIL PROTECTED]> - Ingénierie OpenOffice.org
Indesko >> http://www.indesko.com
Nuxeo CPS >> http://www.nuxeo.com - http://www.cps-project.org
Livre "Programmation OpenOffice.org", Eyrolles 2004
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]