Re: List Folders bug?
Re: List Folders bug?
- Subject: Re: List Folders bug?
- From: "Dennis W. Manasco" <email@hidden>
- Date: Sat, 18 Mar 2006 05:12:58 -0600
At 6:28 AM -0500 3/16/06, Bill Cheeseman wrote:
When I run this script:
list folder (path to startup disk) without invisibles
I get this result:
{"Applications", "Developer", "Library", "mach", "mach.sym", "System",
"Users"}
But "mach" and "mach.sym" are invisible, as far as I can see when I look at
the window.
Do others see this too?
Yes.
I also see "mach_kernel" and "dev" in the list (OS X 10.3.9). (As
well as a lot of other stuff since my root directory is ... a busy
place ...).
Try "cat /.hidden" in Terminal and look at the list. (Note the period
between / and h.)
I _think_ that what's happening is that the Finder is not honoring
the entries in /.hidden when it reports to AppleScript. It's just
filtering out files that start with a period or that have their
Finder invisible bit set.
If you look at the "mach" files or "dev" in FileBuddy you'll see that
they don't have the Finder invisible bit set, but if you look at
"Desktop DB" or "bin" (or "cores" or "AppleShare PDS") you'll see
that they do.
I suspect that you're on 10.4.x and Apple has just checked off a few
more invisible bits, since you don't show all the "invisible" files I
do.
All I can see to do is grit your teeth and subtract /.hidden from the
list. (And file a bug report [Please!]. Though they'll probably not
use it to fix the problem at the source; they'll just set a few more
Finder invisible bits....)
As an aside:
Does anyone know if /.hidden is global and only global, local, or inherited?
That is:
1) Does /.hidden only affect /?
2) Can there be a .hidden file in any directory which hides the
listed files in that directory?
3) Does /.hidden override (i.e. add to the scope of, or abolish)
.hidden files at lower levels?
4) Do .hidden files at levels below / affect .hidden files below them?
(I know I could figure this out with a few minutes of mucking about,
but I'm lazy and I can't see how it really affects me and I'm willing
to take a little dissing in order to get an answer from someone who
already knows. :-)
Best wishes,
-=-Dennis
.
_______________________________________________
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