• 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
Cannot open "On My Mac" mailboxes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cannot open "On My Mac" mailboxes


  • Subject: Cannot open "On My Mac" mailboxes
  • From: Tom Lyon <email@hidden>
  • Date: Thu, 03 May 2012 23:24:41 -0400

Very new to Applescript.  Here is a script that I have which offers a list of mailboxes "On My Mac".  I'm stuck as to how to actually open the selected mailbox for viewing.

tell application "Mail"
set folderList to {}
set folderCount to count of mailboxes
repeat with thisFolder from 1 to folderCount
set end of folderList to (name of mailbox thisFolder)
end repeat
set selectedFolder to {choose from list folderList}
-- code to open selectedFolder for viewing goes here
end tells

I'm not sure the reference to the mailboxes is correct.
Any pointers in the right direction would be much appreciated.

Tom
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Cannot open "On My Mac" mailboxes
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: A (fairly simple?) request from a novice scripter...
  • Next by Date: Create a 1 pdf of assets not using an app first
  • Previous by thread: Re: A (fairly simple?) request from a novice scripter...
  • Next by thread: Re: Cannot open "On My Mac" mailboxes
  • Index(es):
    • Date
    • Thread