MonobjcMonobjc Documented Class Library
ApplicationWithProcessIdentifier Method (pid)
NamespacesMonobjc.ScriptingBridgeSBApplicationApplicationWithProcessIdentifier(Int32)

Returns the shared instance representing a target application specified by its process identifier.

Original signature is '+ (id)applicationWithProcessIdentifier:(pid_t)pid'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static SBApplication ApplicationWithProcessIdentifier(
	int pid
)
Public Shared Function ApplicationWithProcessIdentifier ( _
	pid As Integer _
) As SBApplication
public:
static SBApplication^ ApplicationWithProcessIdentifier(
	int pid
)
Parameters
pid (Int32)
The BSD process ID of a OSA-compliant application. Often you can get the process ID of a process using the processIdentifier method of NSTask.
Return Value
An instance of an SBApplication subclass that represents the target application whose process identifier is pid. Returns nil if no such application can be found or if the application does not have a scripting interface.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.ScriptingBridge (Module: Monobjc.ScriptingBridge)