Scripting Mail in OS X 10.2
Scripting Mail in OS X 10.2
- Subject: Scripting Mail in OS X 10.2
- From: Sean Kehoe <email@hidden>
- Date: Sat, 5 Oct 2002 04:09:49 -0700 (PDT)
Hi,
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.
Sean.
_______________________________________________
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.