clicking the button Change Password in System Preferences Accounts

Hi

I’m trying to workout how to click the Change Password… button in System Preferences Accounts window

I have this so far but it doesn’t seem to like the Press Button

Can anyone help?

– OPEN SYSTEM PREFERENCES
tell application “System Preferences”
activate

--- OPEN ACCOUNTS PREFERENCE PANE
set the current pane to pane "Accounts"

end tell
tell application “System Events”
tell process “System Preferences”
Press button “Change Password…” of window “Accounts”
end tell
end tell

Hi,

this works in Leopard running a US english system


tell application "System Preferences"
	activate
	reveal anchor "passwordPref" of pane id "com.apple.preferences.users"
end tell

tell application "System Events"
	tell process "System Preferences"
		click button "Change Password." of tab group 1 of window "Accounts"
	end tell
end tell

Thanks Stefan that worked great!