Re: scripting Word top copy text - should be simple, but ain't
Re: scripting Word top copy text - should be simple, but ain't
- Subject: Re: scripting Word top copy text - should be simple, but ain't
- From: "Charles Arthur, UKClimbing Editor" <email@hidden>
- Date: Tue, 25 Apr 2006 20:15:10 +0100
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:
This email sent to email@hidden