quit with saving doesn't work

Here it is

http://apc.com/resource/include/techspec_index.cfm?base_sku=SDW%2085

bob j

I’m trying to use UI scripting (never used it). I have an open document in Word that I’m simply trying to save. I run the following script but it doesn’t do anything.

tell application "System Events"
	
	tell application process "Microsoft Word"
		
		click menu item "Save" of menu "File" of menu bar 1
		
	end tell
	
end tell

I have the UI scripting beta installed and Smile doesn’t detect an error in the above. I assume that I’m lacking a reference to the open file but not clear on how to use it in a

tell application process

bob j