MonobjcMonobjc Documented Class Library
SBApplication Constructor (pid)
NamespacesMonobjc.ScriptingBridgeSBApplicationSBApplication(Int32)

Returns an instance of an SBApplication subclass that represents the target application identified by the given process identifier.

Original signature is '- (id)initWithProcessIdentifier:(pid_t)pid'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public SBApplication(
	int pid
)
Public Sub New ( _
	pid As Integer _
)
public:
SBApplication(
	int pid
)
Parameters
pid (Int32)
A BSD process ID specifying an application that is OSA-compliant. Often you can get the process ID of a process using the processIdentifier method of NSTask.
Return Value
An initialized SBApplication that you can use to communicate with the target application specified by the process ID. 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)