• 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: entire contents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: entire contents


  • Subject: Re: entire contents
  • From: Christopher Stone <email@hidden>
  • Date: Sun, 31 Jul 2011 01:09:23 -0500

On Jul 30, 2011, at 19:22, Luther Fuller wrote:
There has been some commentary over the past few years that entire contents is slow. I have tested this, but only on a single message, not yet with a mailbox full of messages.
______________________________________________________________________

Hey Luther,

Eeek!  'Entire Contents' is still a dog.  I quit Script Debugger after 1.5 minutes, and my Finder was running the SRWOD.  I didn't feel like waiting for it to come to its senses, so I relaunched it.

Spotlight is much faster in Lion.  The following code takes less than 1 second to find the target in a fairly large mail folder.  Fairly large being about 1.31 GB.

On Snow Leopard this code was not nearly as fast, but it was acceptably fast.

--
Best Regards,
Chris

------------------------------------------------------------------------------------------------
# MDFIND (SPOTLIGHT)
------------------------------------------------------------------------------------------------
set applicationFolder to (POSIX path of (path to applications folder))
set userAppSupportFolder to quoted form of (POSIX path of (path to application support from user domain))
set userLibraryFolder to quoted form of (POSIX path of (path to library folder from user domain))
set userPrefsFolder to quoted form of (POSIX path of (path to preferences folder from user domain))
------------------------------------------------------------------------------------------------
set searchString to "118563.emlx"
set searchFolder to "/Users/chris/Library/Mail/V2/"
------------------------------------------------------------------------------------------------
set cmd to "mdfind -onlyin " & searchFolder & " \"kMDItemFSName == '" & searchString & "'c\""
# set cmd to "mdfind -onlyin " & searchFolder & " \"kMDItemDisplayName == '" & searchString & "'c\""
set reportText to do shell script cmd
------------------------------------------------------------------------------------------------

 _______________________________________________
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

References: 
 >entire contents (From: Luther Fuller <email@hidden>)

  • Prev by Date: Alarm clock
  • Next by Date: Problem with Alarm Clock app
  • Previous by thread: Re: entire contents
  • Next by thread: Alarm clock
  • Index(es):
    • Date
    • Thread