Re: Convert format of word documents to pdf suddenly not working
Re: Convert format of word documents to pdf suddenly not working
- Subject: Re: Convert format of word documents to pdf suddenly not working
- From: "John C. Welch" <email@hidden>
- Date: Mon, 29 Nov 2010 11:32:27 -0500
- Thread-topic: Convert format of word documents to pdf suddenly not working
Title: Re: Convert format of word documents to pdf suddenly not working
On 11/28/10 12:17 PM, "Scott Ribe" <email@hidden> wrote:
> On Nov 28, 2010, at 9:16 AM, Matissa Hollister wrote:
>>
>> For instance any alternative ways to convert a batch of Word files into pdfs.
>
> No, sorry. I did one for Word 2004, set up a PDF printer, switch to it, tell
> Word to print the document--and it's a nightmare in terms of reliability.
>
> After a while, Word stops opening documents--so I changed it to quit &
> relaunch Word once in a while. After a longer while, Word corrupts its
> preferences file and will no longer launch--so I changed it to replace the
> preferences file with a fresh copy before launching Word. After a while Word
> borks up something in the OS so badly that it won't launch until you reboot.
>
> I'm going to try with 2011, and hope it works better--but I'm not optimistic.
> They've had 25 years to work on this product, and it's still incredibly buggy
> ;-)
Since Office 2008, Word can just save to PDF. Since it's using the engine for this as you would use to print, you don't have to print at all. Here, a quick bit of sample code to build a droplet:
on open of theFiles
tell application "Microsoft Word" to set theOldDefaultPath to get default file path file path type documents path
repeat with x in theFiles
set theDoc to contents of x
tell application "Finder"
set theFilePath to container of theDoc as text
set theFilename to (name of theDoc) & ".pdf"
end tell
tell application "Microsoft Word"
set default file path file path type documents path path theFilePath
open theDoc
set theActiveDoc to the active document
save as theActiveDoc file format format PDF file name theFilename
end tell
end repeat
tell application "Microsoft Word" to set default file path file path type documents path path theOldDefaultPath
end open
That could be made into an Automator Action in 10.6 with some ease, or just leave it on your desktop, doc, etc.
--
John C. Welch Writer/Analyst
Bynkii.com Mac and other opinions
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden