This is a legacy guide for Power Manager v3, published 2005 – 2010, and is provided for reference only.
The latest guide is for Power Manager v5.10.6.

Scripting Build and Licence Details

Power Manager Version

Get Power Manager’s version details. i.e. powermanagerd v3.6.0

tell application "Power Manager Scripting"
    set myVersion to version of build
end tell

Licenced Copy

Displays a thank you dialog box if the user has licensed Power Manager.

tell application "Power Manager Scripting"
    if the state of the licence of build is licensed then
    	display dialog "Thank you " & name of licence of build
    end if
end tell

Demonstration Expiry Date

Displays a dialog box showing the demonstration expiry date.

tell application "Power Manager Scripting"
    if the state of the licence of build is demonstration then
    	display dialog "Your demo expires " & expires of licence of build
    end if
end tell

Apply Licence Code

Set the licence details and code for Power Manager.

tell application "Power Manager Scripting"	
    tell build
    	setlicence name "Graham Miln" organisation "Personal" code "PM3-..."
    end tell	
end tell

Useful for automating installations and avoiding typographical mistakes.