• 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: Finding Filenames that contain a certain string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding Filenames that contain a certain string


  • Subject: Re: Finding Filenames that contain a certain string
  • From: "J. Stewart" <email@hidden>
  • Date: Fri, 20 Jul 2007 05:02:01 -0400

On 7/20/07 at 3:46 AM, Philip Aker <email@hidden> spake thusly:

Is there a users list that uses shell scripting to solve all these problems?

This is it. Since AppleScript implements 'do shell script', anything that it can spawn is legal chat on this list. In fact there's even a Technical Note (#2065) which shows the use of several standard shell commands successfully.

The discussion of "vanilla Applescript" versus using an osax or other source is usually pretty silly. Someone will post their "vanilla" Applescript script and the first thing it contains will be a call to StandardAdditions or to some application, that's no longer vanilla.


For example, some folks post gobs of code munging "current date" via "vanilla" Applescript when they could get the same thing with 1 line calling do shell script. They forget that calling Standard additions for current date is not really any different than calling it for do shell script.

There are times when shell scripting is the best, shortest, most maintainable method. It is available on every OS X using Mac as it is supplied by Apple. By the usual criteria, that makes it vanilla.

John
--
The Sufis advise us to speak only after our words have managed to pass through three gates.  At the first gate, we ask ouselves, 'Are these words true?'  If so, we let them pass on; if not, back they go.  At the second gate, we ask, 'Are they necessary?'  At the last gate, we ask, 'Are they kind?'  -Eknath Easwaran
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden
  • Follow-Ups:
    • Re: Finding Filenames that contain a certain string
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Finding Filenames that contain a certain string (From: Philip Aker <email@hidden>)

  • Prev by Date: Choose from list goes out of screen range
  • Next by Date: Re: Choose from list goes out of screen range
  • Previous by thread: Re: Finding Filenames that contain a certain string
  • Next by thread: Re: Finding Filenames that contain a certain string
  • Index(es):
    • Date
    • Thread