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

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.

  • Follow-Ups:
    • Re: Scripting Mail in OS X 10.2
      • From: cricket <email@hidden>
  • Prev by Date: Re: Copy and Replacing
  • Next by Date: Re: What are "Finder.out" and SIOUX?
  • Previous by thread: Re: top
  • Next by thread: Re: Scripting Mail in OS X 10.2
  • Index(es):
    • Date
    • Thread