Re: equal to is does not in Mail
Re: equal to is does not in Mail
- Subject: Re: equal to is does not in Mail
- From: Nelson Byrne <email@hidden>
- Date: Wed, 24 Mar 2004 13:59:43 -0800
Thanks. I was going nuts trying to figure it out.
Regards,
Nelson
On Mar 24, 2004, at 1:28 PM, Michelle Steiner wrote:
On Mar 24, 2004, at 1:31 PM, Nelson Byrne wrote:
Mail, when scripted, just doesn't seem to understand the simple
condition "equal to".
"Contains", "Does not contain", "Begins with" are all OK.
"Ends with" & "Is equal to" are both seen by AppleScript as "does
not contain value".
What am I doing wrong here?
Actually, it sets the value correctly; however, it returns the wrong
value--and that is a bug, so you are not doing anything wrong.
To test this, set up a rule (named "foo") with one condition, "Is
equal to"
Then run the following script
tell application "Mail"
tell rule condition 1 of rule "foo"
get qualifier --> does not contain value
end tell
end tell
--> does not contain value
Essentially, the returned message is incorrect; this will cause a
problem if you're trying to compare qualifier, e.g.,
if qualifier is (equal to value) then
the above will return false when it should return true.
-- Michelle
--
if u cn rd ths u cn gt a gd jb, bt if u rt lk ths u r a mrn.
_______________________________________________
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.