Re: Scripting Mail in OS X 10.2
Re: Scripting Mail in OS X 10.2
- Subject: Re: Scripting Mail in OS X 10.2
- From: cricket <email@hidden>
- Date: Mon, 7 Oct 2002 11:25:51 -0700
Two options:
1. Wait for us to fix it
2. Use the Finder to iterate over the mailbox names (in
~/Library/Mail/Mailboxes)
- cricket
On Saturday, October 5, 2002, at 04:09 AM, Sean Kehoe wrote:
What I want is for my script to display a list of the mailboxes, the
user chooses one and then the script will carry out some actions on
this mailbox. Here's the code I have so far
tell application "Mail"
set mailboxlist to name of every mailbox
choose from list mailboxlist with prompt "Choose a mailbox to archive"
set sourcemailbox to result
end tell
The problem is that some of my mailboxes are nested within a folder so
if the user has chosen a mailbox called "AppleScript Users" which is
within a folder called "Mailing Lists", the result returned is just
"AppleScript Users". I want it to return the full path, e.g. "Mailing
Lists/AppleScript Users" because without the full path, I can't use
the result.
Any ideas on how to do this are much appreciated.
----->
Software Entomologist/Mail for Mac OS X email@hidden
---------->
I know the human being and fish can co-exist peacefully
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.