• 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: Showing a Package's Contents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Showing a Package's Contents


  • Subject: Re: Showing a Package's Contents
  • From: Malcolm Fitzgerald <email@hidden>
  • Date: Wed, 30 Mar 2005 14:34:00 +1000


On 30/03/2005, at 12:32 PM, Jonathan Levi, M.D. wrote:

Kai's and Axel's replies much appreciated. However, I see that the information I provided was not only sparse, but misleading.

What I want is to open the window of one of Mail's mailboxes

The Finder window has a little do-hickey that brings up the same menu as control-click and that may be accessible via system events. So that's a possibility.


It's hard isn't it!
-- select a mailbox package
set mBox to choose file
-- try Finder tell application "Finder" to reveal some item of mBox
-- BAD! only displays the container of mbox


-- try the shell
do shell script ("open -a \"Finder\" " & POSIX path of mBox)
-- BAD! only displays the container of mbox


Do you have to see the window in Finder? This script opens every item of the mbox with TextEdit.


set mBox to choose file -- select a mailbox package
tell application "System Events" to set theList to alias of mBox
tell application "TextEdit" to open theList


Malcolm Fitzgerald ph: 02 93180877 Database Manager fax: 02 93180530 The Australian Society of Authors www.asauthors.org

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Showing a Package's Contents
      • From: Martin Orpen <email@hidden>
References: 
 >Re: Showing a Package's Contents (From: "Jonathan Levi, M.D." <email@hidden>)

  • Prev by Date: Re: Keychain and text returned
  • Next by Date: Re: controlling battery charge limits
  • Previous by thread: Re: Showing a Package's Contents
  • Next by thread: Re: Showing a Package's Contents
  • Index(es):
    • Date
    • Thread