• 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: 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.

  • Follow-Ups:
    • Re: Newbie or ??
      • From: Gary Lists <email@hidden>
    • Re: Newbie or ??
      • From: Jacques Lacroute <email@hidden>
References: 
 >Newbie or ?? (From: Jacques Lacroute <email@hidden>)

  • Prev by Date: How to use a datasource with tab view
  • Next by Date: Re: Newbie or ??
  • Previous by thread: Newbie or ??
  • Next by thread: Re: Newbie or ??
  • Index(es):
    • Date
    • Thread