• 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: Axel Luttgens <email@hidden>
  • Date: Tue, 29 Mar 2005 10:34:17 +0200

Jonathan Levi, M.D. wrote:

Would someone please enlighten me with a scripting command to show package contents of a mythical package <startup disk>:Users:<me>:aPackage.pkg ? --TIA, Jonathan

Hmm... this may be variously understood. For example:

tell application "Finder"
-- Get a Finder reference to "<startup disk>:Users:<current user>:aPackage.pkg".
get file "aPackage.pkg" of home
-- Get a Finder reference to folder "Contents" of the package.
get folder "Contents" of result
-- Display contents of that folder.
open container window of result
end tell


The problem with the above is that the Finder tends to treat packages as files, which have no container window; hence the workaround with the "Contents" folder.

HTH,
Axel
_______________________________________________
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


References: 
 >Showing a Package's Contents (From: "Jonathan Levi, M.D." <email@hidden>)

  • Prev by Date: Showing a Package's Contents
  • Next by Date: Re: Showing a Package's Contents
  • Previous by thread: Showing a Package's Contents
  • Next by thread: Re: Showing a Package's Contents
  • Index(es):
    • Date
    • Thread