Hi Ariel,

Il sabato 14 giugno 2008 22:13:45 Ariel Constenla-Haile ha scritto:
[....]
> http://api.openoffice.org/docs/common/ref/com/sun/star/script/provider/Scri
>ptURIHelper.html for the service description ("This service is used to help
> transform Scripting Framework storage locations to Scripting Framework
> script URIs and vice versa."), this *seems* to be what you're looking for
> (didn't try it yet in Basic, as there is no simple way to instantiate a
> new-style service here; 

I must admit that I don't know the exact meaning of "new-style service" but 
I've tried with createInstanceWithArguments on the service manager and it 
seems to work:

-----------------------------------------
REM  *****  BASIC  *****

Sub Test
oSM = GetProcessServiceManager()
sSrvc = "com.sun.star.script.provider.ScriptURIHelper"
mArgs() = Array("Python", "share")
oScriptURIHelper = oSM.createInstanceWithArguments(sSrvc, mArgs())

s = _
"vnd.sun.star.script:HelloWord.py$HelloWordPython?language=Python&location=share"
s = oScriptURIHelper.getStorageURI(s)
Print s

s = oScriptURIHelper.getScriptURI(s)
Print s

End Sub
-----------------------------------------


ciao
Paolo Mantovani




 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to