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

Mail scripting…


  • Subject: Mail scripting…
  • From: awaw <email@hidden>
  • Date: Thu, 27 Mar 2008 10:59:08 +0100

Hello!

I'm an "old" guy who is trying to write some scripts on a Mac under Leopard (10.5.2).
I have no other objective than success in my idea...
I learn in part with reading the messages on your list that I have discovered by chance...

You surely notice also that english is not my native language...

My problem with Mail is in impossibility (for me!) to correctly manage "windows"
I did n't success to put the open window on an accoun or a mailbox and open window with a message in it.

An example of my test script

tell application "Mail"
set a to number of mailbox
set b to 1
repeat until b > a
set ll to name of mailbox (b)
---display alert quote & ll & quote
set bb to count of message of mailbox ll (* OK *)
set xx to unread count of mailbox ll


display alert quote & "name of mailbox" & quote & "  : " & ll & " Nombre de messages = " & bb & ", non lus : " & xx & ".
(* 
How to open window of "name of mailbox"?
How to open the unread message window?
*)

set b to b + 1
end repeat
end tell


I notice also some strange "things" with Mail.

For example :

In my Mail application (v 3.2), I have organized my mail boxes (folders -"mailbox" for Mail- where my rules extract messages) and I have some sub-folders in them in accordance to the domain.

It's impossible in scripts to access to that sub-folders.

I obtain the list of folders in a pseudo alphabetic order where sub-folders appear first.

It's not a matter if I could obtain the list of sub-folders but I never success…


I success to get the content of a message (text) but not to open the message window.


The Mail Appplescript dictionnary seems poor...


Have you some examples in your bags with Mail scripting for help me.


I only will success for the "fun"

Thanks for your help when you have time…


 Gérard


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Mail scripting…
      • From: Philip Aker <email@hidden>
    • Mail and AppleScript
      • From: awaw <email@hidden>
  • Prev by Date: Re: GUI scripting FileMaker Pro Advanced
  • Next by Date: Re: Ruby and AppleScript
  • Previous by thread: [ANN] Smile 3.3
  • Next by thread: Mail and AppleScript
  • Index(es):
    • Date
    • Thread