Most Popular Articles
- Prune Your Time Machine Backups Selectively (01 May 2008)
- Reluctantly Switching from Eudora to Apple Mail (13 Apr 2008)
- Hand Coding HTML Is Still in Vogue (25 Apr 2008)
- Iridium-Capable iPhone Not Entirely Laughable (13 Apr 2008)
Recent TidBITS Talk Discussions
- OmniFocus: the interface is weak but the project is willing (11 messages)
- Anyone tried the Online Passport application system? (20 messages)
- Phone Message Software Recommendation please (8 messages)
- auto-filing of read mail in Apple Mail (7 messages)
Shopping for a new digital camera? In "Take Control of Buying a Digital Camera," pro photographer Larry Chen helps you pick out the right camera and accessories for your needs and budget. This book is loaded with tips on using your camera, pointers to the best review sites, and more!
Published in TidBITS 919. Subscribe today to receive TidBITS in email every Monday.
- Apple Releases 802.11n AirPort Express
- AT&T Offers Unlimited Voice Use iPhone Plan
- Apple Releases Updated AirPort Utility for Tiger, Leopard, Windows
- DealBITS Drawing: Win a Copy of IPNetMonitorX
- SmartSleep Solves Safe Sleep Situation
- Automating Text-to-Speech Video Narration
- Vista Woes Aired in Internal Microsoft Email
- Take Control News: Updated Help for Switching to the Mac
- Important Updates Released for Office 2008 and 2004
- Bedding Down with a MacBook Air
- TidBITS Watchlist: Notable Software Updates for 17-Mar-08
- Hot Topics in TidBITS Talk/17-Mar-08
Updated Paste Plain Text AppleScript for Word 2008
In "Word 2008 and the Paste Plain Text Dance" (2008-01-19), I described a tiny AppleScript I use in Word 2008 to paste text without style information, so that the pasted text adopts the style of whatever is around it. From the feedback I've received, the lack of a built-in command to do this with one click had irritated quite a few people. Since then, I've found that very occasionally - I can't quite discern a pattern to why or when - text pasted with my script takes on the default font of Word's Normal template (Cambria), rather than the actual font of the surrounding text.
So I experimented further, and I've come up with a revised script that not only solves this problem but takes an entirely different approach that results in a shorter and more elegant solution. Thus far I haven't seen any occasions in which the new script fails. As before, you can either paste this into Script Editor or download the completed script, unzip it, and put it in ~/Documents/Microsoft User Data/Word Script Menu Items. Here's the script:
tell application "Microsoft Word"
tell selection
try
set theClip to Unicode text of (the clipboard as record)
type text text theClip
end try
end tell
end tell
Now, instead of counting the number of characters on the clipboard and moving the insertion point, the script uses the "type text" command to simulate typing, which automatically puts the insertion point in the right place.
WebCrossing Neighbors Creates Private Social NetworksCreate a complete social network with your company or group's
own look. Scalable, extensible and extremely customizable.
Take a guided tour today <http://www.webcrossing.com/tour>
Bookmark at: del.icio.us | digg | reddit | Slashdot


