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