Well, yes, that's fine, if one is already in Entourage, but those keyboard
shortcuts aren't helpful in you're in Safari, and want to switch immediately
to the Task list in Entourage.
You never explained you wanted to call this function from outside Microsoft.
That puts a different complexion on things. The keyboard shortcuts that can
call scripts in the Entourage script menu are also only available when
Entourage is in the front.
Is there a way in AppleScript to "send" a keyboard shortcut to an
application? Something along the lines of "Activate Entourage; Command-5"?
It's easy to _write_ the AppleScript:
tell application "Microsoft Entourage"
open main window
set displayed area of main window to tasks area -- or mail area
activate
select main window
end tell
But the question becomes: how to call that script when Entourage isn't in
the front? You could put this script (saved as a compiled script) in
~/Library/Scripts/ [not in any subfolder], where ~/ is your OS X user.
Then go (once only) to /Applications/AppleScript/Install Script Menu and
double-click it (in Jaguar it's called ScriptMenu.menu), and you'll find a
script menu over on the right side of the menu bar, in all apps and the
Finder. So you could call the script by selecting it in the script menu. But
- so far - there's no mechanism provided by the system for keyboard
shortcuts for this script menu. You'd need to get a utility that runs
scripts from a key shortcut. iKey is supposed to be the best one:
http://www.scriptsoftware.com/ikey/
v1.0.x seems to be still available at $20; it looks like there's a new v2.0
at $30 coming out. You can run a script from a file: that's the feature you
want. (Link to the script you save in ~/Library/Scripts/ . Don't save the
script as an application or it will be slow to start up every time. Save it
as a compiled script. I think iKey can run compiled scripts. Try it out - I
think it has a Demo period.)
--
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.