• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting Mail App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Scripting Mail App (From: John Clark <email@hidden>)

  • Prev by Date: Image Events and Unicode
  • Next by Date: Re: Mac OS X 10.4
  • Previous by thread: Re: Scripting Mail App
  • Next by thread: Re: Recovering Run Only script
  • Index(es):
    • Date
    • Thread