macoscomputername
COMPUTER

The macoscomputername statement returns the name of this computer.


Parameters

This statement has one parameter:

computer – Field or variable to receive the name.


Description

This statement returns the name of this computer. This name can be used as a target for AppleScripts. This example sends a message to the copy of Panorama Server running on the current machine, if any.

local cn
macoscomputername cn
executeapplescript {tell "Panorama Server" on machine }+applescriptstring(cn)

Note: This example is actually incomplete, as the script doesn’t tell Panorama Server anything.


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.