Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scripting Word top copy text - should be simple, but ain't



At 11:03 -0700 25/4/06, email@hidden wrote:
>From: Simon Topliss <email@hidden>

>Short answer...
>
>tell application "Microsoft Word"
>	content of text object of document "Hello.doc" -- or document 1, or
>document whatever
>end tell

Except: how do you work out what document you've opened? "set thefile to
open file" doesn't work because "open" doesn't return an object. If you
have to cycle through the windows to find out which one you want, that
seems amazingly longwinded. Any Word scripters know how to find the
reference to a window that's been opened?


>Long answer...
>
>Buy Script Debugger 4.

That's the long *and* expensive answer.

>p.s. I've never even opened Word's dictionary before.

Lucky.

>p.p.s. Buy SD4. you'll never regret it.

I'm beginning to regret upgrading from Word v.X.



     best
     Charles
-- 
http://www.ukclimbing.com : 1,000+ British crags, 350+ British climbing walls
- searchable by distance rock type, etc, with 5-day weather forecasts for
every one - plus maps, articles, news, and the New Routes database. There's
even a cool shop attached...
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.