Scripting Mail App
Scripting Mail App
- Subject: Scripting Mail App
- From: John Clark <email@hidden>
- Date: Mon, 2 May 2005 11:37:29 -0400
I am starting to do some applescripting again (I used to do scripting
under OS 8 so yes, it's been a while). I am running into some
conceptual issues. It seems to me like the following should work:
tell application "Mail"
set myMessages to the selection
set myDate to date received of item 1 of myMessages
set myMonth to month of myDate
set myYear to year of myDate
set MyMbxName to name of mailbox of item 1 of myMessages
display dialog "mailbox is " & MyMbxName & " :" & myMonth & " " &
myYear as text
end tell
But it doesn't and I can't figure out why. Setting just the date
works, but the name of the mailbox seems to give this fits. Is there
any way to see debug info? Right now it just flashes at me and does
nothing.
Where am I going wrong?
John Clark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden