Word 2004 Applescript recordable?

K

Kjetil Rå Hauge

I could have sworn I found out Word 2004 was recordable in Applescript when
I first got it. It is not now, and I have installed a "service update" at
some point. Has recordability been recalled, or was it just a fig of my
imagination?
 
P

Paul Berkowitz

Very few apps are recordable under Mac OS X (none meaningfully so, as
far as I know). I don't believe Word ever was. However, in Word, VBA is
recordable, so if you don't know how to script something, record it in
VBA and "translate" to AppleScript. (The AppleScript implementation in
Word 2004 is, generally speaking, a direct term-for-term translation of
VBA.) m.

In earlier versions, Word AppleScript was indeed recordable. It produced
scripts entirely in 'do Visual Basic' in Word X (so it basically just looked
like a VBA macro anyway) - that no longer works in Word 2004. Nothing to do
with the service update SP1.

As Matt says, VBA Macros are still recordable, and you can usually do a
direct "translation" to equivalent AppleScript. Even if you don't know how
to write VBA "dot language" you don't need to - it's pretty easy to make out
what's going on and transmute to to AppleScript. The first item in a VBA
"dot string" is generally the "Object" - similar to the AppleScript class -
start out from there.

--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top