Re: Fast Way Of Crunching Through Files
Re: Fast Way Of Crunching Through Files
- Subject: Re: Fast Way Of Crunching Through Files
- From: Michelle Steiner <email@hidden>
- Date: Fri, 15 Oct 2004 09:14:24 -0700
On Oct 15, 2004, at 8: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? Things are working fine
but chugging slowly and I'd like to speed up the process. Any
suggestions would be appreciated.
set l to {}
set f to choose folder
tell application "Finder"
repeat with x in (files of f as alias list)
if name of x contains space then
copy contents of x to end of l
end if
end repeat
end tell
l
-- Michelle
--
Never play strip Tarot.
_______________________________________________
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