Re: Showing a Package's Contents
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