Re: Word 2 PDF
Re: Word 2 PDF
- Subject: Re: Word 2 PDF
- From: Wayne Melrose <email@hidden>
- Date: Tue, 15 Nov 2005 09:09:12 +0100
On Nov 14, 2005, at 6:45 PM, Richard Rönnbäck wrote:
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
Richard, thanks for your help, although I don't have acrobat 7... I
was hoping that I could avoid using Acrobat as we don't own it here
at my company (not version 7 anyway). I would have thought that Mac
OS was capable of producing a PDF file from word, in a scriptable
manner.. I'm still hoping that somoene can come up with an
alternative, or perhaps confirm that this code above works, then I
might be able to persuade my employers to upgrade acrobat.
Preferably, a none acrobat solution would be best....
Thanks
Wayne Melrose _______________________________________________
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