System Prefs Scripting

I have been trying for hours to write a script that adds an item to the login items in the Accounts pane and cannot get it to work. I can get to the Accounts pane but I can’t seem to figure out how to get to the login Items tab. I either get a syntax error or a you do not have access error. Anyone have any ideas?

This one was a little tricky - but here you go:

tell application "System Events"
	make new login item at end with properties {path:"/Applications/Address", name:"Address Book", hidden:missing value, kind:"Application"}
end tell

the key part is the “AT END” - took me a few minutes to get that right.