How to Remove Guides in a Quark document?

Hi All,

I need a script to Remove all the Guides from the Quark document, which is actually in Quark Menu>>Utilities>>Guide Manager>>Remove or Lock Guides.

I searched all dictionary and forums but, I don’t find any references yet. If anyone knows this script please let me know it is more helpful to me.

Thanks in Advance!!!

GK

Back in the old days following code worked:


tell application "QuarkXPressâ„¢"
	tell page 1 of document 1
		if every vertical guide exists then
			delete every vertical guide
		end if
		if every horizontal guide exists then
			delete every horizontal guide
		end if
	end tell
end tell