On 7/7/04 10:18 am, "Scott Haneda" <[EMAIL PROTECTED]> wrote:
> I assume every E-rage email has a unique ID attached to it,
Yes.
> 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?
In applescript - 'id of theMessage' (where theMessage is a reference to some
message you have previously determined). Applescript is the only way to
access the ID
>
> I am guessing you could tell application E-rage to open message id x, that
> would pop open the message in a window,
Absolutely correct - even the syntax:
Open message id xxx
> what I am looking to do is simply
> select it and show it in the preview pane, possible?
In that case, you need to find out what folder the message is in, set the
display of the main window to that folder and display that message:
First bit is easy:
set msg to message id xxx
select main window
set displayed feature of main window to storage of msg
Now, how do you display the message (assuming the preview pane is visible?)?
Entourage's applescript dictionary has the application property 'selection':
selection anything -- The selection visible to the user.
That makes you think that you could say 'set selection to msg', but that
errors.
Bearing in mind that multiple messages can be selected, what 'selection' is
looking for in this context is a _list_ of messages:
Set selection to {msg}
That works - IF the preview pane is displayed. If it isn't, the message will
still be selected, but there is no way to set the preview pane 'ON' via
Entourage's applescript. First you have to enable what's called "GUI
scripting". You do that by going to System Preferences/Universal Access, and
check the box "Enable Access for Assistive Devices".
Then this script will enable the preview pane (note: this is for entourage
2004 only - the menus in vX are different):
tell application "System Events"
tell process "Microsoft Entourage"
pick menu item "On Right" of menu "menu" of menu item "preview pane" of menu
"view" of menu bar item "view" of menu bar 1
end tell end tell
--
Barry Wainwright
Microsoft MVP (see http://mvp.support.microsoft.com for details)
Seen the All-New Entourage Help Pages? - Check them out:
<http://www.entourage.mvps.org/>
--
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/>