Check if Indesign Document has Bleed

Hi All

I need to test if a Indesign document has bleed, I’m trying the following but having no luck.

tell application "Adobe InDesign CS4"
	activate
	tell active document
		if bleed top of document preferences is greater than 0 then
			display dialog "YES"
		else
			display dialog "NO"
			
		end if
	end tell
end tell

many thanks

LJ

Hi LJ,

Try this:

tell application "Adobe InDesign CS4"
	activate
	if (document bleed top offset of document preferences of document 1) > 0 then
		display dialog "YES"
	else
		display dialog "NO"
	end if
end tell

Thanks,
Nik

Thanks for this - works Great!

LJ