• 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: Find script files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Find script files


  • Subject: Re: Find script files
  • From: "Mark J. Reed" <email@hidden>
  • Date: Thu, 10 Jul 2008 15:32:55 -0400

Now veering OT, but this bit o' shell:

> ls *.scpt | while read f; do

is better written as this:

             for f in *.scpt; do

Since the shell is what does the expansion of "*.scpt" into a list of
filenames, there's really no sense having it run ls effectively just
to echo those strings back one per line...

--
Mark J. Reed <email@hidden>
 _______________________________________________
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

References: 
 >Re: Find script files (From: Philip Aker <email@hidden>)
 >Re: Find script files (From: "Mark J. Reed" <email@hidden>)
 >Re: Find script files (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Adobe Scripting Survey
  • Next by Date: Re: Adobe Scripting Survey
  • Previous by thread: Re: Find script files
  • Next by thread: Scripting NOAA Weather data for an iPod
  • Index(es):
    • Date
    • Thread