Automating Identity choice at startup

M

mmmmark

I have two identities setup in Entourage 2004 to more easily separate
personal accounts from business ones. I don't want to debate the merits of
doing this versus folders--each identity already has dozens and dozens of
folders and separate rules already.

I'd like to be able to create a script that opens Entourage, picks an
identity from the dialog box, and retrieves the mail. A separate script for
the other identity would also be desired. I think I can successfully setup
a key combination to call this script if it can be created.

Can this be done? I've scoured the net and am beginning to think that this
box is not scriptable.

Thanks in advance,
-Mark
 
B

Barry Wainwright

I have two identities setup in Entourage 2004 to more easily separate
personal accounts from business ones. I don't want to debate the merits of
doing this versus folders--each identity already has dozens and dozens of
folders and separate rules already.

I'd like to be able to create a script that opens Entourage, picks an
identity from the dialog box, and retrieves the mail. A separate script for
the other identity would also be desired. I think I can successfully setup
a key combination to call this script if it can be created.

Can this be done? I've scoured the net and am beginning to think that this
box is not scriptable.

Thanks in advance,
-Mark

It's not scriptable directly, but it may be possible to do it through UI
scripting. Have a go.
 
M

mmmmark

Barry Wainwright said:
It's not scriptable directly, but it may be possible to do it through UI
scripting. Have a go.

--
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/>

Any hints on this? I tried to look into it one time, but couldn't seem to
get it to work. Seems like a unique window name has to be used, but this
one didn't have one??? I can't remember right now.
 
P

Paul Berkowitz

It's not scriptable directly, but it may be possible to do it through UI
scripting. Have a go.

You can set the identity directly:

set current identity to identity "Whosits"

If it doesn't work when your prefs are to open to the Switch identity window
(but it might) then just uncheck that preference.

The problem will be if you have other Office apps, including Office
Notifications, open, from when Entourage was previously open. You'll get
that error about having to quit all Office apps. I suppose that wouldn't be
the case if you always quit all Office apps hen quitting Entourage.

--
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.
 
M

mmmmark

Paul Berkowitz said:
You can set the identity directly:

set current identity to identity "Whosits"

If it doesn't work when your prefs are to open to the Switch identity window
(but it might) then just uncheck that preference.

The problem will be if you have other Office apps, including Office
Notifications, open, from when Entourage was previously open. You'll get
that error about having to quit all Office apps. I suppose that wouldn't be
the case if you always quit all Office apps hen quitting Entourage.

--
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.

Thanks, Paul. Is that a line to add to an Applescript or how can I harness
that puppy? Be gentle...I've dabbled in Applescript only a few times, so
I'm no expert.

thanks!
-Mark
 
M

mmmmark

mmmmark said:
dozens that

Thanks, Paul. Is that a line to add to an Applescript or how can I harness
that puppy? Be gentle...I've dabbled in Applescript only a few times, so
I'm no expert.

thanks!
-Mark

Well, I've experimented a bit with UI scripting and got a basic Applescript
to work with the line in it you noted, Paul. It is clumsy since it opens
Entourage to the last identity, then closes the window and opens the proper
identity (even if it is the same one). It doesn't work with the identity
login box. I am trying to script that box, but haven't had any luck yet.

-Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top