Printing existing pdf from O$ 8.3 Mac

Paul Mulroney pmulroney at
Sun Aug 22 23:50:48 UTC 2021

Hi Ben,

What happens if you use "Tell application "Finder" print <file>"?

Does that work any better?


> On 22 Aug 2021, at 5:18 am, Ben Weinberg <ben at> wrote:
> Hi Listers:
> I’m printing existing pdfs using the method:
> Begin text block
> Text: tell application "Preview" (Carriage return)
> Text: activate (Carriage return)
> Text: print (POSIX file "[lFilePath]") (Carriage return)
> Text: close (POSIX file "[lFilePath]") (Carriage return)
> Text: quit (Carriage return)
> Text: end tell (Carriage return)
> End text block
> Get text block lScriptText
> Do $runapplescript(lScriptText)
> The file does print but is clipped because of margins being too big.  The pdf’s margins are not respected.
> Manual method:
> When I double-click on the pdf, it opens in Preview and prints with much smaller margins so it is not clipped.  The pdf’s margin settings are respected.
> Is there a better way?
> I have tried the AppleScript above but using PDFpen, which will print the pdf correctly, but then hang the Omnis method until I manually quit PDFpen.
> Ben Weinberg
> _____________________________________________________________
> Manage your list subscriptions at
> Start a new message -> mailto:omnisdev-en at 

Q: Why do seagulls live near the sea?
A: Because if they lived near the bay they'd be bagels. 
Paul W. Mulroney                                            We Don't Do Simple Pty Ltd 
pmulroney at       Trading as Logical Developments                   ACN 161 009 374 
Ph: +61 8 9458 3889                                       86 Coolgardie Street
                                                                         BENTLEY  WA  6102

More information about the omnisdev-en mailing list