• 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
Slow Moving Files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Slow Moving Files?
      • From: Andrew Oliver <email@hidden>
References: 
 >Re: PS7, Resizing according to image orientation (From: Michael Cytrynowicz <email@hidden>)

  • Prev by Date: Re: [OT] AppleScript scripts versus Shell scripts
  • Next by Date: Re: Shell script start up file
  • Previous by thread: Re: PS7, Resizing according to image orientation
  • Next by thread: Re: Slow Moving Files?
  • Index(es):
    • Date
    • Thread