• 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 - NOT SOLVED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Showing a Package's Contents - NOT SOLVED


  • Subject: Re: Showing a Package's Contents - NOT SOLVED
  • From: Rob Jorgensen <email@hidden>
  • Date: Sun, 29 May 2005 07:13:00 -0400

At 11:50 AM +0100 5/29/05, Martin Orpen wrote:
on 1/4/05 17:35, daniel at email@hidden wrote:

 I was excited by the "SOLVED" line in the subject, but it's clearly
 not solved.  I'd still love to see a way to reveal the *TOP LEVEL* of
 any package in the Finder.  This is the crux of the original problem,
 as indicated by the subject line.  Any general solution needs to work
 even if the package doesn't have any folders inside it.

All you need to do is temporarily remove the extension:

Here's the script that I use in conjunction with the Big Cat contextual menu plugin, which is free from Ranchero Software (ranchero.com). It does the same thing as the built-in "Show Package Contents" contextual menu option. I've never tried it on a package which contained no folders. The script worked in Panther and it still works in Tiger.


 on run
  set selected_ to (choose file with prompt "Select a package.") as list
  my main(selected_)
 end run

on main(TheFiles)
repeat with file_ in TheFiles
if package folder of (info for file_) is true then
set resPath to ((file_ as text) & "Contents:") as text
try
tell application "Finder" to open alias resPath
on error e
display dialog e
end try
else
display dialog "'" & (name of (info for file_)) & "' is not a package." buttons ¬
{"OK"} default button 1 with icon 0
end if
end repeat
end main


-- Rob
_______________________________________________
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: 
 >Re: Showing a Package's Contents - NOT SOLVED (From: Martin Orpen <email@hidden>)

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