• 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: Martin Orpen <email@hidden>
  • Date: Sun, 29 May 2005 11:50:10 +0100

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:

set foo to choose file
tell application "Finder"
    set bar to name of foo
    set myName to my killExt(bar)
    set name of foo to myName
    open foo
    set name of foo to bar
end tell

on killExt(x)
    set oldDelims to AppleScript's text item delimiters
    set AppleScript's text item delimiters to "."
    return word 1 of x
    set AppleScript's text item delimiters to oldDelims
end killExt


Dunno how useful this is now as the original thread was about looking into
an mbox? On my laptop a Tiger mbox is now an ordinary folder...

--
Martin Orpen


 _______________________________________________
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 - NOT SOLVED
      • From: Daniel Jalkut <email@hidden>
    • Re: Showing a Package's Contents - NOT SOLVED
      • From: kai <email@hidden>
    • Re: Showing a Package's Contents - NOT SOLVED
      • From: Rob Jorgensen <email@hidden>
  • Prev by Date: How to make a new chart in AppleWorks 6?
  • Next by Date: Re: Showing a Package's Contents - NOT SOLVED
  • Previous by thread: Re: How to make a new chart in AppleWorks 6?
  • Next by thread: Re: Showing a Package's Contents - NOT SOLVED
  • Index(es):
    • Date
    • Thread