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

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


  • Subject: What's the difference between '{}' in Applescript, and '{}' in ASObC?
  • From: Brian Christmas <email@hidden>
  • Date: Thu, 30 Jul 2015 22:48:18 +1000

G’day scripters

I’m trying to stop Mail.app processing empty mail, which it has a habit of picking up after processing an actual Email.

I’m setting the variable for the non-email to {}, which works in vanilla Applescript, but is not recognised in ASObC.

Can anyone tell me how to set an Email to a recognisable variable please, that can be set to recognize a ‘non-email’?

Regards

Santa



Applescript — Works

set m to {}
tell application "Mail"
if ((count of (mail attachments of m)) is 0) and m = {} then say 1
if ((count of (mail attachments of m)) is 0) and m ≠ {} then say 2
end tell

ASObC — Doesn’t ‘see’ the {}

set my currentMailItem to {}
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: Ron Reuter <email@hidden>
    • Re: What's the difference between '{}' in Applescript, and '{}' in ASObC?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: 10.11 Issues
  • Next by Date: Re: What's the difference between '{}' in Applescript, and '{}' in ASObC?
  • Previous by thread: Re: 10.11 Issues
  • Next by thread: Re: What's the difference between '{}' in Applescript, and '{}' in ASObC?
  • Index(es):
    • Date
    • Thread