Slow Moving Files?
Slow Moving Files?
- Subject: Slow Moving Files?
- From: Stephen Swift <email@hidden>
- Date: Fri, 24 Jan 2003 20:30:51 -0500
I wrote a script for a friend who had about 10,000 folders somewhere and
needed them to be moved to other folders on the same disk based on the name
of the folder, so I wrote a script that did this (pardon my
AppleScriptenglish):
Set list1 to every folder (that took some time)
Repeat with I in list1
Get name of folder
Get 9th character of name
Get 7 & 8 characters of name
Move folder to alias "somelocation:9:78:"
--the 9 and 78 are the character numbers, not an actual location
End repeat
I tested the script, and it took almost half an hour! Now I know I'm
working with 10,000 folders here, and it would have taken much longer by
hand... But, is this normal? Or maybe there was a better way. I was also
wondering if there was a limit on how many items could be put in a list. If
he had 15,000 items, would the list max out at 12,000 for example? Thanks a
bunch.
Stephen Swift
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.