Looking for documentation to fill in the blanks...
Looking for documentation to fill in the blanks...
- Subject: Looking for documentation to fill in the blanks...
- From: Stephen Jones <email@hidden>
- Date: Fri, 8 Feb 2008 09:36:56 +1100
I am new to Applescript. I was hoping I could create a simple application which would process incoming mail to a specific mailbox and extract data from the body of the mail. The mail messages are formatted. This process is currently implemented in an Exchange/SQL environment but I want to move it to Mac OS X Mail and Filemaker.
I have downloaded all the Applescript documentation I can find, but I am baffled by the Script dictionary for Mail.
I have two basic questions:
a) The dictionary provides nothing in the way of usage - there are no examples. Where do I find documentation which explains how the dictionary parameters are actually used in a script?
b) Return values. The dictionary does not state what the return values are. For instance:
check for new mail v : Triggers a check for email. check for new mail [for account] : Specify the account that you wish to check for mail
So I understand this will run a check for new mail - but what is the result of this? Do I get a boolean value returned? How do I use this in a script?
c) Usage, general. I created a simple script just to get started. It does not work however - but then I am guessing as to how to do this:
set mailbox to "special"
tell application "Mail" set NewMessages to unread count of mailbox display dialog NewMessages end tell
This is the dictionary entry:
mailbox n, pl mailboxes [inh. item] : A mailbox that holds messages contains mailboxes, messages; contained by application, accounts, mailboxes. name (text) : The name of a mailbox unread count (integer, r/o) : The number of unread messages in the mailbox account (account, r/o) container (mailbox, r/o)
My script produces the unhelpful error "Can’t get unread count of mailbox."
Again, there are no examples in the dictionary to show how these parameters might be used. Presumably there is some general documentation for Applescript which would explain how to read the dictionary and implement the keywords in a script but I can't find anything that makes sense to me...
I have the Applescript Language Guide and a few other bits and pieces. What am I missing?
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden