• 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
Re1: Mail scripting : How to select…
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re1: Mail scripting : How to select…


  • Subject: Re1: Mail scripting : How to select…
  • From: awaw <email@hidden>
  • Date: Fri, 9 May 2008 17:40:49 +0200
  • Resent-cc: asu Users <email@hidden>
  • Resent-date: Fri, 9 May 2008 22:22:52 +0200
  • Resent-from: awaw <email@hidden>
  • Resent-message-id: <email@hidden>
  • Resent-to: Axel Luttgens <email@hidden>

Thanks,

I re-send it because Re2 appears but not the first one (Re)

I add also a new problem at the end.

__________
set selected mailboxes of message viewers to {mailbox "Junk" of account "Gérard"}

With "Junk", "Trash" or "Sent" only : no problem!

I have tried to known these names but I never succeed.
tell application "Mail"
set x to mailboxes of inbox
set y to count of x
display alert y
set i to 1
repeat y times
set z to  item i of x as string
display alert z
set i to i + 1
end repeat
end tell
==> Erreur d'AppleScript "Il est impossible de rendre «class mbxp» "INBOX" of «class mact» "Gérard" of application "Mail" en type string."

tell application "Mail"
set x to mailboxes of inbox
set y to count of x
display alert y
set i to 1
repeat y times
set z to name of item i of x as string
display alert z
set i to i + 1
end repeat
end tell
==> INBOX
INBOX (y times)

But no names

Is it possible to obtain them otherwise?
____________

The last "gravel in my shoes".

Trash mailbox and Junk mailbox have a special "sub-folder" : "sur mon Mac" 

I don't know the "real" name for using it in Applescript (to select it).

Thanks
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 : How to select…
      • From: Philip Aker <email@hidden>
    • Re: Re1: Mail scripting : How to select…
      • From: Axel Luttgens <email@hidden>
References: 
 >Mail scripting : How to select… (From: awaw <email@hidden>)
 >Re: Mail scripting : How to select… (From: Luther Fuller <email@hidden>)
 >Re: Mail scripting : How to select… (From: awaw <email@hidden>)
 >Re: Mail scripting : How to select… (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re2: Mail scripting : How to select…
  • Next by Date: Re: Re1: Mail scripting : How to select…
  • Previous by thread: Re2: Mail scripting : How to select…
  • Next by thread: Re: Re1: Mail scripting : How to select…
  • Index(es):
    • Date
    • Thread