On 8/24/03 7:02 PM, "Mo Mehlsak/Barbara Riegelhaupt" <[EMAIL PROTECTED]>
wrote:
> on 8/24/03 8:32 PM, Allen Watson at [EMAIL PROTECTED] wrote:
>
>> You might like this slightly more sophisticated version:
>>
>> tell application "Microsoft Entourage"
>> set allAccts to name of every POP account
>> set theAcct to choose from list allAccts with prompt "Pick and account"
>> make new draft window with properties {account:POP account theAcct}
>> end tell
>
> Thanks, Allen. What's the difference between this script and Paul's?
Allen's makes you choose which account every time you run it, while mine
doesn't. I'm not sure that's an advantage. Why would you want to do that
every time? Perhaps Allen meant to do something like this:
property theAcct : ""
tell application "Microsoft Entourage"
if theAcct � "" then
try
get POP account theAcct
on error
set theAcct to ""
end try
end if
if theAcct = "" then
set theAcct to
set allAccts to name of every POP account
set theAcct to choose from list allAccts with prompt "Pick an
account"
end if
make new draft window with properties {account:POP account theAcct}
end tell
-----------
which will only ask you the first time or if you ever delete the account or
change its name. It's the sort of thing that I'd do if making a script for
public distribution. But if you're just doing it for yourself, it's simpler
just to hard-code in the account name, in the version I sent you before.
Simpler for me, for sure, but the version above is the pro way.
--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: http://www.entourage.mvps.org/toc.html
PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.
--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: http://www.entourage.mvps.org/toc.html
PLEASE always state which version of Entourage you are using - 2001 or X.
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/>