Re: Script Printing with MS Word?
Re: Script Printing with MS Word?
- Subject: Re: Script Printing with MS Word?
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 14 Feb 2003 18:34:27 -0800
On 2/14/03 3:51 PM, "Michael Sullivan" <email@hidden> wrote:
>
I want to script Microsoft Word to print a file. Of course the Print
>
dialog comes up (it shouldn't, it should just print...grrr...nevermind).
>
This was covered just this week but the solution was not for
>
OS X. Two questions: how can I print without running into the Print
>
dialog box? If I can't, is the only way around it to use GUI Scripting?
>
>
Don't bother suggesting lpr or lp unless it works with Word. I need
>
Word
>
to print Word files (converting to HTML or RTF isn't good enough).
tell application "Microsoft Word"
do Visual Basic "ActiveDocument.Printout"
end tell
prints the front document. There's much, much more you can do with 'do
Visual Basic'.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.