On 7/7/04 2:18 AM, "Scott Haneda" <[EMAIL PROTECTED]> wrote:
> I assume every E-rage email has a unique ID attached to it, if this is so,
> how do I determine that ID, and can it be passed to a applescript, or even
> better, if E-rage has some url access to it where I can somehow pass that ID
> from another application to E-rage and get that particular message to be
> selected?
>
> I am guessing you could tell application E-rage to open message id x, that
> would pop open the message in a window, what I am looking to do is simply
> select it and show it in the preview pane, possible?
Are you aware that scripting is done using Entourage's AppleScript
Dictionary? Have you looked there?
I have no idea whatsoever as to what you might mean by url access to
Entourage. You access Entourage by a 'tell' block. Entourage assigns its own
ID numbers to messages in its database - there are no other ID numbers
connected with messages. Message headers do not contain GUID (global
universal IDs) common to other programs. The way to get an Entourage is
simply to ask for it. There are any number of ways of specifying a
particular message (see the dictionary) - most ways, aside from ID, require
it to be an element of a particular folder. If you want to find out what the
ID is of a single selected message:
set theMsg to item 1 of (get current messages)
set msgID to ID of theMsg
This precise method also works to get a message being filtered by a rule.
You can store that ID in a list, in a script property, coerce it to string
and store it in a file. Or you could get
set allIDs to ID of every message of folder "Something"
or any number of other things. Maybe you'd better let us know how you plan
to specify the messages whose IDs you want.
If you have the ID (and if it's been coerced to string, first coerce it back
'as integer'). Then
set theMsg to message id msgID
set theFolder to storage of theMsg
set displayed feature of main window to theFolder
set selection to {theMsg}
will select it, although the message list may not have the focus
(unscriptable except via pressing tab in GUI scripting).
Everything except maybe 'set selection to' for this context is in the
Entourage dictionary.
--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>
PLEASE always state which version of Entourage you are using - **2004**, X
or 2001. It's often impossible to answer your questions otherwise.
--
To unsubscribe:
<mailto:[EMAIL PROTECTED]>
archives:
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>