• 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: recursive folder count
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recursive folder count


  • Subject: Re: recursive folder count
  • From: Skeeve <email@hidden>
  • Date: Thu, 28 Feb 2008 21:33:06 +0100

It shouldn't break your script as you already used "quoted form of ..."

I wouldn't use ls and sed but just find:

set target_folder to choose folder with prompt "Choose target folder to clean"
set filecount to do shell script "find " & (quoted form of POSIX path of target_folder) & " | wc -l"
display dialog "There are:" & filecount & " files"
_______________________________________________
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: recursive folder count
      • From: "Mark J. Reed" <email@hidden>
References: 
 >recursive folder count (From: Tim Piper <email@hidden>)

  • Prev by Date: recursive folder count
  • Next by Date: addressing text frames with a certain applied paragraph style
  • Previous by thread: recursive folder count
  • Next by thread: Re: recursive folder count
  • Index(es):
    • Date
    • Thread