• 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: Daniel Jalkut <email@hidden>
  • Date: Sun, 29 May 2005 11:36:07 -0700

Very cool.  Thanks for sharing this idea.

D

On May 29, 2005, at 3:50 AM, 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:

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 (Applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40red-sweater.com


This email sent to email@hidden


_______________________________________________ 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: Mail.app: Delete bcc recipient from new mail
  • Next by Date: Re: How to make a new chart in AppleWorks 6?
  • Previous by thread: Re: Showing a Package's Contents - NOT SOLVED
  • Next by thread: Entourage's "path to me" in Tiger
  • Index(es):
    • Date
    • Thread