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