Printing multiple word docs at one time

Hello,
I am trying to write an applescript that will print multiple word docs at one time…
I wrote the one below, but it dies on this line:
click menu item “Print…” of menu 1 of menu bar item “File” of menu bar 1
This is a line I tool from an Acrobat script I wrote to print multiple docs, but it won’t work here…any advice would be greatly appreciated.
thanks!!!
barbara

set theFolder to choose folder
tell application “Finder” to set thefiles to entire contents of theFolder

tell application “Microsoft Word”
activate
repeat with aFile in thefiles
tell application “Microsoft Word” to open (aFile as string)
tell application “System Events”
tell process “Microsoft Word”
click menu item “Print…” of menu 1 of menu bar item “File” of menu bar 1
delay 1
end tell
end tell
tell application “Microsoft Word” to close saving “No”
end repeat
end tell

Hi barbara,

I guess, it’s the expression “Print.”

The dots are not just three dots, but a single character called horizontal ellipsis (on an US keyboard layout option semicolon)

Hi Stefen,
Well, I gave that a shot (BTW-that is good to know.), but, it still died at the same line…
Any other thoughts??
thanks!
barbara

MS Word is quite well scriptable, try this instead


set theFolder to choose folder
tell application "Finder" to set thefiles to files of entire contents of theFolder whose name extension is "doc" or creator type is "MSWD"
tell application "Microsoft Word"
	repeat with theFile in thefiles
		open (theFile as string)
		delay 1
		print out document 1
		close document 1 saving no
	end repeat
end tell

Hi Stefan,
What a nice thing to come home to after a long commute :slight_smile:
worked perfectly!!!
thank you so much.
regards,
barbara

The script above works perfectly with .docx files.

Is it possible to accomplish the same result without actually opening the .docx files ?

A bit like the script at http://macscripter.net/viewtopic.php?id=22857 which also works perfectly but only for pdfs.

Hopeful,

Val

Browser: Safari 531.22.7
Operating System: Mac OS X (10.6)