What's the difference between '{}' in Applescript, and '{}' in ASObC?
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