Title: Re: Scripting POP Account Query
On 12/19/00 1:12 AM, "Barry Wainwright" <[EMAIL PROTECTED]> wrote:
> So why can’t I say (pop account whose name contains “Barry”) or anything like
> that?
You always have to say
every POP account whose name contains "Barry"
or ‘first’ or ‘last’ if you’re willing to risk an error if there is none]. That works. Try that in the Finder, or any app: it’s the same. It’s in the ASLG under Filter Reference..
But there’s a strange bug for ‘email address’ of account
every POP account whose email address is “[EMAIL PROTECTED]”
will give you {}. But
every POP account where its email address is “[EMAIL PROTECTED]”
will give you the correct answer
-- {POP account id 1}
or whatever.
It should be exactly the same, but it isn’t. Don’t ask me why – very weird, isn’t it? Dan showed me this solution once, but I don’t think he gave a reason for it either. I believe it’s a confusion with the ‘email address’ property of contact or something like that. Probably the use of ‘it’ is what helps, since I just discovered this also works correctly:
every POP account whose email address of it is "[EMAIL PROTECTED]"
-- {POP account id 1}
--
Paul Berkowitz
- Scripting POP Account Query Barry Wainwright
- Re: Scripting POP Account Query Paul Berkowitz
- Re: Scripting POP Account Query Barry Wainwright
- Re: Scripting POP Account Query Dan Crevier
- Re: Scripting POP Account Query Barry Wainwright
- Re: Scripting POP Account Query Paul Berkowitz
- Re: Scripting POP Account Query Barry Wainwright
- Re: Scripting POP Account Query Paul Berkowitz
- Re: Scripting POP Account Query Barry Wainwright
- Re: Scripting POP Account Query Dan Crevier
- Re: Scripting POP Account Query Barry Wainwright
- Re: Scripting POP Account Query Allen Watson
