• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Entourage--new message from specific account
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Entourage--new message from specific account


  • Subject: Re: Entourage--new message from specific account
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 19 Jul 2002 12:55:14 -0700

On 7/19/02 11:07 AM, "Michael Grant" <email@hidden> wrote:

> Speaking of Entourage, does anyone know the correct syntax for creating an
> open window with a new message from a specific account (i.e. "From" header)?
>
> Thanks,
> Michael

make new draft window with properties {account:POP account "Account
Name"}


You have to use the name (or ID) of the account and always refer to it as a
'POP account' or 'IMAP account' or 'Hotmail account' as the case may be.
Those are the classes , not 'account'.

If you don't know the name of the account but only the email address then
you'll have to do this:


try
set theAccount to first POP account where its email address is
"email@hidden"

on error
try
set theAccount to first IMAP account where its email address is
"email@hidden"
on error
set theAccount to first Hotmail account where its email address
is "email@hidden"
end try
end try

make new draft window with properties {account:theAccount}

it's a real bother. there's a feature request in for a super-class
'account'.

You _have_ to use 'where its', not 'whose', as in the examples above because
there's a class 'email account' (element of 'contact') which takes
precedence over the account property 'email address' , so AppleScript gets
confused if you don't include 'its'.

--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Entourage--new message from specific account
      • From: Michael Grant <email@hidden>
References: 
 >Entourage--new message from specific account (From: Michael Grant <email@hidden>)

  • Prev by Date: cron running AS while logged out?
  • Next by Date: RE: USB Device Detection and Alarm
  • Previous by thread: Entourage--new message from specific account
  • Next by thread: Re: Entourage--new message from specific account
  • Index(es):
    • Date
    • Thread