Re: Newbie or ??
Re: Newbie or ??
- Subject: Re: Newbie or ??
- From: Jacques Lacroute <email@hidden>
- Date: Tue, 15 Jul 2003 16:11:02 +0200
Le 15/07/03 16:03, + John Delacour ; <email@hidden> a icrit :
>
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
>
>
>
>
>
.
Thanks,
Do I take it that if I want to do something with these files (ie delete them
) I will also have to use the shell ?
JL
_______________________________________________
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.