On Feb 14, 2006, at 8:26 , Keith Hutchison wrote:
Any ideas/examples showing how to find path(s) of a given app name?
eg winvnc.exe and OSXvnc
RB5.5.5 Win32 and MacOSX
--
Keith Hutchison
http://balance-infosystems.com http://realopen.org
ON OS X
This return the FolderItem
appID = The application filecreator
------------------------------------------------------------------------
------
Method Name : FindApp
Parameters: appID as String
Returntype: Folderitem
Dim appFile, newFile As FolderItem
Dim findmyApp As AppleEvent
Dim o1 As AppleEventObjectSpecifier
appFile = Nil
findmyApp = NewAppleEvent("core", "getd", "MACS")
o1=GetUniqueIDObjectDescriptor("appf", nil, appID)
findmyApp.MacTypeParam("rtyp")="alis"
findmyApp.objectSpecifierParam("----")=o1
if findmyApp.Send then
appFile = findmyApp.ReplyFolderItem
end if
return appFile
Sven E Olsson
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>