Name

computer name, client.computername, kPMRPCClientComputerName, kPMObserveClientComputerName — Computer's name.

Synopsis

string client.computername( );

Description

Computer's name.

The computer name is set in the Sharing System Preferences panel.

Returns

computer name is a string.

Observable

Changes to computer name can be observed, without polling, using client.computername, kPMObserveClientComputerName.

Security

computer name can be requested by any authenticated client.

Unauthenticated clients are authorized using the uk.co.dssw.powermanager.client.computername right. By default, any local process can request computer name.

Availablility

pmdctl

Examples

Example 32. C: client.computername

CFMutableDictionaryRef myRequest = PMRequestCreate(kCFAllocatorDefault,kPMRPCClientComputerName);


Example 33. Objective-C: client.computername

DSSWPMRequest* myRequest = [DSSWPMRequest requestWithRequest:kPMRPCClientComputerName];


Example 34. AppleScript: client.computername

tell application "Power Manager Scripting"
    set myResult to computer name of Client
end tell


Example 35. Shell: client.computername

./pmctl client.computername