• 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: Shane Stanley <email@hidden>
  • Date: Mon, 08 Mar 2010 10:00:22 +1100
  • Thread-topic: Slow Command in Snow Leopard

On 8/3/10 9:47 AM, "Mark J. Reed" <email@hidden> wrote:

> 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)...

Indeed. Even with a bit extra time to rebuild full paths if required, it's
going to be massively faster.

FWIW, my (admittedly limited) testing suggests Finder scripting is even
slower in 10.6 than before.

--
Shane Stanley <email@hidden>
AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>


 _______________________________________________
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: "email@hidden" <email@hidden>
References: 
 >Re: Slow Command in Snow Leopard (From: "Mark J. Reed" <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