• 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
Re: Scripting Mail in OS X 10.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Scripting Mail in OS X 10.2 (From: Sean Kehoe <email@hidden>)

  • Prev by Date: Re: top <repeat 100 times \r rant \r end repeat>
  • Next by Date: Re: Is it possible to set up an 'instant' idle handler
  • Previous by thread: Scripting Mail in OS X 10.2
  • Next by thread: Re: top <rant>
  • Index(es):
    • Date
    • Thread