Re: [~ot] those pesky invisible folders ...
Re: [~ot] those pesky invisible folders ...
- Subject: Re: [~ot] those pesky invisible folders ...
- From: Gnarlodious <email@hidden>
- Date: Fri, 08 Oct 2004 10:34:22 -0600
Entity Brian Johnson spoke thus:
> 1. does /usr 'really' have some other path that's not obvious?
It appears to be exactly where you see it, ay the root level.
Here's a script to toggle invisibles:
do shell script "defaults read com.apple.Finder | grep AppleShowAllFiles"
if (result as string) contains "= 1;" then
do shell script "defaults write com.apple.Finder AppleShowAllFiles '0'"
else
do shell script "defaults write com.apple.Finder AppleShowAllFiles '1'"
end if
delay 1
--- quit and reactivate the Finder to use the new preferences.
tell application "Finder" to quit
delay 1
tell application "Finder" to activate
> 2. is there a command-line tool (variation on ls?) that will recursively
> search the file tree for a particular file name? and does _it_ dig
> through places like /private and /usr??
http://www.osxfaq.com/man/1/find.ws
There are some examples at the end of the page.
the great thing about "find" is you can use wildcards and expressions in the
file specifier.
-- Gnarlie
_______________________________________________
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