Acrobat Professional printing in 10.3.5

:oops: Hi,

I’m new to scripting OS X and I’m trying to automatically print PDFs through folder actions and Acrobat Professional 6. This is on an XServe running 10.3.5. The folder action works up to a point - but I get the print dialog window and this won’t close automatically - it needs someone to press the okay button or hit return. That done, the script continues as required.

Does anyone know how to get Acrobat to print automatically (just page 1 of the frontmost document) without any user interaction? Help!!

[color=darkred]on adding folder items to this_folder after receiving these_items

try
	repeat with i from 1 to number of items in these_items
		set this_item to item i of these_items
		set the item_info to the info for this_item
		tell application "Acrobat 6.0 Professional"
			activate
			open this_item
			print this_item with shrink to fit
			close this_item
		end tell
	end repeat
on error error_message number error_number
	"" -- don't do anything
end try

end adding folder items to [/color]