Hello, Sol
1) I'm not quite sure what you mean by "access to AppleScript IN Word
itself".
AppleScripts can only be written in an AppleScript editor - either Apple's
Script Editor or one of the others (the free Smile or commercial Script
Debugger) which offer a lot more features, especially Script Debugger. The
simplest thing would be just to keep Script Editor in the Dock and click it
when you want it to open. (Or you could put a 1-line script in the Script
menu:
tell application "Script Editor" to activate
)
If you want to edit existing scripts, perhaps you're not aware that if you
select any script in the script menu while holding down the Option key, the
script will immediately open in Script Editor? (Or another editor that you
have set as Default using the AppleScript Utility.) That's actually neater
and faster than opening a macro in VB Editor.
I wonder if you are aware of the different ways you can organize your
scripts in the script menu, if the list is getting a little long.
a) If you put your Word scripts inside a "Word" subfolder inside the user
~/Library/Scripts folder (or /Library/Scripts folder) they will appear
tucked away in a Word folder menu item in the script menu. (Scripts Utility
lets you uncheck the "Show scripts in Library folder" to make the scripts in
the /Library /Scripts folder disappear and display only the user
~/Library/Scripts/ scripts.)
b) If you make an "Applications" subfolder inside ~/Library/Scripts folder,
and then a "Microsoft Word" subfolder inside that (it _must_ be called by
the full name). then scripts you lace there will be visible in the menu
_only when you are in Word_ . That's very handy for not cluttering up the
menu. The same applies for any application.
c) It's possible that Word might have its own script menu in Office 2008.
This won't really be much different than b) except it would probably allow
you to make keyboard shortcuts, like Entourage's script menu does. That
would be very useful.
2) If you mean - "will you be able to run scripts from buttons on Word's
own toolbars, as you can with VBA macros in current versions?", then the
answer is No. However, there are various ways in which you can run scrits
from buttons on palettes or toolbars:
a) Various 3rd-party utilities such as DragThing, iKey, QuicKeys all
have floating palettes, which can sometimes be arranged to dipslay only when
a particular app, such as Word, are active, and which can run scripts. You
can find all of them at versiontracker. This is probably the easiest way.
b) You can create your own toolbars with Smile (mentioned above) - very
difficult - or AppleScript Studio (in Xcode and Interface Builder) - also a
very steep learning curve.
3) To replace UserForms, again you can use Smile or AppleScript Studio -
once again pretty difficult. If planning to distribute to other, AppleScript
Studio is preferable because its frameworks are built into every Mac so
users need install nothing. For Smile you could bundle Smile free. I guess.
Much, much easier than either would be to get the 3rd-party "24U Appearance
OSAX", a scripting addition which makes simple dialogs like UserForms. To
distribute scripts requiring it, it can be bundled inside scripts saved as
script bundles, but requires a license from 24U. If your scripts are free, I
believe you can bundle it free - if not, you can get a developer's license.
If making scripts only for yourself, none of this is needed. I'd recommend
24U until the day (well, year) when you've taught yourself AppleScript
Studio.
A fourth possibility would be RealBasic.
URLs below.
3) Microsoft have said that they are purposely NOT going to make it possible
to embed scripts inside documents, as with VBA macros, since that it a huge
security risk: it's precisely how viruses can and do spread in Office
documents. Therefore, there will be no equivalent to AutoMacros. That is a
distinct loss. You will have to run scripts manually when you open a
document (or Word).
You will be able to read all about these, and much more, when my "MacTech
Guide to Making the Transition from Office VBA to AppleScript" that JE
referred to becomes available. It will be distributed with MacTech sometime
in the spring (with $10 introductory subscriptions apparently available
thanks to a Microsoft sponsorship), and I believe that a free online PDF may
also become available at that time.
In the meantime, you can ask your questions here and in the app-specific
newsgroups. (T ask about Word Applescript, ask in the Word NG.)
Here are those URLs:
Script Editors
Script Debugger
<
http://www.latenightsw.com/sd4/download.html>
Smile
<
http://www.satimage.fr/software/en/downloads_software.html>
Replacements for User Forms and Toolbars
AppleScript Studio
<
http://developer.apple.com/documentation/AppleScript/Conceptual/StudioBuild
ingApps/>
<
http://developer.apple.com/documentation/AppleScript/Reference/StudioRefere
nce/>
Smile
<
http://www.satimage.fr/software/en/downloads_software.html>
24U Appearance OSAX
<
http://www.24usoftware.com/AppearanceOSAX>
REALbasic
<
http://www.realsoftware.com/>
DragThing
<
http://www.dragthing.com/>
iKey
<
http://www.scriptsoftware.com/ikey/>
PreFab UI Browser
<
http://prefabsoftware.com/>
QuicKeys
<
http://www.quickeys.com/>
Version Tracker
<
http://www.versiontracker.com>
--
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.