• 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: "Jonathan Levi, M.D." <email@hidden>
  • Date: Wed, 30 Mar 2005 16:50:48 -0500

Thanks to Malcolm and Martin.

On Tue, 29 Mar 2005 21:32:56 -0500, I wrote:
What I want is to open the window of one of Mail's mailboxes,
specifically a mailbox "forEditing.mbox" that I've created. It's a
package...

Malcolm Fitzgerald <email@hidden> wrote:

Do you have to see the window in Finder?...

Yes ("reveal myPackage" would be exactly what I want, except that it fails silently when the target's container is a package file, rather than a folder.) Also, I'd now like to apply the results more generally to any package (or is "bundle" the correct word?) Here at the office, I use Eudora instead of Mail, but I'd like to do the same thing with, say, an Xcode project, which is also a package/bundle.



Martin <email@hidden> wrote:
contentsOf ((choose file) as alias)

I can't make "contentsOf" work (gives errors when told to System Events, Finder or the script) nor "contents of".



In the following script, I've created an Xcode project:

property pPkgPath : "HD:Users:jonathan:dummyProject:dummyProject.xcode"

tell application "Finder" to activate

tell application "System Events"
  set thePkg to (file package pPkgPath)
  set itsprops to properties of thePkg--result: long list

  {package folder, class} of itsprops --result: {true, file package}

  contents of thePkg --result:
      file package "HD:Users:jonathan:dummyProject:dummyProject.xcode:" of
      application "System Events"

  open contents of thePkg--opens the project in Xcode

end tell

It looks as though I might be able script it in System Events, possibly with the Folder Actions Suite? Does anyone have experience with this?

Thanks again,

Jonathan
_______________________________________________
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>
  • Prev by Date: Re: Showing a Package's Contents
  • Next by Date: Re: Capturing username for script that mounts server
  • Previous by thread: Re: Showing a Package's Contents
  • Next by thread: Re: Showing a Package's Contents
  • Index(es):
    • Date
    • Thread