I have a simple one page PDF as a test document that I’m trying to print using AppleEvents. It does print, however it takes 25-30 seconds for AppleEvent.Send to finish whatever its doing.
The code looks like this
dim ae as AppleEvent
ae = New AppleEvent("aevt", "pdoc", "com.apple.finder")
ae.FolderItemParam("----") = File //A simple 1 page PDF
if not ae.Send() then
MsgBox("Printing failed!")
end if
Thanks Norman, I assume you meant setting a the timeout property on the AppleEvent instance. As long as I don’t care that the event was received or not, this seems to work ok.