• 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: Number of item in a folder under OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Number of item in a folder under OS X


  • Subject: Re: Number of item in a folder under OS X
  • From: Graff <email@hidden>
  • Date: Thu, 13 May 2004 11:04:43 -0400

I'm using Mac OS X 10.3.3 and I haven't had a problem with a large amount of files in a folder in a long time. To make sure that this is reliable I made a simple AppleScript that creates 150001 files in a folder:

------
tell application "Finder"
repeat with i from 1 to 15001
set theName to "test"
if (i < 100) then
set theName to theName & "0"
if (i < 10) then
set theName to theName & "0"
end if
end if
set theName to theName & i

make new file at folder ((path to desktop folder as text) & "untitled folder") with properties {name:theName}
end repeat
end tell
------

No problems at all, I was able to use the folder without any noticeable slowdown. There are some hard limits to the number of items in a folder, they are based on the filesystem and a summary can be found here:
<http://www.portfoliofaq.com/pfaq/FAQ00002.htm>

It boils down to you can have around 32,767 items per folder on a normal Macintosh volume. I didn't test it out that far but I assume that you might see some slowdown with that many files. Anyways, you have the script - go nuts testing it!

- Ken

On May 13, 2004, at 9:15 AM, stephan wrote:

On OS 9 and before it was not recommended to put more than 500 items in a
folder because after that the system was to slow. Is it possible to put more
than 500 items in a folder under OS X, something like more then 15000 items
in the same folder without slowing down the system?

I know that on PC they don't have that problem.
_______________________________________________
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.


References: 
 >Number of item in a folder under OS X (From: stephan <email@hidden>)

  • Prev by Date: Alias's in AppleScripts
  • Next by Date: Re: Alias's in AppleScripts
  • Previous by thread: Number of item in a folder under OS X
  • Next by thread: Getting values from keychain
  • Index(es):
    • Date
    • Thread