Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > AppleScript & Mail.app question...

AppleScript & Mail.app question...
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2000
Location: Boston
Status: Offline
Reply With Quote
Mar 4, 2003, 10:05 PM
 
Just need a little toe-hold to get a script going that I am working on...

Tried this after selecting an email:

tell application "Mail"
set theMessage to selection
set theSubject to the subject of theMessage
display dialog theSubject
end tell


But get "Can't get subject of {message 94 of mailbox..." in event log.

Can one even grab individual properties from emails in Mail.app with AppleScript?

I can't even seem to list them:

tell application "Mail"
get properties of selection
end tell


gives, "--> Mail got an error: NSCannotCreateScriptCommandError"
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:51 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2