Re: How is the applescript support in Office 2004?
Re: How is the applescript support in Office 2004?
- Subject: Re: How is the applescript support in Office 2004?
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 20 May 2004 20:31:51 -0700
Sorry - 'selection' is also a property of 'window' so either will work. You
can have a selection of a window in the background. 'selection' without
specification (i.e. application property) means the selection of the active
(front) window.
But 'find' as an object (the 'find object' property of a selection or text
range), rather than as a command, does take some getting used to. Note that
almost everything that applies to 'selection' in the Microsoft Word Suite
also applies, or has a similar-sounding equivalent for, 'text range' in the
Text Suite. I recommend getting to know 'text range' and 'text object'
property of document, paragraph etc. It's faster than selection and doesn't
require selection highlighting, moving windows to the front, etc. You just
have to remember it's in the Text Suite, not MS Word Suite.
On 5/20/04 8:22 PM, I wrote:
>
Actually, 'selection' is a property of the application. It shouldn't be
>
'of' anything - just 'the selection'.
>
>
--
>
Paul Berkowitz
>
>
>
> From: trinko <email@hidden>
>
> Date: Thu, 20 May 2004 19:21:51 -0700
>
> To: <email@hidden>
>
> Subject: Re: How is the applescript support in Office 2004?
>
>
>
> Office 2004 is very scriptable but it has one heck of a learning
>
> curve. It took me forever to figure out that in order to get an
>
> instance of the find class--which you need for the execute find
>
> command -- you need to get the selection instance of the window, not
>
> the document.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.