Scripting Apple Remote Desktop.

I’m trying to run a script that will open Apple Remote Desktop and then either control or observe a specified machine.

What I have so far and from what I under stand should work.


tell application "Remote Desktop"
	activate
	observe item "10.0.0.200"
end tell

This does not seem to work so I tried setting the ip address as a varible and that seemed to have the same problem.


set server to "10.0.0.200"

tell application "Remote Desktop"
	activate
	observe item server
end tell

Any ideas?

This seems to work for me:-


tell application "Remote Desktop"
	activate
	set oB to first computer of computer list "All Computers" whose Internet address is "10.0.0.200"
	observe oB
end tell

Hope that helps.

Or even…


tell application "Remote Desktop"
	activate
	observe (first computer of computer list "All Computers" whose Internet address is "10.0.0.200")
end tell