• 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: Slow Command in Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slow Command in Snow Leopard


  • Subject: Re: Slow Command in Snow Leopard
  • From: "Mark J. Reed" <email@hidden>
  • Date: Sun, 7 Mar 2010 17:47:19 -0500

Might I suggest something like this?

set filenames to paragraphs of (do shell script "ls -1d " & (quoted
form of posix path of prefsRef) & "/" & prefIdent & "*")

Which takes on the order of a twentieth of a second OMM (with
admittedly only about 400 files in the directory in question)...


On Sunday, March 7, 2010, Michelle Steiner  wrote:
> On Mar 7, 2010, at 2:03 PM, Luther Fuller wrote:
>
>> Anyone know what's going on in SL that would cause this?
>
> I don't know what causes it, but I tested it.  With a preferences folder containing 809 items, the script takes 35 seconds, whether searching for files that begin with, contain, or are the search string.
>
> Doesn't matter whether "as alias list" is there or not.
>
> Changing the folder to the user's library folder, with 89 items, the search is less than one second.
>
> Changing to the Applications folder, with 117 items, it takes 3 seconds.
>
> And a folder containing 167 PDF files and nothing else, it takes 1 second.
>
> -- Michelle
>
> --
> A hula hoop with a nail in it is a navel destroyer.  -- Joe Parks
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Slow Command in Snow Leopard
      • From: Luther Fuller <email@hidden>
    • Re: Slow Command in Snow Leopard
      • From: Shane Stanley <email@hidden>
References: 
 >Slow Command in Snow Leopard (From: Luther Fuller <email@hidden>)
 >Re: Slow Command in Snow Leopard (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Slow Command in Snow Leopard
  • Next by Date: Re: Slow Command in Snow Leopard
  • Previous by thread: Re: Slow Command in Snow Leopard
  • Next by thread: Re: Slow Command in Snow Leopard
  • Index(es):
    • Date
    • Thread