Open Virtual Machine using Applescript

I am trying to open Parallels then open a specific virtual machine. The following script opens parallels selects the menu item which shows a dialog box with three VM’s in it. I cannot figure out how to select one of these. I have tried counting the names but that returns error 1728.

tell application "Parallels Desktop" to activate
delay 5
tell application "System Events"
	tell application process "Parallels Desktop"
		tell menu "Window" of menu bar 1
			click menu item "virtual Machines List"
			set theName to items of menu item "Virtual machines list" as text
			display dialog (count items in theName)
		end tell
	end tell
end tell

I note there is a reference in results to application process “prl_client_app” which I have not seen before

TRied to open the actual file once parallels was running using the finder but that does not appear to work. any suggestions very much appreciated


Model: iMac 27
AppleScript: 2.5(138)
Browser: Safari 536.26.14
Operating System: Mac OS X (10.8)