Am 30.06.2011 um 12:29 schrieb Arnaud Nicolet:
> Greetings,
>
> I've put a breakpoint just after "i=new InternetConfigMBS" to see the
> properties. CanRead equals to false but some properties are filled
> (like the DownloadFolder). The property I want ("ICEmail") is empty.
> I'm wondering whether InternetConfig is actually available in Mac OS X
> (I know it comes from Mac OS 9).
I think it's deprecated by Apple for some time now.
Use LaunchServicesDefaultHandlerForURLSchemeMBS. Maybe like this:
dim s as string = LaunchServicesDefaultHandlerForURLSchemeMBS("http")
if len(s) = 0 then
MsgBox "undefined."
else
dim f as FolderItem = LaunchServicesFindApplicationForInfoMBS("", s, "")
if f<>Nil then
MsgBox f.AbsolutePath
end if
end if
LaunchServicesDefaultHandlerForURLSchemeMBS gives you the bundle id of the
application. And LaunchServicesFindApplicationForInfoMBS gives the application
for the bundle ID.
Greetings
Christian
--
Read our blog about news on our plugins:
http://www.mbsplugins.de/
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info