| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
Ken, Here's a script I use to announce the subject lines of emails as they come in. I think you can modify it for your use: using terms from application "Mail" on perform mail action with messages theMessages for rule ruleName --we'll use a try block and catch any errors, since Mail doesn't report errors in applescripts set theVol to get volume settings set readAloud to not (output muted of theVol) if readAloud then try copy theMessages to messageList set messageCount to (length of messageList) tell application "Mail" if messageCount is 0 then set theText to "No messages selected." say theText else repeat with aMessage in messageList set theSubject to (the subject of aMessage) as text set theBox to (name of account of mailbox of aMessage) as text set theText to (theBox & space & theSubject) as text say theText end repeat end if end tell on error the error_message number the error_number display dialog "Error: " & the error_number & ". " & the error_message buttons {"Cancel"} default button 1 end try end if end perform mail action with messages end using terms from On Aug 30, 2007, at 2:02 PM, email@hidden wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden Archives: http://lists.apple.com/archives/applescript-users This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.