On 11/17/00 01:35, Word.Net wrote:
> Can someone write an applescript that simply does the equivalent of the
> following commands in Entourage:
>
> COMMAND-R
> RETURN (control-M?)
> COMMAND-S
>
> I could do it in KeyQuencer, but I'm not using that any more and would like
> to move on to Applescripts, especially since they are nicely integrated into
> Entourage.
Honestly, this is a task better suited for something like KeyQuencer or
OneClick, rather than AppleScript. If there is an osax that will let you
"type" a key (such as Return) (Allen? Paul? Anyone know of such?) then this
could work, but otherwise it can't really be done elegantly with AS.
Part of the problem is that Entourage's reply to always quotes the entire
message, not just selected text as the menu option does. There are osaxen
that will let you select menus, but so will OneClick (and KeyQuencer, too,
although I don't know much about it).
In OneClick, for example, it would be a simple script of:
KeyPress Command "r"
Type Return
KeyPress Command "s"
...almost exactly as you've outlined it. (Well, there would need to be some
code to wait for the window to be created before typing the Return, but
that's fairly trivial.)
It *could* all be done with vanilla RppleScript, but it would take some
doing.
George
--
George Clark - [EMAIL PROTECTED]
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
To search the archives:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>