Ron, please forgive me, I’m tired from sitting up all last night Skype conferencing with the USA, so my brains addled.
An empty email to us using my App is one without any attachments, and is not processed for printing images.
A non email, is what seems to be left behind after an email has been moved from a mailbox, and any remaining ‘ghost’ of it has been removed. Getting the ‘get first message of mailbox ‘X’, still seems to return a positive reply, even though there’s nothing bloody recognisable left in it.
Your comment about the first part of my argument would be true if I was using an ‘OR’ statement, but I’m using an ‘AND’, which means both parts are evaluated.
However, all that’s redundant. Thanks to Shane’s prompting, I inserted code to count the messages left, AFTER my removal code had processed the move of the mail message, and just before my testing for {} code, and it evaluates to ‘1’ instead of 0, so I’m up the proverbial creek without a paddle. My codes not working. Back to the drawing board.
Regards, and thanks
Santa.
BTW, the bird ‘Olivia’ has sent a bikini shot of herself now. Is anyone else getting them?
On 30 Jul 2015, at 11:41 pm, Ron Reuter < email@hidden> wrote: Hunh? Aside from the difficulty I'm having in parsing the question (what the heck is "empty mail" and "non-email"?)
set my currentMailItem to {}
if (count of (mail attachments of (mycurrentMailItem))) is 0 and (mycurrentMailItem) ≠ {} then my playGlass()
The first condition is always true, so the check for empty list is always short circuited, so of course it is ignored.
Suggestion: in trying to understand any code, first simplify it and examine intermediate results to see where it goes right or wong. Break that conditional into two statements or more and log the results.
-- Ron
On Jul 30, 2015, at 07:48, Brian Christmas < email@hidden> wrote: if (count of (mail attachments of (my currentMailItem))) is 0 and (my currentMailItem) ≠ {} then my playGlass() |