Re: Scripting Mail App
Re: Scripting Mail App
- Subject: Re: Scripting Mail App
- From: kai <email@hidden>
- Date: Mon, 2 May 2005 18:33:34 +0100
On Monday, May 2, 2005, at 04:37 pm, John Clark wrote:
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?
I'm not sure if this will help or confuse further, John - but replacing
'date received' with 'date sent' works here (Mail 1.2.5).
---
kai
_______________________________________________
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