• 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
Scripting Mail App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Scripting Mail App
      • From: kai <email@hidden>
    • Re: Scripting Mail App
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Re: text item delimiter-resolved.
  • Next by Date: Re: Recovering Run Only script
  • Previous by thread: RE: theText is empty
  • Next by thread: Re: Scripting Mail App
  • Index(es):
    • Date
    • Thread