• 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 and Choose From List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mail and Choose From List


  • Subject: Mail and Choose From List
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 21 Mar 2006 15:39:25 -0700

This doesn't work:

tell application "Mail"
choose from list name of mailboxes
end tell

--> "Mail got an error: Can't make name of every mailbox into type string."

"name of mailboxes" returns a list of unicode strings, which apparently, "choose from list" can't handle.

This does work :
tell application "Mail"
set foo to name of mailboxes
set AppleScript's text item delimiters to return
set foo to text items of foo as text
set foo to foo's text items
set AppleScript's text item delimiters to ""
choose from list foo
end tell


-- 
Grandparents and grandchildren are natural allies.
They share the same enemies.

 _______________________________________________
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: Mail and Choose From List
      • From: Martin Orpen <email@hidden>
  • Prev by Date: Re: set position of window 1
  • Next by Date: Re: Mail and Choose From List
  • Previous by thread: Re: set position of window 1
  • Next by thread: Re: Mail and Choose From List
  • Index(es):
    • Date
    • Thread