Illustrator CS4 lock guides

Is there anyway in Illustrator CS4 to lock the guides without using System Events. The issue with System events is that sometimes the guides are already locked to using the following will unlock them :frowning: I did not see anything revealing in the dictionary in regards to guides and their properties.

tell application "System Events"
	tell application process "Adobe Illustrator CS4"
		try
			set frontmost to true
			tell menu bar 1
				tell menu bar item "View"
					tell menu 1
						tell menu item "Guides"
							tell menu 1
								click menu item "Lock Guides"
							end tell
						end tell
					end tell
				end tell
			end tell
		end try
	end tell
end tell

A guide is just a path item with its guides property set to true; you lock and unlock them by setting their locked property. No nned to go near System Events for this.

Ah yes, I was going about this entirely wrong. I was able to lock the guides upon their creation of the rectangles I made. Thank you again Shane.

-Jeff