• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie or ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Newbie or ??
      • From: John Delacour <email@hidden>
    • Re: Newbie or ??
      • From: Jon Pugh <email@hidden>
References: 
 >Re: Newbie or ?? (From: John Delacour <email@hidden>)

  • Prev by Date: Re: Newbie or ??
  • Next by Date: Re: Newbie or ??
  • Previous by thread: Re: Newbie or ??
  • Next by thread: Re: Newbie or ??
  • Index(es):
    • Date
    • Thread