Joystiq has your stash of criminally complete GTA IV news!

Mac Automation: automating Microsoft Word 2008

When Microsoft released Office 2008 for Mac, they did something that I must applaud -- they joined the ranks of Mac developers creating Automator-able applications. When you do a search in Automator for "Microsoft," it will reveal all of the Automator actions that ship with Microsoft Office 2008. There is lots of great stuff included, so we'll be covering some of it in this four part Mac Automation series. I will take you through how to automate each of the Microsoft Office applications: Word, Excel, PowerPoint, and Entourage.

First off, let's take a look at what you can automate in Word 2008. Doing a search for "Word" in Automator will display the available actions for Microsoft Word. As you can see, there are plenty of actions that you can automate. For this how-to, we'll focus on a workflow that does the following:
  • Creates a new document
  • Sets document properties
  • Gathers text from the clipboard
  • Places a watermark in the document
  • Saves the document
  • Prints the document
Continue reading to learn how to create this workflow.
For this workflow, you'll need the following Automator actions (in the same order):
  • Create New Word Document
  • Set Word Document Properties
  • Paste Clipboard Contents Into Word Documents
  • Add Watermark to Word Documents
  • Save Word Documents
  • Print Word Documents
You can then place in the appropriate text for "Set Word Document Properties," "Add Watermark to Word Documents," and "Save Word Documents." When you're done, your workflow should look something like this:



Running the workflow
First off you need something that has already been typed. The great thing about this workflow is that it allows you to copy text from any application; be it Pages, TextEdit, or your web browser. I have typed 4 simple paragraphs in TextEdit and will copy all of them by pressing Command + C on my keyboard. The text has been copied and now you can run the workflow. Just press the run button in the top right corner of Automator.

The workflow springs to life opening Microsoft Word, creating a new document, setting the page properties, pasting the text you previously copied, saving the Word document, and finally, printing it. When the workflow completes, you will see a Word document similar to the one below. A copy will also be printed on the default printer.


You can then save your Automator workflow to your desired format. You have to commend Microsoft for making Office 2008 so seamlessly integrated into Mac OS X Leopard. I will show you how to automate more areas of Microsoft Office in the near future.

Related Headlines

Reader Comments (Page 1 of 1)

Add your comments

Please keep your comments relevant to this blog entry. Email addresses are never displayed, but they are required to confirm your comments.

When you enter your name and email address, you'll be sent a link to confirm your comment, and a password. To leave another comment, just use that password.

To create a live link, simply type the URL (including http://) or email address and we will make it a live link for you. You can put up to 3 URLs in your comments. Line breaks and paragraphs are automatically converted — no need to use <p> or <br> tags.

New Users

Current Users

TUAW Features

Mac 101 iPhone Around the Worldask-tuaw
Mac News
Macworld (497)
.Mac (37)
Accessories (624)
Airport (75)
Analysis / Opinion (1288)
Apple (1607)
Apple Corporate (546)
Apple Financial (185)
Apple History (38)
Apple Professional (49)
Apple TV (160)
Audio (441)
Bad Apple (119)
Beta Beat (146)
Blogging (87)
Bluetooth (15)
Bugs/Recalls (56)
Cult of Mac (868)
Deals (199)
Desktops (114)
Developer (203)
Education (93)
eMac (10)
Enterprise (126)
Features (369)
Freeware (358)
Gaming (344)
Graphic Design (15)
Hardware (1268)
Holidays (41)
Humor (584)
iBook (65)
iLife (237)
iMac (183)
Internet (302)
Internet Tools (1286)
iPhone (1336)
iPod Family (2017)
iTS (958)
iTunes (791)
iWork (18)
Leopard (355)
Mac mini (109)
Mac Pro (50)
MacBook (195)
MacBook Air (76)
Macbook Pro (214)
Multimedia (428)
Odds and ends (1413)
Open Source (270)
OS (889)
Peripherals (190)
Podcasting (181)
Podcasts (82)
Portables (195)
PowerBook (137)
PowerMac G5 (50)
Retail (570)
Retro Mac (47)
Rig of the Week (42)
Rumors (608)
Software (4197)
Software Update (393)
Steve Jobs (252)
Stocking Stuffers (55)
Surveys and Polls (96)
Switchers (110)
The Woz (34)
TUAW Business (225)
Universal Binary (280)
UNIX / BSD (60)
Video (907)
Weekend Review (73)
WIN Business (49)
Wireless (80)
XServe (35)
Mac Events
One More Thing (27)
Liveblog (0)
Other Events (231)
WWDC (180)
Mac Learning
Ask TUAW (95)
Blogs (85)
Books (23)
Books and Blogs (63)
Cool tools (443)
Hacks (462)
How-tos (479)
Interviews (33)
Mods (184)
Productivity (582)
Reviews (99)
Security (145)
Terminal Tips (56)
Tips and tricks (558)
Troubleshooting (159)
TUAW Features
iPhone 101 (23)
TUAW Labs (3)
Blast From the Past (17)
TUAW Tips (141)
Flickr Find (32)
Found Footage (69)
Mac 101 (80)
TUAW Interview (30)
Widget Watch (196)
The Daily Best (2)
TUAW Faceoff (4)

RESOURCES

RSS NEWSFEEDS

Powered by Blogsmith

Sponsored Links

The Unofficial Apple Weblog (TUAW) bloggers (30 days)

#BloggerPostsCmts
1Cory Bohon456
2Dave Caolo430
3Mat Lu363
4Michael Rose3220
5Erica Sadun300
6Scott McNulty281
7Brett Terpstra270
8Mike Schramm214
9Robert Palmer918
10Steven Sande75
11Christina Warren617
12Joshua Ellis31
13Chris Ullrich31
14Nik Fletcher22
15Lisa Hoover10
16Jason Clarke12
17Victor Agreda, Jr.13

Featured Galleries

Macworld 2008 Keynote
Macworld 2008 Build-up
Macworld Expo 2007 show floor
The Macworld Faithful in Line
iPhone First Look
iPhone 2.0 - .Mac push e-mail
iMac 1998
TUAW Faceoff: Screenshot apps on the firing line
Boston Apple Store (Boylston Street)

 

    Most Commented On (7 days)

    Recent Comments

    More Apple Analysis

    More from AOL Money and Finance

    Weblogs, Inc. Network

    Other Weblogs Inc. Network blogs you might be interested in: