Mail and Choose From List
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