• 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: do shell scripting a "Find"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell scripting a "Find"


  • Subject: Re: do shell scripting a "Find"
  • From: Jake Pietrykowski <email@hidden>
  • Date: Fri, 25 Feb 2005 12:01:58 -0600

Marc,

> On 2/25/05 11:29 AM, "M Ranes"  wrote:
>
> I am wanting to find files and applications using shell & applescript. Nothing
> is working, is there anyone who can show me a working method, post a snippet
> to start from, or just some tidbit to work with.  I am trying to FIND an
> application or file whose name contains "TheName" and return a path,
> completely in the background?  Please help.

I use the following snippet in a shell script or from the terminal. It finds
the file then copies to the my desktop folder

--code [no line breaks, all one line]

find /Volumes/path/to/folder/ -name "$SEARCHSTRING" -exec echo {} \;

--/code

This will echo the path.

Also type 'man find' from the terminal for more information.

Regards,
Jake


 _______________________________________________
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

  • Follow-Ups:
    • Re: do shell scripting a "Find"
      • From: Christopher Nebel <email@hidden>
References: 
 >do shell scripting a "Find" (From: "M Ranes" <email@hidden>)

  • Prev by Date: Re: do shell scripting a "Find"
  • Next by Date: Re: About password fields
  • Previous by thread: Re: do shell scripting a "Find"
  • Next by thread: Re: do shell scripting a "Find"
  • Index(es):
    • Date
    • Thread