• 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: Fast Way Of Crunching Through Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fast Way Of Crunching Through Files


  • Subject: Re: Fast Way Of Crunching Through Files
  • From: "Adam K. Wuellner" <email@hidden>
  • Date: Fri, 15 Oct 2004 11:02:32 -0500

On Oct 15, 2004, at 10:19 AM, Steve Suranie wrote:

I need to clean up files for our Digital Asset Management system. There's about 5000 files and some of them have names with space in them which is incompatible with some of the software used in our workflow. Is there a faster way than looping through each character of each file to see if it equals ASCII Number 32?

set rootdir to "/Users/akw" --root directory of the file hierarchy you wish to examine
set spaced_files to do shell script "find " & rootdir & " -name \"* *\""
spaced_files


If you need administrator privileges to access any of the folders in your hierarchy, you can add "with administrator privileges" to the end of the second line.

_______________________________________________
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


References: 
 >Fast Way Of Crunching Through Files (From: "Steve Suranie" <email@hidden>)

  • Prev by Date: Re: Mozilla/Firefox Suggestion
  • Next by Date: Re: Mozilla/Firefox Suggestion
  • Previous by thread: Re: Fast Way Of Crunching Through Files
  • Next by thread: RE: Fast Way Of Crunching Through Files
  • Index(es):
    • Date
    • Thread