• 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: Word 2 PDF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Word 2 PDF


  • Subject: Re: Word 2 PDF
  • From: Richard Rönnbäck <email@hidden>
  • Date: Mon, 14 Nov 2005 18:45:23 +0100
  • Thread-topic: Word 2 PDF

Wayne, Richard,


The following will probably work

tell application "Adobe PDF 7.0"
    open (choose file)
end tell

tell application "Microsoft Word"
    activate
end tell

tell application "System Events"
    tell process "Microsoft Word"
        tell window "Print" --Note, I am not sure of this window's name in
English, since I am using a Swedish version, might work with "Window 1"
            keystroke return
            --delay 1
            keystroke return
        end tell
    end tell
end tell

tell application "Microsoft Word"
    close document 1
end tell

As you will notice I call the application "Adobe PDF" which is installed by
Adobe Acrobat and should be located in ~/Library/Printers/

You can not set the file path or the name, but it will get the name from the
document and the path setting is sticky, so if you set it once, by printing
one file manually it should stay in the same folder


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Word 2 PDF
      • From: Wayne Melrose <email@hidden>
References: 
 >Re: Word 2 PDF (From: Wayne Melrose <email@hidden>)

  • Prev by Date: Re: Printing to PDF File
  • Next by Date: Re: 10.4.3 changed what?
  • Previous by thread: Re: Word 2 PDF
  • Next by thread: Re: Word 2 PDF
  • Index(es):
    • Date
    • Thread