• 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: What's the difference between '{}' in Applescript, and '{}' in ASObC?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's the difference between '{}' in Applescript, and '{}' in ASObC?


  • Subject: Re: What's the difference between '{}' in Applescript, and '{}' in ASObC?
  • From: Brian Christmas <email@hidden>
  • Date: Fri, 31 Jul 2015 00:13:42 +1000

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()

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: What's the difference between '{}' in Applescript, and '{}' in ASObC?
      • From: John Welch <email@hidden>
    • Re: What's the difference between '{}' in Applescript, and '{}' in ASObC?
      • From: Ron <email@hidden>
References: 
 >What's the difference between '{}' in Applescript, and '{}' in ASObC? (From: Brian Christmas <email@hidden>)
 >Re: What's the difference between '{}' in Applescript, and '{}' in ASObC? (From: Ron Reuter <email@hidden>)

  • Prev by Date: Re: What's the difference between '{}' in Applescript, and '{}' in ASObC?
  • Next by Date: Re: What's the difference between '{}' in Applescript, and '{}' in ASObC?
  • Previous by thread: Re: What's the difference between '{}' in Applescript, and '{}' in ASObC?
  • Next by thread: Re: What's the difference between '{}' in Applescript, and '{}' in ASObC?
  • Index(es):
    • Date
    • Thread