Re: Newbie or ??
Re: Newbie or ??
- Subject: Re: Newbie or ??
- From: John Delacour <email@hidden>
- Date: Tue, 15 Jul 2003 15:03:01 +0100
- Mac-eudora-version: 6.0a26
At 3:16 pm +0200 15/7/03, Jacques Lacroute wrote:
Although I looked into Applescript in a Nutshell (and even in D.Goodman's
book) I cannot find out how I can get the hidden files in a folder with
AppleScript ?
You can do this with the shell:
do shell script "cd ; find . -maxdepth 1 -name '\\.*'"
After cd you can give the posix path of the starting directory. The
dot after find (meaning the current directory) can also be replaced
with a pathname or environment variable:
do shell script "find $HOME -maxdepth 1 -name '\\.*'"
"/Users/jd/.CFUserTextEncoding
/Users/jd/.DS_Store
/Users/jd/.java
/Users/jd/.jpi_cache
/Users/jd/.lpoptions
/Users/jd/.Trash"
'-maxdepth 1' means don't go deeper. Do 'man find' in Terminal for details.
JD
.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >Newbie or ?? (From: Jacques Lacroute <email@hidden>) |