How to print-to-file using Applescript?

R

rbultje

Version: 2008
Operating System: Mac OS X 10.4 (Tiger)
Processor: Intel

Hi,

I'm trying to do some applescripting for fun. I use the Apple Script editor to do this. One thing I'd like to do is use the print out command to print to a file. I use the following code:

tell application "Microsoft Powerpoint"
print out active presentation print to file "/Users/Shared/test.pdf" without showDialog
End tell

However, this doesn't print anything to this file. If I previously print to a PDF using the dialog (by hand), then this appears to in fact overwrite that old file.

How does this command work? Should I show the dialog and use the script to sort of emulate the button pressing as if I were going to press "PDF" -> "Save as PDF" etc?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top