• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Script Printing with MS Word?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Script Printing with MS Word?
      • From: Michael Sullivan <email@hidden>
References: 
 >Script Printing with MS Word? (From: Michael Sullivan <email@hidden>)

  • Prev by Date: Re: Q: specifying text in a variable to a color when inserting into Apple's Mail.app?
  • Next by Date: Applescript Needed
  • Previous by thread: Script Printing with MS Word?
  • Next by thread: Re: Script Printing with MS Word?
  • Index(es):
    • Date
    • Thread