Scripting the Client
Sample AppleScripts for scripting Power Manager's client.
Get the Local Host Name
Get the client’s local host name. This was previously called the Computer Name.
tell application "Power Manager"
display dialog "This computer is " & local host name of Client & "."
end tell
Get the Computer Model
Get the client’s computer model. The machine model is a unique identifier for each kind of computer i.e. MacPro4,1
.
tell application "Power Manager"
set myModel to Client's machine model
end tell
Get the Primary Network Interface
Get the primary ethernet interface.
tell application "Power Manager"
set myAddress to Client's ethernet address
end tell
List the Network Interfaces
Get a list of available ethernet interfaces.
tell application "Power Manager"
set myAddresses to Client's ethernet addresses
end tell